/* ==========================================================================
   base.css: the tokens (colors, fonts, shapes, sizes, light, textures) and the base.
   Pick ONE outfit, ONE accent, ONE surface, on the <html> tag:
     <html lang="en" data-outfit="workshop" data-accent="orange">            (light)
     <html lang="en" data-outfit="cozy" data-accent="forest" data-surface="night">
   Outfits: workshop · poster · soft · editorial · cozy · round · counter      (details: references/outfits.md)
   Accents: orange · coral · yellow · lime · mint · teal · blue · violet · terracotta · forest · burgundy
   Every other component reads only these tokens: never hard-code a color.
   ========================================================================== */

:root {
  /* --- surfaces ("workshop" outfit, light) --- */
  --bg: oklch(0.965 0.003 90);       /* the page: never pure white */
  --card: oklch(0.995 0.001 90);     /* a card resting on the page */
  --sunken: oklch(0.945 0.004 90);   /* a card's scene, a field, a recessed area */
  --ink: oklch(0.22 0.012 270);      /* the text */
  --ink-2: oklch(0.5 0.012 270);     /* secondary text (5.4:1 contrast against the background) */
  --hairline: oklch(0.89 0.004 90);  /* borders and dividers */
  --stroke: oklch(0.76 0.006 90);    /* the thin strokes of drawings and frames */
  --dark: oklch(0.2 0.008 270);      /* a dark card or panel on the light page */
  --on-dark: oklch(0.96 0.003 270);
  --on-dark-2: oklch(0.74 0.01 270);

  /* --- the accent: one hue, three values (orange by default). These six tokens adjust on their own
         to the chosen accent and to where they sit (light page, dark block, night): don't override them. --- */
  --accent: var(--a);            /* bright: the action, the lit object */
  --on-accent: var(--a-on);      /* text set on the bright color */
  --accent-pale: var(--a-pale);  /* pale: the background of a tile */
  --accent-deep: var(--a-deep);  /* deep: text set on the pale tile, the edge of an object */
  --accent-text: var(--a-text);  /* the color when it is used for text */
  --marker: var(--a-marker);     /* the highlighter stroke for accents too light to write with on a light background */
  --a: oklch(0.68 0.205 41); --a-dark: oklch(0.68 0.205 41); --a-pale: oklch(0.955 0.025 55); --a-deep: oklch(0.4 0.11 42); --a-on: oklch(0.22 0.012 270); --a-text: oklch(0.61 0.2 40); --a-marker: transparent;

  /* --- shapes --- */
  --r-shell: 14px;  /* the outer shell of a card */
  --r-card: 8px;    /* the inside */
  --r-button: 10px;
  --r-small: 6px;
  --border: 1px solid var(--hairline);

  /* --- light: it comes from the top left, everywhere. A light edge on top, a shadow underneath.
         Two shadows per object: a small sharp one right underneath (the contact), a large soft one farther out. --- */
  --shadow-tint: oklch(0.25 0.03 270);  /* the tint of shadows (never pure black) */
  --sheen: inset 0 1px 0 color-mix(in oklch, white 75%, transparent);
  --shadow-rest: 0 1px 1.5px color-mix(in oklch, var(--shadow-tint) 16%, transparent), 0 0.5em 1em -0.45em color-mix(in oklch, var(--shadow-tint) 26%, transparent);
  --shadow-float: 0 1px 2px color-mix(in oklch, var(--shadow-tint) 14%, transparent), 0 1.5em 2.6em -1.1em color-mix(in oklch, var(--shadow-tint) 38%, transparent);
  --shadow-far: 0 3em 5em -2.2em color-mix(in oklch, var(--shadow-tint) 30%, transparent);
  --glow: 0 0.55em 1.5em -0.35em color-mix(in oklch, var(--accent) 60%, transparent);   /* a colored object casts a shadow of its own color */
  --shadow: 0 1px 0 oklch(0 0 0 / 0.03), 0 12px 32px -18px color-mix(in oklch, var(--shadow-tint) 28%, transparent);   /* the shadow of a card on the page */

  /* --- textures: layers to put ON a flat color (background-image), never on their own --- */
  --tex-hatch: repeating-linear-gradient(135deg, color-mix(in oklch, var(--ink) 9%, transparent) 0 1px, transparent 1px 5px);
  --tex-stripes: repeating-linear-gradient(90deg, color-mix(in oklch, var(--ink) 6%, transparent) 0 1px, transparent 1px 4px);
  --tex-dots: radial-gradient(color-mix(in oklch, var(--ink) 17%, transparent) 1px, transparent 1.4px);
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --tex-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain: var(--tex-grain); --grain-blend: multiply;

  /* --- fonts --- */
  --f-title: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-italic: "Instrument Serif", Georgia, serif;
  --title-weight: 600;         /* title weight */
  --thin-weight: 300;          /* weight of the thin voice */
  --title-tracking: -0.035em;  /* title tracking */
  --title-leading: 1.02;       /* title line height */
  --title-case: none;

  /* --- sizes (nothing huge: 72 px at most for the page headline, 44 on a phone) --- */
  --t-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --t-h2: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
  --t-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --t-text: 1.0625rem;
  --t-small: 0.9375rem;
  --t-mono: 0.75rem;
  --page: min(1180px, 100% - 2.5rem);   /* usable page width */
  --section-space: clamp(4.5rem, 3rem + 6vw, 8rem); /* the breathing room between two sections */

  /* --- motion: three curves (references/motion.md, section 1) --- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* the entrance: what arrives and settles, 0.7 s */
  --ease-spring: cubic-bezier(0.2, 1.4, 0.4, 1);  /* the spring: a small object that responds, 0.45 s */
  --ease-slow: cubic-bezier(0.25, 1, 0.5, 1);     /* the house: a calm place, 1 s, nothing bounces */
}

/* ============================ the accents ============================
   --a: the color on a light page · --a-dark: the same, tuned for a dark background
   --a-pale, --a-deep: its two other values · --a-on: the text set on it
   --a-text: for writing on a light background · --a-marker: the highlighter (light accents only)
   Measured contrast ratios (body text: at least 4.5; large titles: at least 3): references/outfits.md */
[data-accent="orange"] { --a: oklch(0.68 0.205 41); --a-dark: oklch(0.68 0.205 41); --a-pale: oklch(0.955 0.025 55); --a-deep: oklch(0.4 0.11 42); --a-on: oklch(0.22 0.012 270); --a-text: oklch(0.61 0.2 40); --a-marker: transparent; }
[data-accent="coral"] { --a: oklch(0.64 0.215 20); --a-dark: oklch(0.68 0.2 20); --a-pale: oklch(0.955 0.022 18); --a-deep: oklch(0.38 0.12 20); --a-on: oklch(0.22 0.012 270); --a-text: oklch(0.59 0.215 20); --a-marker: transparent; }
[data-accent="yellow"] { --a: oklch(0.87 0.17 92); --a-dark: oklch(0.87 0.17 92); --a-pale: oklch(0.97 0.05 97); --a-deep: oklch(0.42 0.085 85); --a-on: oklch(0.22 0.012 270); --a-text: oklch(0.22 0.012 270); --a-marker: oklch(0.87 0.17 92); }
[data-accent="lime"] { --a: oklch(0.89 0.2 128); --a-dark: oklch(0.89 0.2 128); --a-pale: oklch(0.965 0.06 126); --a-deep: oklch(0.4 0.095 135); --a-on: oklch(0.22 0.012 270); --a-text: oklch(0.22 0.012 270); --a-marker: oklch(0.89 0.2 128); }
[data-accent="mint"] { --a: oklch(0.82 0.16 162); --a-dark: oklch(0.82 0.16 162); --a-pale: oklch(0.96 0.04 165); --a-deep: oklch(0.37 0.075 165); --a-on: oklch(0.22 0.012 270); --a-text: oklch(0.22 0.012 270); --a-marker: oklch(0.82 0.16 162); }
[data-accent="teal"] { --a: oklch(0.47 0.08 195); --a-dark: oklch(0.8 0.11 188); --a-pale: oklch(0.955 0.02 190); --a-deep: oklch(0.3 0.05 200); --a-on: oklch(0.99 0 0); --a-text: oklch(0.47 0.08 195); --a-marker: transparent; }
[data-accent="blue"] { --a: oklch(0.53 0.215 262); --a-dark: oklch(0.72 0.15 258); --a-pale: oklch(0.955 0.022 255); --a-deep: oklch(0.33 0.13 265); --a-on: oklch(0.99 0 0); --a-text: oklch(0.53 0.215 262); --a-marker: transparent; }
[data-accent="violet"] { --a: oklch(0.56 0.235 292); --a-dark: oklch(0.74 0.15 292); --a-pale: oklch(0.955 0.026 295); --a-deep: oklch(0.34 0.14 290); --a-on: oklch(0.99 0 0); --a-text: oklch(0.56 0.235 292); --a-marker: transparent; }
[data-accent="terracotta"] { --a: oklch(0.57 0.135 42); --a-dark: oklch(0.74 0.12 48); --a-pale: oklch(0.95 0.025 60); --a-deep: oklch(0.37 0.08 40); --a-on: oklch(0.99 0 0); --a-text: oklch(0.57 0.135 42); --a-marker: transparent; }
[data-accent="forest"] { --a: oklch(0.43 0.09 155); --a-dark: oklch(0.8 0.13 152); --a-pale: oklch(0.955 0.028 150); --a-deep: oklch(0.3 0.06 156); --a-on: oklch(0.99 0 0); --a-text: oklch(0.43 0.09 155); --a-marker: transparent; }
[data-accent="burgundy"] { --a: oklch(0.43 0.135 16); --a-dark: oklch(0.74 0.13 18); --a-pale: oklch(0.955 0.02 16); --a-deep: oklch(0.31 0.095 16); --a-on: oklch(0.99 0 0); --a-text: oklch(0.43 0.135 16); --a-marker: transparent; }

/* ============================ the outfits ============================ */

/* POSTER: playful, for an app, a leisure venue, a brand that speaks loud */
[data-outfit="poster"] {
  --bg: oklch(0.97 0.005 80); --card: oklch(0.998 0.001 80); --sunken: oklch(0.95 0.006 80);
  --ink: oklch(0.24 0.012 60); --ink-2: oklch(0.5 0.014 60); --hairline: oklch(0.9 0.006 80); --stroke: oklch(0.78 0.008 80);
  --dark: oklch(0.24 0.012 60); --shadow-tint: oklch(0.25 0.03 60);
  --r-shell: 28px; --r-card: 20px; --r-button: 999px; --r-small: 12px;
  --f-title: "Archivo", "Arial Black", Impact, sans-serif;
  --f-text: "Onest", "Helvetica Neue", Arial, sans-serif;
  --f-mono: var(--f-text);
  --title-weight: 900; --thin-weight: 900; --title-tracking: -0.012em; --title-leading: 0.92; --title-case: uppercase;
}
[data-outfit="poster"] .title { font-stretch: 100%; }

/* SOFT: reassuring, for a service, health, childhood, an everyday tool */
[data-outfit="soft"] {
  --bg: oklch(0.975 0.008 290); --card: oklch(0.998 0.002 290); --sunken: oklch(0.955 0.012 290);
  --ink: oklch(0.27 0.035 275); --ink-2: oklch(0.5 0.03 275); --hairline: oklch(0.91 0.012 290); --stroke: oklch(0.8 0.02 290);
  --dark: oklch(0.27 0.035 275); --shadow-tint: oklch(0.35 0.08 280);
  --r-shell: 30px; --r-card: 22px; --r-button: 999px; --r-small: 14px;
  --shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset, 0 18px 40px -22px oklch(0.4 0.08 280 / 0.35);
  --f-title: "Parkinsans", "Trebuchet MS", Arial, sans-serif;
  --f-text: "Onest", "Helvetica Neue", Arial, sans-serif;
  --f-mono: var(--f-text);
  --title-weight: 600; --thin-weight: 300; --title-tracking: -0.03em; --title-leading: 1.04;
}

/* EDITORIAL: composed, for a professional firm, an estate, a product with a story */
[data-outfit="editorial"] {
  --bg: oklch(0.972 0.01 95); --card: oklch(0.992 0.005 95); --sunken: oklch(0.95 0.012 95);
  --ink: oklch(0.23 0.025 195); --ink-2: oklch(0.48 0.02 195); --hairline: oklch(0.88 0.012 95); --stroke: oklch(0.74 0.014 95);
  --dark: oklch(0.25 0.035 195); --shadow-tint: oklch(0.28 0.03 195);
  --r-shell: 6px; --r-card: 3px; --r-button: 999px; --r-small: 3px;
  --shadow: none;
  --f-title: "Newsreader", Georgia, "Times New Roman", serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-italic: "Newsreader", Georgia, serif;
  --title-weight: 350; --thin-weight: 300; --title-tracking: -0.03em; --title-leading: 1.04;
}

/* COZY: warm, for a place people come to (a restaurant, a counter, a salon, a shop, a food artisan) */
[data-outfit="cozy"] {
  --bg: oklch(0.957 0.018 80); --card: oklch(0.988 0.009 84); --sunken: oklch(0.93 0.022 80);
  --ink: oklch(0.25 0.03 50); --ink-2: oklch(0.47 0.03 55); --hairline: oklch(0.875 0.022 80); --stroke: oklch(0.74 0.026 76);
  --dark: oklch(0.235 0.028 48); --on-dark: oklch(0.955 0.015 82); --on-dark-2: oklch(0.76 0.02 78); --shadow-tint: oklch(0.3 0.05 55);
  --r-shell: 22px; --r-card: 15px; --r-button: 14px; --r-small: 9px;
  --shadow: 0 1px 0 oklch(1 0 0 / 0.6) inset, 0 16px 36px -22px oklch(0.3 0.05 55 / 0.4);
  --f-title: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: var(--f-text);
  --f-italic: "Instrument Serif", Georgia, serif;
  --title-weight: 400; --thin-weight: 400; --title-tracking: -0.022em; --title-leading: 1;
  --t-h1: clamp(2.75rem, 1.7rem + 4vw, 4.5rem); --t-h3: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
}
[data-outfit="cozy"] .v-italic { font-size: 1em; letter-spacing: -0.02em; }
[data-outfit="cozy"] .title--3 { letter-spacing: -0.012em; line-height: 1.08; }

/* ROUND: indulgent, joyful, for an ice-cream parlor, a pastry shop, a tea room, a candy shop, childhood */
[data-outfit="round"] {
  --bg: oklch(0.972 0.014 45); --card: oklch(0.996 0.004 50); --sunken: oklch(0.948 0.02 40);
  --ink: oklch(0.27 0.045 28); --ink-2: oklch(0.49 0.04 28); --hairline: oklch(0.9 0.02 38); --stroke: oklch(0.78 0.03 32);
  --dark: oklch(0.28 0.05 25); --on-dark: oklch(0.97 0.012 45); --on-dark-2: oklch(0.79 0.03 38); --shadow-tint: oklch(0.4 0.09 20);
  --r-shell: 28px; --r-card: 20px; --r-button: 999px; --r-small: 14px;
  --shadow: 0 1px 0 oklch(1 0 0 / 0.8) inset, 0 18px 40px -24px oklch(0.45 0.1 20 / 0.35);
  --f-title: "Fredoka", "Trebuchet MS", Arial, sans-serif;
  --f-text: "Onest", "Helvetica Neue", Arial, sans-serif;
  --f-mono: var(--f-text);
  --title-weight: 650; --thin-weight: 400; --title-tracking: -0.01em; --title-leading: 1;
  --ease: cubic-bezier(0.2, 1.4, 0.4, 1);  /* what arrives bounces a little: this outfit calls for it */
}

/* COUNTER: made here, printed. A bakery, a café, a grocery, a workshop.
   ALL the text is in a single ink: the deep value of the accent (dark accents only: blue, burgundy, forest,
   teal, terracotta, violet). No black, no gray, no shadow: hairlines in that ink. */
[data-outfit="counter"] {
  --bg: oklch(0.963 0.02 86); --card: oklch(0.986 0.012 88); --sunken: oklch(0.935 0.024 85);
  --ink: var(--a-deep); --ink-2: color-mix(in oklab, var(--a-deep) 80%, var(--bg));
  --hairline: color-mix(in oklab, var(--a-deep) 22%, var(--bg)); --stroke: color-mix(in oklab, var(--a-deep) 48%, var(--bg));
  --dark: var(--a-deep); --on-dark: oklch(0.963 0.02 86); --on-dark-2: color-mix(in oklab, oklch(0.963 0.02 86) 76%, var(--a-deep));
  --shadow-tint: var(--a-deep);
  --r-shell: 4px; --r-card: 3px; --r-button: 6px; --r-small: 3px;
  --shadow: none; --shadow-rest: 0 0 0 1px var(--hairline); --shadow-float: 0 0 0 1px var(--hairline), 0 0.6em 0 -0.3em color-mix(in oklab, var(--a-deep) 14%, transparent);
  --f-title: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Courier Prime", "Courier New", monospace;
  --title-weight: 700; --thin-weight: 400; --title-tracking: -0.03em; --title-leading: 1;
}
[data-outfit="counter"] .title { font-stretch: 92%; }

/* ============================ the night surface ============================
   For "workshop", "soft" and "cozy". The light accents (lime, mint, yellow, orange) look best on it. */
[data-surface="night"] {
  --bg: oklch(0.17 0.005 270); --card: oklch(0.215 0.006 270); --sunken: oklch(0.25 0.007 270);
  --ink: oklch(0.96 0.003 270); --ink-2: oklch(0.74 0.01 270); --hairline: oklch(0.3 0.007 270); --stroke: oklch(0.4 0.008 270);
  --dark: oklch(0.995 0.001 90); --on-dark: oklch(0.22 0.012 270); --on-dark-2: oklch(0.5 0.012 270);
  --shadow: 0 0 0 1px oklch(1 0 0 / 0.04) inset, 0 24px 60px -30px oklch(0 0 0 / 0.8);
  --shadow-tint: oklch(0.05 0 0); --sheen: inset 0 1px 0 color-mix(in oklch, white 9%, transparent);
  --grain: var(--tex-grain-light); --grain-blend: soft-light;
  --accent: var(--a-dark); --on-accent: oklch(0.2 0.012 270); --accent-text: var(--a-dark); --marker: transparent;
  /* in oklab, not oklch: mixed with a gray, the hue must not rotate (in oklch, the night yellow drifted to blue-green) */
  --accent-pale: color-mix(in oklab, var(--a-dark) 16%, var(--card)); --accent-deep: color-mix(in oklab, var(--a-dark) 72%, white);
}
[data-surface="night"][data-outfit="soft"] { --bg: oklch(0.19 0.025 280); --card: oklch(0.235 0.03 280); --sunken: oklch(0.27 0.034 280); --hairline: oklch(0.32 0.035 280); --stroke: oklch(0.42 0.04 280); }
/* data-ground="neutral": the same outfit on a ground with no tint, same lightness (contrast ratios hold).
   For an outfit whose default ground is the sector's cliché (the lavender of "soft" for a wellness app). */
[data-outfit="soft"][data-ground="neutral"] { --bg: oklch(0.975 0.004 80); --card: oklch(0.998 0.002 80); --sunken: oklch(0.955 0.006 80); --hairline: oklch(0.91 0.006 80); --stroke: oklch(0.8 0.01 80); --shadow-tint: oklch(0.35 0.02 60); }
[data-surface="night"][data-outfit="soft"][data-ground="neutral"] { --bg: oklch(0.18 0.008 60); --card: oklch(0.225 0.01 60); --sunken: oklch(0.26 0.012 60); --hairline: oklch(0.31 0.012 60); --stroke: oklch(0.41 0.014 60); }
[data-surface="night"][data-outfit="cozy"] { --bg: oklch(0.185 0.014 55); --card: oklch(0.23 0.017 55); --sunken: oklch(0.265 0.019 55); --ink: oklch(0.95 0.015 82); --ink-2: oklch(0.75 0.02 78); --hairline: oklch(0.31 0.02 55); --stroke: oklch(0.42 0.024 58); --dark: oklch(0.955 0.015 82); --on-dark: oklch(0.25 0.03 50); --on-dark-2: oklch(0.47 0.03 55); }

/* A dark block on a light page (or the reverse, at night): it flips the tokens for everything inside it.
   Classes that use it: .card--dark, .tier--featured, .footer--dark, .panel--dark. */
.card--dark, .tier--featured, .footer--dark, .panel--dark {
  --card: var(--dark); --sunken: color-mix(in oklch, var(--dark) 88%, var(--on-dark)); --ink: var(--on-dark); --ink-2: var(--on-dark-2);
  --hairline: color-mix(in oklch, var(--dark) 78%, var(--on-dark)); --stroke: color-mix(in oklch, var(--dark) 62%, var(--on-dark));
  --accent: var(--a-dark); --on-accent: oklch(0.2 0.012 270); --accent-text: var(--a-dark); --marker: transparent;
  --accent-pale: color-mix(in oklab, var(--a-dark) 16%, var(--dark)); --accent-deep: color-mix(in oklab, var(--a-dark) 72%, white);
  --shadow-tint: oklch(0.05 0 0); --sheen: inset 0 1px 0 color-mix(in oklch, white 9%, transparent); --grain: var(--tex-grain-light); --grain-blend: soft-light;
  background-color: var(--card); color: var(--ink);
}
[data-surface="night"] .card--dark, [data-surface="night"] .tier--featured, [data-surface="night"] .footer--dark, [data-surface="night"] .panel--dark { --accent: var(--a); --on-accent: var(--a-on); --accent-text: var(--a-text); --marker: var(--a-marker); --accent-pale: var(--a-pale); --accent-deep: var(--a-deep); --shadow-tint: oklch(0.25 0.03 270); --sheen: inset 0 1px 0 color-mix(in oklch, white 75%, transparent); --grain: var(--tex-grain); --grain-blend: multiply; }

/* ============================ the base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: var(--t-text); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }   /* text selection takes the brand color */

.page { width: var(--page); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.text { color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }
.text--large { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
