/* HIGH WATER — tokens, fonts, reset, type, layout primitives */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* colour — nine tokens, measured against #0F0E0D unless noted */
  --c-obsidian: #0F0E0D;        /* page ground */
  --c-soot: #171615;            /* raised surfaces, drawer, cards */
  --c-mortar: #2B2825;          /* hairlines, borders */
  --c-brick: #A9502F;           /* Tudor brick — large type, fills, rules (3.6:1) */
  --c-brick-deep: #6E3421;      /* pressed states, bag fills */
  --c-brick-light: #D0693F;     /* small accent text on dark (5.3:1) */
  --c-parchment: #E9DFCB;       /* primary text (14.6:1) */
  --c-parchment-dim: #B6AC98;   /* secondary text, metadata (8.6:1) */
  --c-thames: #1E3A47;          /* riverine blue fields; parchment on it 9.1:1 */
  --c-thames-light: #5A8CA3;    /* river lines, links in blue fields (5.3:1) */

  --c-bg: var(--c-obsidian);
  --c-fg: var(--c-parchment);
  --c-fg-dim: var(--c-parchment-dim);
  --c-line: var(--c-mortar);

  /* type */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(3.6rem, 9.5vw, 11.5rem);
  --t-h2: clamp(2.3rem, 4.4vw, 4.8rem);
  --t-h3: clamp(1.6rem, 2.4vw, 2.4rem);
  --t-lede: clamp(1.35rem, 1.8vw, 1.9rem);
  --t-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --t-small: 0.875rem;
  --t-meta: 0.6875rem;

  /* space */
  --margin: clamp(20px, 5vw, 120px);
  --gutter: clamp(16px, 1.6vw, 28px);
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem;
  --s5: clamp(3rem, 6vw, 6rem); --s6: clamp(5rem, 10vw, 10rem); --s7: clamp(7rem, 14vw, 15rem);
  --measure: 1760px;

  /* motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --d-fast: 220ms; --d-med: 480ms; --d-slow: 900ms;

  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font: 400 var(--t-body) / 1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "ss01" 0;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 1.5px solid var(--c-parchment); outline-offset: 3px; }
::selection { background: var(--c-brick); color: var(--c-parchment); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }
.display { font-size: var(--t-display); line-height: 0.9; }
.h2 { font-size: var(--t-h2); line-height: 1.02; text-wrap: balance; }
.h3 { font-size: var(--t-h3); line-height: 1.1; }
.h2 em, .display em, .h3 em { font-style: italic; font-weight: 400; }
.lede { font-family: var(--f-display); font-weight: 400; font-size: var(--t-lede); line-height: 1.3; letter-spacing: -0.005em; }
.eyebrow { font-family: var(--f-sans); font-weight: 500; font-size: var(--t-meta); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-fg-dim); }
.eyebrow b { font-weight: 500; color: var(--c-brick-light); }
.meta { font-size: var(--t-meta); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-fg-dim); }
.small { font-size: var(--t-small); }
.dim { color: var(--c-fg-dim); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.measure { max-width: 34em; }
.measure-wide { max-width: 44em; }
p + p { margin-top: 1em; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); max-width: calc(var(--measure) + var(--margin) * 2); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s4); }
.section { padding-block: var(--s6); position: relative; }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: var(--s5); }
.section-head .eyebrow { grid-column: 1 / 4; }
.section-head .h2 { grid-column: 4 / 11; }
.section-head .aside { grid-column: 11 / 13; justify-self: end; text-align: right; }
.rule { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

@media (max-width: 1024px) {
  .section-head .eyebrow { grid-column: 1 / 13; margin-bottom: var(--s2); }
  .section-head .h2 { grid-column: 1 / 12; }
  .section-head .aside { grid-column: 1 / 13; justify-self: start; text-align: left; margin-top: var(--s2); }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .grid { row-gap: var(--s3); }
}
