/* Evøra design — shared foundation for every page.
   Layout model: each page is drawn on a Figma "artboard" (1440 wide on desktop, 393 on
   mobile). One design pixel = 1 --u, and --u scales with the viewport, so every element keeps
   its exact position on the red guide lines at any screen width. */

@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/CormorantGaramond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Infant"; src: url("../assets/fonts/CormorantInfant-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Stand-in for IvyPresto Display (commercial, Adobe Fonts). Metrics are overridden to match
   IvyPresto's box (line-height normal = 1.483em, baseline 1.2em) so positions stay identical.
   IvyPresto now comes from the Adobe Fonts kit euu6auj (linked in every page head); the stand-in
   only shows while the kit loads or if it fails. Weights 300 (Light) and 200 (Thin) need those
   styles in the kit; otherwise the browser uses the nearest one it has. */
@font-face {
  font-family: "Ivy Stand-in"; src: url("../assets/fonts/NotoSerifDisplay-200i.woff2") format("woff2");
  font-style: italic; font-weight: 100 900; font-display: swap;
  size-adjust: 96%; ascent-override: 120%; descent-override: 28.3%; line-gap-override: 0%;
}
/* IvyPresto Thin is narrower than Light: same stand-in, set tighter. */
@font-face {
  font-family: "Ivy Thin Stand-in"; src: url("../assets/fonts/NotoSerifDisplay-200i.woff2") format("woff2");
  font-style: italic; font-weight: 100 900; font-display: swap;
  size-adjust: 89%; ascent-override: 120%; descent-override: 28.3%; line-gap-override: 0%;
}

:root {
  --bg: #121111;
  --ink: #fefbf3;
  --ink-74: rgba(254, 251, 243, .74);
  --ink-50: rgba(254, 251, 243, .5);
  --ink-25: rgba(254, 251, 243, .25);
  --gold: #ffd676;
  --grey: #9c9c9c;
  --line-gold: rgba(255, 214, 118, .25);
  --line-grey: rgba(156, 156, 156, .25);
  --glow: 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(245, 179, 108, .1);
  --ff-sans: "Raleway", system-ui, sans-serif;
  --ff-ivy: "ivypresto-display", "Ivy Stand-in", Georgia, serif;
  --ff-ivy-thin: "ivypresto-display", "Ivy Thin Stand-in", Georgia, serif;
  --ff-garamond: "Cormorant Garamond", Georgia, serif;
  --ff-logo: "Cormorant Infant", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ff-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p, h1, h2, h3, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Artboards ---------- */
.board { container-type: inline-size; width: 100%; margin: 0 auto; position: relative; }
.board--desk { display: none; max-width: 1920px; }
.board--mob { display: block; max-width: 560px; }
.board--desk .art { --u: calc(100cqw / 1440); }
.board--mob .art { --u: calc(100cqw / 393); }
@media (min-width: 700px) {
  .board--desk { display: block; }
  .board--mob { display: none; }
}
.art { position: relative; width: 100%; height: calc(var(--h) * var(--u)); overflow: hidden; }

/* Absolute placement in design pixels: --x/--y from the parent's top-left, --r from its right.
   --w/--h are optional; when unset the width/height falls back to auto. */
/* Placement variables must not leak from parent to child: reset them on every placed element
   (an element's own inline values still win). */
.a, .ar { --x: 0; --y: 0; --r: 0; --w: initial; --h: initial; }
.a { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.ar { position: absolute; right: calc(var(--r) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }

/* ---------- Images ---------- */
.ph { overflow: hidden; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph > img.crop { position: absolute; max-width: none; width: var(--cw, 100%); height: var(--ch, 100%); left: var(--cl, 0); top: var(--ct, 0); object-fit: fill; }

/* ---------- Type ---------- */
.fs { font-size: calc(var(--fs) * var(--u)); line-height: calc(var(--lh) * var(--u)); letter-spacing: calc(var(--ls, 0) * var(--u)); }
.ivy { font-family: var(--ff-ivy); font-style: italic; font-weight: 300; }
.ivy-thin { font-family: var(--ff-ivy-thin); font-style: italic; font-weight: 200; }
.gold { color: var(--gold); }
.dim { color: var(--ink-50); }
.ink { color: var(--ink); }
.up { text-transform: uppercase; }
.low { text-transform: lowercase; }
.sc { font-variant-caps: all-small-caps; }
.lnum { font-variant-numeric: lining-nums proportional-nums; }
.nw { white-space: nowrap; }
.r { text-align: right; }
.c { text-align: center; }
.semi { font-weight: 600; }
.med { font-weight: 500; }
sup.m2 { font-size: .645em; line-height: 0; vertical-align: .55em; }

/* Text that Figma trims to the cap height (text-box trim). Raleway's normal line box is 1.174em
   with the cap top .23em down, so pulling up .23em puts the cap top on the design's top edge. */
.trim { line-height: 1.174 !important; margin-top: -.23em; }

/* ---------- Shared components ---------- */
.dot { position: absolute; border-radius: 50%; background: currentColor; }
.circle-btn { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 500; transition: background-color .35s ease, color .35s ease; }
.circle-btn--line { border: 1px solid var(--ink); color: var(--ink); }
.circle-btn--line:hover { background: var(--ink); color: var(--bg); }
.circle-btn--fill { background: var(--ink); color: rgba(18, 17, 17, .8); }
.circle-btn--fill:hover { background: var(--gold); }
.chev { display: inline-block; flex: none; }
.link-arrow { display: inline-flex; align-items: center; transition: opacity .25s ease; }
.link-arrow:hover { opacity: .7; }
.nav a, .foot-nav a { transition: color .25s ease; }
.nav a:hover { color: var(--gold); }
.row-line { border-bottom: 1px solid var(--line-gold); box-shadow: var(--glow); overflow: hidden; }

/* ---------- Guide overlay (add ?guides to the URL or press G) ---------- */
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 50; display: none; }
.show-guides .guides { display: block; }
.guides i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 40, 40, .75); left: calc(var(--g) * var(--u)); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.chev24 { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.chev18 { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.flip { transform: rotate(180deg); }

