/* Tideline tokens. Every colour, size and space on the page comes from here.
   Font: Mona Sans variable (weight 200 to 900, width 75 to 125), self-hosted latin subset, SIL Open Font License. */
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-var-latin.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }

:root {
  /* Palette */
  --deep: #0E1B2C; --deep-2: #15263A; --deep-3: #1B2F46; --deep-0: #08111D;
  --linen: #ECE8E0; --stone: #E0DAD0; --stone-2: #D5CEC2; --raise-light: #F4F1EB;
  --glacier: #8ED1EC;       /* main accent: actions, focus, years, water */
  --glacier-deep: #1D6383;  /* glacier on light grounds */
  --ember: #F0892A;         /* second accent, sparingly: hand marks, hover, wood grain */
  --ember-deep: #9C4512;    /* ember on light grounds */
  --walnut: #4E3220; --leather: #8C5A3A;

  /* Type */
  --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(44px, 9.1vw, 138px);
  --t-h2: clamp(48px, 7vw, 112px);
  --t-word: clamp(44px, 7.4vw, 116px);
  --t-lead: clamp(19px, 1.45vw, 21px);
  --t-body: 18px;
  --t-small: 15px;

  /* Space */
  --gut: clamp(18px, 3vw, 40px);
  --gap: clamp(112px, 14vw, 210px);
  --col-gap: clamp(16px, 2vw, 28px);
  --max: 1360px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 0.18s;
}

/* Section schemes. In Mixed each section keeps its own; All dark and All light override. */
.sch-dark, :root[data-mode="dark"] .sec {
  --bg: var(--deep); --bg-2: var(--deep-2); --raise: var(--deep-3);
  --ink: #EEF2F4; --ink-2: #AFBCC8;
  --act: var(--glacier); --on-act: var(--deep); --mark: var(--glacier); --focus: var(--glacier);
  --warm: var(--ember); --on-warm: var(--deep);
  --mesh-a: #8ED1EC; --mesh-b: #E39A5C;
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025 0.02' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.82 0 0 0 0 0.93 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
.sch-light, :root[data-mode="light"] .sec {
  --bg: var(--linen); --bg-2: var(--stone); --raise: var(--raise-light);
  --ink: #0E1B2C; --ink-2: #3B4757;
  --act: var(--deep); --on-act: var(--linen); --mark: var(--glacier-deep); --focus: var(--deep);
  --warm: var(--ember-deep); --on-warm: var(--linen);
  --mesh-a: #1D6383; --mesh-b: #8A4A1F;
  /* linen: fine warp and weft */
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.26 0 0 0 0 0.2 0 0 0 0.11 0'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.02' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.26 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-mode="dark"] .sec.sch-light { --bg: var(--deep-2); --bg-2: var(--deep-3); --raise: var(--deep); }
:root[data-mode="light"] .sec.sch-dark { --bg: var(--stone); --bg-2: var(--linen); --raise: var(--raise-light); }
