/* NatKnit site styles: design direction A · Atelier (chosen 16 Nov 2026; lab/direction-atelier.html).
   Palette tokens: the same values as lab/palettes.css; the sheet's Palette setting picks one through <html data-palette>.
   Light/dark follows each visitor's device. */

/* Atelier fonts, self-hosted (SIL Open Font License, see the LICENSE file in each assets/fonts folder): Cormorant Garamond for headings,
   Manrope for text. Latin + Cyrillic only; the browser loads a file only when the page uses its letters. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond/cormorant-garamond-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond/cormorant-garamond-latin-500-normal.woff2') format('woff2'); 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: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond/cormorant-garamond-cyrillic-500-italic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond/cormorant-garamond-latin-500-italic.woff2') format('woff2'); 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: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond/cormorant-garamond-latin-600-normal.woff2') format('woff2'); 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: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/manrope/manrope-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/manrope/manrope-latin-400-normal.woff2') format('woff2'); 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: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/manrope/manrope-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/manrope/manrope-latin-600-normal.woff2') format('woff2'); 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; }

:root { color-scheme: light dark; }
:root[data-mode="light"] { color-scheme: light; }
:root[data-mode="dark"] { color-scheme: dark; }

[data-palette="oat"] {          /* 1 · Oatmeal & Walnut */
  --bg: light-dark(#f5efe6, #1e1915);      --surface: light-dark(#fbf7f1, #28211c);
  --ink: light-dark(#3a2a20, #f2eae0);     --muted: light-dark(#6e5d50, #b9aa9b);
  --line: light-dark(#e2d7c9, #3c322a);    --accent: light-dark(#a4553a, #e0967a);
  --accent-ink: light-dark(#ffffff, #2a1610); --accent-text: light-dark(#9a4d33, #e8a68c);
}
[data-palette="sage"] {         /* 2 · Linen & Sage */
  --bg: light-dark(#f3f1ea, #161b19);      --surface: light-dark(#faf9f4, #1f2623);
  --ink: light-dark(#1f2a26, #e9ede8);     --muted: light-dark(#5b6660, #a7b2ab);
  --line: light-dark(#dedcd0, #313b37);    --accent: light-dark(#4e6b57, #9dbba4);
  --accent-ink: light-dark(#ffffff, #14201a); --accent-text: light-dark(#476150, #a9c5b0);
}
[data-palette="plum"] {         /* 3 · Merino & Plum (default) */
  --bg: light-dark(#f4f2f0, #1b181b);      --surface: light-dark(#fbfaf9, #252025);
  --ink: light-dark(#2a2329, #f0ebef);     --muted: light-dark(#6a6168, #b5aab2);
  --line: light-dark(#e1dcdd, #3a3239);    --accent: light-dark(#6b3a5b, #d3a1c2);
  --accent-ink: light-dark(#ffffff, #2a1424); --accent-text: light-dark(#6b3a5b, #dcb1cd);
}
[data-palette="ochre"] {        /* 4 · Chalk & Ochre */
  --bg: light-dark(#f7f6f2, #181818);      --surface: light-dark(#ffffff, #222222);
  --ink: light-dark(#262626, #edebe6);     --muted: light-dark(#616161, #aba9a3);
  --line: light-dark(#e3e1da, #343434);    --accent: light-dark(#d1a03a, #e0b34f);
  --accent-ink: light-dark(#231a08, #231a08); --accent-text: light-dark(#7d5a0e, #e6be62);
}

/* ---------- Atelier layout (design direction A, see lab/direction-atelier.html) ---------- */
:root {
  --display: "Cormorant Garamond", Georgia, serif;
  --text: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --scrim: linear-gradient(to top, rgb(20 12 18 / .7), rgb(20 12 18 / .08) 62%);
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--text); }
a { color: var(--accent-text); text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.caps { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.rule { width: 48px; height: 1px; background: var(--accent); margin: 28px auto; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 5; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* Header: the name centred, the menu below it */
header.site { text-align: center; padding: 28px 16px 22px; }
/* inline-block: the name must be a box in both header states, or browsers ignore the glide animation (transforms)
   while the header is expanded */
.wordmark { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 38px; letter-spacing: .06em; line-height: 1;
  color: var(--ink); text-decoration: none; }
/* The logo (inline SVG from _app/logo.svg): "handmade by" in the accent, "NatKnit" in the ink of the palette in use.
   Its size is set by height; the width follows. Without the file the header shows the name as text (above). */
.wordmark.logo { font-size: 0; }
.wordmark.logo svg { display: block; height: 64px; width: auto; }
.logo-hand { fill: var(--accent-text); }
.logo-word { fill: currentColor; }
header.site.compact .wordmark.logo { font-size: 0; }
header.site.compact .wordmark.logo svg { height: 34px; }
@media (max-width: 599px) { .wordmark.logo svg { height: 52px; } }
header.site nav { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }
header.site nav .lang { color: var(--ink); }

/* Sticky header: site.js adds .has-fixed-header to <html> and .compact to the header after a short scroll. At the top
   the name is centred and large; compact, it sits on the left and the menu on the right (narrow screens: a Menu
   button opens the items as a list). Without JavaScript the header simply scrolls away. */
.menu-btn { display: none; }
.has-fixed-header { --bar-h: 59px; scroll-padding-top: calc(var(--bar-h) + 16px); }
.has-fixed-header body { padding-top: var(--header-h, 0px); }
.has-fixed-header header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
header.site.compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 12px 24px; border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgb(0 0 0 / .35); }
header.site.compact .wordmark { font-size: 26px; }
header.site.compact nav { margin-top: 0; justify-content: flex-end; gap: 4px 20px; font-size: 11px; letter-spacing: .14em; }
@media (max-width: 899px) {
  header.site.compact nav { display: none; }
  header.site.compact .menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 8px 12px;
    background: none; border: 0; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .2em; cursor: pointer; }
  header.site.compact.menu-open nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    gap: 0; padding: 4px 24px 12px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px;
    max-height: calc(100vh - var(--bar-h)); overflow-y: auto; }
  header.site.compact.menu-open nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  header.site.compact.menu-open nav a:first-child { border-top: 0; }
}

/* Back to top (as on 7pizzi): appears after half a screen of scrolling */
.to-top { position: fixed; z-index: 60; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in oklab, var(--ink) 62%, transparent); color: var(--bg);
  border: 1px solid color-mix(in oklab, var(--bg) 35%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgb(0 0 0 / .18);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9);
  transition: opacity .2s ease, transform .2s ease, background .15s ease, visibility 0s linear .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease, visibility 0s; }
.to-top:hover, .to-top:focus-visible { background: var(--accent); color: var(--accent-ink); }
.to-top:active { transform: scale(.94); }
@media (min-width: 860px) { .to-top { width: 48px; height: 48px; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }

/* Buttons */
.btn { display: inline-block; padding: 14px 30px; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home: full-width photo with the title on it */
.hero { position: relative; min-height: min(80vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--surface); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 48px; color: #fff; }
.hero .caps { opacity: .88; margin: 0; }
.hero h1 { font-style: italic; font-size: clamp(2.6rem, 7vw, 5rem); margin: 10px 0 22px; max-width: 12em; }
.hero .btn.ghost { color: #fff; border-color: rgb(255 255 255 / .75); }
.hero.plain { min-height: 0; background: none; }
.hero.plain::after { content: none; }
.hero.plain .wrap { color: var(--ink); text-align: center; padding-block: 56px 8px; }
.hero.plain h1 { margin-inline: auto; }
.hero.plain .actions { justify-content: center; }
.hero.plain .btn.ghost { color: var(--ink); border-color: var(--ink); }

.intro { padding-block: 88px 64px; text-align: center; }
.intro h2, .section-title { font-size: clamp(2rem, 4.4vw, 2.8rem); text-align: center; }
.intro p { max-width: 36em; margin: 0 auto; color: var(--muted); font-size: 18px; }
/* Only top and bottom: the side margins stay those of .wrap (auto), or a wide screen pushes the title off centre */
.section-title { margin-block: 0 36px; }

/* Pieces */
.pieces { display: grid; gap: 44px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-bottom: 96px; }
.pieces:has(> :only-child) { grid-template-columns: minmax(240px, 380px); justify-content: center; }
.piece { text-align: center; }
.piece a { color: inherit; text-decoration: none; }
.piece .frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.piece .frame img, .piece .frame video { width: 100%; height: 100%; object-fit: cover; }
.piece .piece-name { font-size: 24px; margin: 18px 0 2px; }
.piece p { margin: 0; }
.piece .caps { color: var(--accent-text); margin-top: 6px; }

/* Home: lookbook teaser */
.look-teaser { display: grid; gap: 24px; padding-bottom: 96px; align-items: end; }
@media (min-width: 800px) { .look-teaser { grid-template-columns: 1fr 1.35fr; gap: 40px; } .look-teaser figure:first-child { margin-bottom: 72px; } }
figure { margin: 0; }
figcaption { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 12px; }
figcaption a { font-family: var(--text); font-style: normal; font-size: 14px; }
.more { text-align: center; padding-bottom: 96px; margin-top: -48px; }

/* Home: about band */
.band { background: var(--surface); border-block: 1px solid var(--line); padding-block: 96px; text-align: center; }
.band h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-style: italic; }
.band p { color: var(--muted); max-width: 34em; margin: 0 auto 12px; }

/* Group, type, about, contact, not found */
.page-head { text-align: center; padding-block: 48px 40px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.page-head p { color: var(--muted); max-width: 36em; margin: 12px auto 0; font-size: 18px; }
.page-head .kicker { margin: 0 0 10px; font-size: 12px; }
.page-head .kicker a { color: var(--accent-text); text-decoration: none; }

/* A group's types as photo tiles (/women): two across on phones, up to four on wide screens */
.tiles { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 88px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 240px)); justify-content: center; gap: 36px 28px; } }
.tile { color: inherit; text-decoration: none; text-align: center; }
.tile .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .frame img { transform: scale(1.03); }
.tile .tile-name { font-size: 24px; margin-top: 14px; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .tile .frame img { transition: none; } .tile:hover .frame img { transform: none; } }

/* Links between related lists ("All · Dresses · Bags") */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: -16px; padding-bottom: 48px; }
.chips a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: 9px 18px; letter-spacing: .16em; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.prose { padding-bottom: 96px; font-size: 17px; }
.prose p { margin: 0 0 16px; }
.prose .prose-h { font-size: 26px; margin: 36px 0 10px; }
.prose .prose-h:first-child { margin-top: 0; }
.prose .actions { justify-content: center; margin-top: 28px; }

/* Product page: photos left, details right (stays in view while the photos scroll) */
.product { display: grid; gap: 32px; padding-block: 16px 96px; }
@media (min-width: 900px) {
  .product { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
  .product .info { position: sticky; top: calc(var(--bar-h, 0px) + 24px); }
}
.product .media { display: grid; gap: 12px; }
.product .media img, .product .media video { width: 100%; background: var(--surface); }
.product .media figcaption { font-size: 17px; }
.product .info .caps a { color: var(--accent-text); text-decoration: none; }
.product h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 10px 0 12px; }
.product .price { font-size: 20px; margin: 0; }
.product .avail { color: var(--accent-text); margin: 8px 0 24px; }
.product .lead { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.product .info p { margin: 0 0 14px; }
.product dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 28px 0;
  padding-top: 24px; border-top: 1px solid var(--line); }
.product dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.product dd { margin: 0; }
.ph { aspect-ratio: 3 / 4; background: var(--surface); }

/* Product photos: each opens the full-screen viewer. Narrow screens: a sideways swipe strip with dots (site.js). */
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { width: 100%; }
.dots { display: none; }
@media (max-width: 899px) {
  .product .gallery { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; scrollbar-width: none; }
  .product .gallery::-webkit-scrollbar { display: none; }
  .product .gallery figure { flex: 0 0 100%; padding-inline: 16px; scroll-snap-align: center; }
  .product .gallery { align-items: center; }
  .product .gallery img, .product .gallery video { width: 100%; height: auto; } /* each photo whole, at its own shape */
  .dots { display: flex; justify-content: center; gap: 4px; margin: 4px 0 0; }
  .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--muted) 45%, transparent); transition: background .2s ease, transform .2s ease; }
  .dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
}
@media (min-width: 700px) and (max-width: 899px) { .product .gallery { margin-inline: -40px; } .product .gallery figure { padding-inline: 40px; } }

/* Full-screen photo viewer: pinch / drag / double-tap on phones, click and wheel on desktop, arrows and Escape */
.viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgb(14 11 14 / .96); color: #fff; overflow: hidden; }
.viewer::backdrop { background: rgb(14 11 14 / .96); }
.viewer .stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.viewer .stage.zoomed { cursor: grab; }
.viewer .stage.dragging { cursor: grabbing; }
.viewer .canvas { position: absolute; inset: 0; transform-origin: 0 0; }
.viewer .canvas.animate { transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.viewer .canvas img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }
.viewer button { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25);
  background: rgb(0 0 0 / .45); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.viewer button:hover, .viewer button:focus-visible { background: rgb(255 255 255 / .18); }
.viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.viewer .close { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.viewer .prev { left: calc(14px + env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.viewer .next { right: calc(14px + env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.viewer .count { position: absolute; z-index: 2; top: calc(26px + env(safe-area-inset-top, 0px)); left: 20px; font-size: 12px;
  font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.viewer[data-single] .prev, .viewer[data-single] .next, .viewer[data-single] .count { display: none; }
@media (max-width: 599px) { .viewer .prev, .viewer .next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: none; } }
.viewer-open { overflow: hidden; }

/* Lookbook page */
.lookbook { display: grid; gap: 56px; max-width: 980px; margin: 0 auto; padding-bottom: 96px; }
.lookbook figure:nth-child(even) { width: min(100%, 720px); margin-left: auto; }

footer.site { text-align: center; padding: 48px 16px 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wordmark { font-size: 26px; display: block; margin-bottom: 10px; }
footer.site p { margin: 4px 0; }

/* Motion: a slow fade-up while scrolling, switched on by site.js (never with reduced motion) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal-on [data-reveal].shown { opacity: 1; transform: none; }

/* Older browsers without light-dark() (e.g. Safari before 17.5): the default palette, light. */
@supports not (color: light-dark(#000, #fff)) {
  [data-palette] { --bg: #f4f2f0; --surface: #fbfaf9; --ink: #2a2329; --muted: #6a6168; --line: #e1dcdd;
    --accent: #6b3a5b; --accent-ink: #ffffff; --accent-text: #6b3a5b; }
}
