/* Shared shell and primitives: no page-specific selectors here. Navigation
   is usable without JavaScript; enhanced mobile navigation is a disclosure. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--text-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
::selection {
  color: var(--paper);
  background: var(--accent);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.5rem, 4.3vw, 4.2rem);
}
h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
}
h1 em,
h2 em {
  color: var(--accent);
  font-weight: 400;
}
p {
  text-wrap: pretty;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  width: min(100% - var(--gutter) * 2, var(--page-width));
  margin-inline: auto;
}
.eyebrow,
.mini-label {
  font: 500 var(--text-xs)/1.6 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow {
  margin-bottom: var(--space-3);
}
.mini-label {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 1rem;
  z-index: 10;
  padding: 1rem;
  background: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.wordmark-dot {
  color: var(--accent);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-left: auto;
  font-size: var(--text-sm);
}
.primary-nav a {
  text-decoration: none;
  padding-block: 0.75rem;
}
.primary-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}
.header-controls {
  order: 3;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.icon-button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.4rem;
}
.menu-toggle {
  display: none;
  color: var(--ink);
  border: 0;
  background: none;
  min-height: 44px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-block: 0.65rem;
}
.text-link span {
  font-size: 1.3rem;
  transition: transform 160ms ease;
}
.text-link:hover span {
  transform: translate(3px, -3px);
}
.section {
  padding-block: var(--space-7);
}
.section-intro {
  max-width: 690px;
  margin-bottom: var(--space-5);
}
.section-intro > p:last-child {
  color: var(--muted);
  max-width: 580px;
  margin-top: var(--space-3);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.section-heading > p {
  max-width: 390px;
  color: var(--muted);
}
.release-note {
  color: var(--muted);
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
}
.site-footer .wordmark {
  font-size: 1.1rem;
}
.site-footer p {
  color: var(--muted);
}
.site-footer > a:last-child {
  text-decoration: none;
}
@media (max-width: 760px) {
  .site-header {
    min-height: 84px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 1rem;
  }
  .wordmark {
    font-size: 1.2rem;
  }
  .wordmark img {
    width: 30px;
    height: 30px;
  }
  .header-controls {
    margin-left: auto;
    order: initial;
  }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .primary-nav {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.3rem 1.2rem;
    padding-top: 0.75rem;
  }
  .nav-enhanced .primary-nav:not([data-open]) {
    display: none;
  }
  .section {
    padding-block: var(--space-6);
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: var(--space-3);
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .site-footer p {
    width: 100%;
    order: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
