/* LATITUDE tokens: the single source of truth. Re-skin here first.
   Family: midnight deco. Engraved caps, thin double rules, deco gold. */

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --midnight: #0b1026;
  --midnight-2: #111737;
  --midnight-3: #182048;
  --starlight: #ededf4;
  --starlight-2: #e2e2ec;
  --white: #ffffff;
  --gold: #c29b40;        /* deco gold, rules + large marks on light grounds */
  --gold-bright: #e8c979; /* labels on midnight, AA at label sizes */
  --gold-ink: #77601f;    /* labels on starlight, AA at label sizes */

  /* semantic (midnight theme is the default) */
  --bg: var(--midnight);
  --bg-2: var(--midnight-2);
  --bg-3: var(--midnight-3);
  --fg: var(--starlight);
  --muted: #a9abc4;
  --line: rgba(232, 201, 121, 0.22);
  --line-strong: rgba(232, 201, 121, 0.52);
  --line-neutral: rgba(237, 237, 244, 0.14);
  --accent: var(--gold-bright);
  --accent-rule: var(--gold);
  --focus: #a8c0ff;

  /* type: Marcellus carries engraved caps, Outfit carries prose */
  --font-display: "Marcellus", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;
  --t-masthead: clamp(3.2rem, 12.5vw, 11.5rem);
  --t-h1: clamp(2.2rem, 5.4vw, 4.6rem);
  --t-h2: clamp(1.7rem, 3.6vw, 3rem);
  --t-h3: clamp(1.2rem, 2vw, 1.65rem);
  --t-lead: clamp(1.1rem, 1.7vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-lbl: 0.72rem;
  --lh-display: 1.04;
  --lh-body: 1.6;
  --track-display: 0.05em;
  --track-masthead: 0.12em;
  --track-lbl: 0.24em;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 9rem;
  --section-pad: clamp(5.5rem, 13vh, 10rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
  --measure: 38rem;
  --max-w: 84rem;

  /* shape + depth: deco is rectilinear; radius stays near zero */
  --r-1: 2px;
  --r-2: 4px;
  --corner: 0.9rem;   /* deco corner-mark length */
  --shadow-1: 0 2px 8px rgba(4, 6, 18, 0.35), 0 18px 48px rgba(4, 6, 18, 0.45);

  /* motion */
  --dur-1: 150ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
  --dur-4: 1000ms;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);

  /* layers */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 60;
}

/* day theme: any element with data-theme="day" flips the semantic set */
[data-theme="day"] {
  --bg: var(--starlight);
  --bg-2: var(--starlight-2);
  --bg-3: #d6d6e2;
  --fg: #141833;
  --muted: #50546e;
  --line: rgba(194, 155, 64, 0.42);
  --line-strong: rgba(194, 155, 64, 0.8);
  --line-neutral: rgba(20, 24, 51, 0.14);
  --accent: var(--gold-ink);
  --accent-rule: var(--gold);
  --focus: #2b47c9;
}
