/* =====================================================================
   Squish Season - base stylesheet
   Tokens, reset, layout, header/footer, buttons, forms, overlays.
   One festive theme site-wide; christmas.css adds the scenery and decorations.
   Radius rule: interactive controls are pills, cards 16px, inputs 10px.
   Z-index scale: scene 0 < content 1 < header 50 < notice 90 < toast 100
   ===================================================================== */

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (one Christmas theme, every page) ---------- */
:root {
  color-scheme: dark;
  --font-display: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #256e5d;          /* evergreen */
  --bg-2: #1a5346;        /* deeper evergreen: footer and wells */
  --surface: #1f5f51;     /* cards sit a shade deeper than the page */
  --text: #fbf7ee;        /* warm snow white */
  --muted: #e0f0e4;
  --accent: #ffdc93;      /* warm gold */
  --accent-hover: #ffe9b8;
  --on-accent: #123a32;
  --border: #3d8c76;
  --border-strong: #c8e6d5;
  --focus: #ffdc93;
  --error: #ffdcd2;
  --success: #b9f0c7;
  --shadow: 0 18px 40px rgb(0 0 0 / 0.30);

  /* decoration colours (not used for text) */
  --gold-deep: #f2c14e;
  --red: #e04b4b;
  --red-deep: #c93f3f;
  --pine: #2a7d55;
  --snow: #f6f1e6;
  --sky: #5aa9e6;

  --radius-card: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --z-scene: 0;
  --z-content: 1;
  --z-header: 50;
  --z-notice: 90;
  --z-toast: 100;

  --header-h: 68px;
  --lights-h: clamp(54px, 7vw, 76px);   /* the garland under the header; the hero subtracts it */
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; position: relative; z-index: var(--z-content); }
main:focus { outline: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 700; }
small, .small { font-size: 0.9rem; }
.muted { color: var(--muted); }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 800px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.flow > * + * { margin-top: var(--flow, 1rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* Translucent so the fixed snow and northern lights carry on behind every band of
   the page instead of stopping at the section edges. Safe for contrast in both
   directions: the layer underneath is --bg, and text and links already pass against
   --bg and --bg-2, so any blend of the two passes too. */
.section--tint { background: color-mix(in srgb, var(--bg-2) 74%, transparent); }
.section-title {
  display: inline-block; position: relative;
  margin-bottom: clamp(1.25rem, 3vw, 2rem); padding-bottom: 0.4rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--red));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.is-in .section-title::after, .no-observer .section-title::after { transform: scaleX(1); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 40ch; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: 0.75rem; left: 0.75rem;
  z-index: calc(var(--z-toast) + 1);
  padding: 0.75rem 1.1rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); outline-color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  font: 600 1.3rem/1 var(--font-display);
  border-radius: var(--radius-pill);
}
.brand:hover { color: var(--text); }
.brand__mark { width: 32px; height: 32px; flex: none; overflow: visible; }
/* The mark is a wrapped present, so pointing at it gives the box a little lift and
   sets the bow wiggling, as if someone just picked it up. */
.brand__gift { transform-origin: 50% 95%; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand__bow  { transform-box: fill-box; transform-origin: 50% 90%; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (hover: hover) {
  .brand:hover .brand__gift { transform: translateY(-2px) scale(1.03); }
  .brand:hover .brand__bow  { transform: rotate(-9deg) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .brand__gift, .brand__bow { transition: none; }
}

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text); text-decoration: none; font-weight: 700;
  transition: background-color 0.2s ease;
}
.site-nav a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.8rem; font-weight: 800; line-height: 1;
}

.menu-toggle {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.5rem 0.9rem;
  border: 2px solid var(--border-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--text); font-weight: 700;
}
.menu-toggle__icon { position: relative; width: 18px; height: 14px; display: block; }
.menu-toggle__icon::before, .menu-toggle__icon::after, .menu-toggle__icon span {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon span { top: 6px; }
.menu-toggle__icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 799.98px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav a { min-height: 48px; padding: 0.75rem 1rem; justify-content: space-between; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn--ghost { background: transparent; color: var(--accent); border-color: transparent; padding-inline: 0.9rem; }
.btn--ghost:hover { text-decoration: underline; color: var(--accent-hover); }
.btn--sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; font-size: 1.3rem; line-height: 1; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.is-added { background: var(--success); border-color: var(--success); color: #fdfcff; }

/* ---------- Price ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.65rem; }
.price__amount { font: 600 clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem)/1 var(--font-display); color: var(--text); }
.price__note { color: var(--muted); font-size: 1rem; }
.price__fine { display: block; width: 100%; font-size: 0.875rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero__copy { display: grid; gap: 1.35rem; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 300px; }
.product-art { width: min(100%, 440px); height: auto; filter: drop-shadow(0 22px 34px rgb(0 0 0 / 0.30)); }
.eyebrow { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--accent); }

/* ---------- Cart ---------- */
.page-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0.5rem; display: grid; gap: 0.75rem; }
.page-head p { color: var(--muted); max-width: 60ch; }
.cart-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr); align-items: start; } }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-line {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0.75rem 1rem;
  padding: 1.25rem 0; border-top: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: 1px solid var(--border); }
.cart-line__img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-input); background: var(--snow); padding: 6px; }
.cart-line__info h3 { font-size: 1.15rem; }
.cart-line__info p { color: var(--muted); font-size: 0.95rem; }
.cart-line__controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cart-line__total { font: 600 1.25rem/1 var(--font-display); }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; }
  .cart-line__img { width: 88px; height: 88px; }
  .cart-line__controls { grid-column: auto; justify-content: flex-end; }
}
.qty { display: inline-flex; align-items: center; gap: 0.25rem; }
.qty__input {
  width: 3.4rem; min-height: 44px; text-align: center;
  border: 2px solid var(--border-strong); border-radius: var(--radius-input);
  background: var(--surface); color: var(--text); font-weight: 700;
  -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-empty {
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: left;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-card);
  display: grid; gap: 1rem; justify-items: start;
}
.cart-empty__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cart-summary {
  position: sticky; top: calc(var(--header-h) + 1rem);
  display: grid; gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.cart-summary h2 { font-size: 1.4rem; }
.totals { display: grid; gap: 0.5rem; margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--muted); }
.totals dd { font-weight: 700; }
.totals .totals__grand { padding-top: 0.6rem; border-top: 1px solid var(--border); font-size: 1.15rem; }
.totals .totals__grand dt { color: var(--text); font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.35rem; max-width: 640px; }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.field { display: grid; gap: 0.4rem; }
.field__label { font-weight: 700; }
.field__label .optional { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 0.9rem; color: var(--muted); }
.field__error { font-size: 0.95rem; font-weight: 700; color: var(--error); }
.field__error:empty { display: none; }
.input {
  width: 100%; min-height: 48px; padding: 0.7rem 0.95rem;
  border: 2px solid var(--border-strong); border-radius: var(--radius-input);
  background: var(--surface); color: var(--text);
}
textarea.input { min-height: 120px; resize: vertical; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.field.has-error .input { border-color: var(--error); }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.checkbox input { width: 22px; height: 22px; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }
.checkbox input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.35rem; }
legend { font: 600 1.3rem/1.2 var(--font-display); padding: 0; margin-bottom: 0.25rem; }
.form-status {
  padding: 1rem 1.25rem;
  border: 2px solid var(--error); border-radius: var(--radius-input);
  background: color-mix(in srgb, var(--error) 10%, var(--surface));
}
.form-status ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.form-status a { color: var(--text); font-weight: 700; }
.form-status--success { border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.form-status--info { border-color: var(--border-strong); background: var(--bg-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.order-success { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 2px solid var(--success); border-radius: var(--radius-card); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.order-success pre {
  white-space: pre-wrap; overflow-wrap: anywhere;
  padding: 1rem; border-radius: var(--radius-input);
  background: var(--bg-2); font: 0.92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.order-success__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Prose (policy pages) ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.prose p, .prose ul, .prose ol { margin-top: 0.85rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.35rem; }
.prose .callout { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--radius-input) var(--radius-input) 0; }
.toc { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.toc h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; margin-top: 0.25rem; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ---------- Not found ---------- */
.notfound { display: grid; gap: 1.25rem; justify-items: start; padding-block: clamp(3rem, 10vw, 7rem); }
.notfound__code { font: 600 clamp(4rem, 12vw, 8rem)/1 var(--font-display); color: var(--accent); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: var(--z-content);
  margin-top: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent); border-top: 1px solid var(--border);
}
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }
.site-footer__blurb { margin-top: 0.85rem; color: var(--muted); max-width: 34ch; }
.site-footer__contact { display: grid; gap: 0.4rem; margin-top: 1rem; justify-items: start; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 0.85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.site-footer a[aria-current="page"] { font-weight: 700; }
.site-footer__legal {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid; gap: 0.5rem;
  font-size: 0.9rem; color: var(--muted);
}

/* ---------- Toast ---------- */
.toast-region {
  position: fixed; left: 1rem; right: 1rem; top: calc(var(--header-h) + 0.75rem);
  z-index: var(--z-toast);
  display: grid; justify-items: center; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.5rem;
  max-width: min(100%, 540px);
  padding: 0.55rem 0.55rem 0.55rem 1.15rem;
  background: #123a32; color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.35);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast__msg { font-weight: 700; }
.toast a { color: var(--accent); font-weight: 700; padding: 0.4rem 0.5rem; }
.toast__close {
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
  font-size: 1.4rem; line-height: 1;
}
.toast__close:hover { background: rgb(255 255 255 / 0.12); }
.toast :focus-visible { outline-color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Storage notice ---------- */
.storage-notice {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  z-index: var(--z-notice);
  max-width: 400px;
  display: grid; gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.storage-notice p { font-size: 0.95rem; }
.storage-notice__actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }

/* ---------- Motion safety ---------- */
.is-hidden * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Page body spacing and inline code ---------- */
.page-body { padding-bottom: clamp(3rem, 7vw, 5rem); }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 4px; }

