* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset, var(--header)) + 24px);
  background: var(--noir);
}
/* Safari 26 tints its toolbars from the body background-color; the canvas is painted as an image layer above it. */
body {
  margin: 0;
  background: var(--noir) linear-gradient(var(--canvas), var(--canvas));
  color: var(--ink);
  font: 400 var(--body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
html[data-locale-pending] body > :not(.header-underlay) {
  visibility: hidden;
}
/* SPEC-90: short pages keep the footer at the window bottom; the white main grows, the footer keeps its height. svh never exceeds the visible viewport, so no scrollbar from 100vh on mobile toolbars. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body > main {
  flex: 1 0 auto;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
p {
  max-width: 65ch;
}
h1 {
  font: 400 var(--display)/1.04 var(--font-display);
  letter-spacing: -0.025em;
}
h2,
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
}
em {
  font-weight: 400;
}
h1,
h2,
h3,
p,
a,
summary,
li {
  overflow-wrap: anywhere;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
:focus-visible {
  outline: var(--focus-width) solid var(--forest);
  outline-offset: var(--focus-offset);
  box-shadow: 0 0 0 4px var(--surface);
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.anchor-alias {
  display: block;
  height: 0;
}
.content-preview {
  padding: 10px var(--gutter);
  background: var(--panel);
  color: var(--muted);
  font-size: var(--small);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: var(--control-min-height);
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
  font: 500 var(--ui)/1.4 var(--font-body);
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  transition: background var(--motion-quick);
}
.button:hover {
  background: var(--forest);
  border-color: var(--forest);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--control);
}
.button.secondary:hover {
  background: var(--panel);
}
.button.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.button.lime:hover {
  background: var(--lime-hover);
}
.button > span,
.text-link > span {
  display: inline-block;
  transition: transform var(--motion-standard) var(--ease);
}
.button:hover > span,
.text-link:hover > span {
  transform: translateX(2px);
}
.text-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  min-height: var(--target-min);
  font-size: var(--ui);
  font-weight: 500;
}
details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--ui);
  font-weight: 500;
  line-height: 1.4;
  min-height: 60px;
  padding: 16px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  flex-shrink: 0;
  transition: transform var(--motion-standard);
}
details[open] > summary > span {
  transform: rotate(180deg);
}
details p {
  font-size: var(--ui);
  color: var(--muted);
  padding-bottom: 24px;
}
code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .button:hover > span,
  .text-link:hover > span {
    transform: none;
  }
}
@media (forced-colors: active) {
  .button {
    border: 1px solid ButtonText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
  .brand img {
    forced-color-adjust: none;
  }
}
@media print {
  .skip,
  .content-preview,
  .header-tools,
  .menu-toggle {
    display: none !important;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  html,
  body {
    background: white;
  }
}
.small {
  font-size: var(--small);
  color: var(--muted);
  line-height: 1.5;
}
