:root {
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 96%); border-bottom: 1px solid #dce1ec; color: #1e293b; font-family: var(--font-body); }
.site-header a { color: inherit; text-decoration: none; }
.site-header :is(a, summary) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.site-header :is(a, summary):focus-visible { outline: 3px solid #4f46e5; outline-offset: 4px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.wordmark { font: 700 25px/1 var(--font-display); letter-spacing: -1px; white-space: nowrap; }
.wordmark span { color: #4f46e5; }
.desktop-nav, .nav-actions { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { padding-block: 12px; font-size: 13px; font-weight: 600; color: #536174; white-space: nowrap; }
.desktop-nav a:hover { color: #4f46e5; }
.site-header .nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #4f46e5; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.site-header .nav-cta:hover { background: #4338ca; }
.nav-cta-short, .mobile-menu { display: none; }
.mobile-menu { position: relative; }
.mobile-menu summary { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: 52px; width: 210px; max-height: calc(100svh - 80px); overflow-y: auto; display: grid; padding: 8px; border: 1px solid #dce1ec; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgb(15 23 42 / 12%); }
.mobile-menu nav a { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.mobile-menu nav a:hover { background: #f6f7fb; }

.reading-page { font-family: var(--font-body); line-height: 1.7; }
.reading-page :is(h1, h2, h3, h4, .font-display) { font-family: var(--font-display); }
.reading-page :is(.font-body, .font-tech) { font-family: var(--font-body); }
.reading-page h1 { font-weight: 700; letter-spacing: -0.05em; line-height: 1.12; text-wrap: balance; }
.reading-page :is(h2, h3) { letter-spacing: -0.025em; line-height: 1.25; }
.reading-page main { overflow-wrap: anywhere; }
.reading-page > .site-header + main { padding-top: 48px; }
.reading-page main .flex-1 { min-width: 0; }
.reading-page .overflow-hidden:has(> table) { overflow-x: auto; }

@media (max-width: 1023px) {
  .nav-row { width: calc(100% - 48px); gap: 20px; }
  .desktop-nav { gap: 18px; }
}

@media (max-width: 767px) {
  .nav-row { width: calc(100% - 36px); min-height: 70px; gap: 10px; }
  .wordmark { font-size: 23px; }
  .desktop-nav, .nav-cta-long { display: none; }
  .nav-actions { gap: 8px; }
  .site-header .nav-cta { padding-inline: 12px; }
  .nav-cta-short { display: inline; }
  .mobile-menu { display: block; }
  .reading-page > nav.fixed { position: sticky; padding: 8px 16px; }
  .reading-page > nav.fixed > div { min-height: 44px; gap: 12px; }
  .reading-page > nav.fixed .gap-6 { gap: 12px; }
  .reading-page > nav.fixed a { display: inline-flex; align-items: center; min-height: 44px; }
  .reading-page main { padding: 32px 16px 48px; }
  .reading-page > .site-header + main { padding-top: 32px; }
  .reading-page h1 { font-size: clamp(1.875rem, 7.6vw, 2.625rem); margin-bottom: 16px; }
  .reading-page main h2.text-3xl { font-size: 1.375rem; margin-bottom: 16px; }
  .reading-page main p:is(.text-lg, .text-xl) { font-size: 1rem; line-height: 1.65; }
  .reading-page main .mb-16 { margin-bottom: 32px; }
  .reading-page main :is(.p-8, .p-10) { padding: 18px; }
  .reading-page main .scroll-mt-32 { scroll-margin-top: 76px; }
  .reading-page main .space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 36px; }
  .reading-page main :is(th, td) { padding: 8px; }
}
