/* H · Temelji — tokens. Warm editorial, off-white dominant, 8-col text grid with a wide margin column.
   Fonts (OFL, self-hosted, latin + latin-ext in one file): Newsreader (roman + italic, opsz) + Hanken Grotesk.
   Production alternative: GT Super or Tiempos Headline (Grilli Type / Klim) + Graphik (Commercial Type), commercial web licences. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("../fonts/newsreader-var.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap;
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2"); }

:root {
  --navy: #25364c; --slate: #86909f; --sand: #d1be8a; --ink: #16191e; --text: #333333; --white: #ffffff;
  --off: #f6f3ec; --sandtint: #ece4cf; --bronze: #8a6d2c;
  --bg: var(--off); --fg: var(--text); --heading: var(--ink); --muted: #6f6a5f; --line: #ddd5c3; --focus: var(--navy);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-btn: var(--font-text);
  --w-display: 350; --ls-display: -0.018em;
  --fs-display: clamp(3rem, 1.3rem + 4.6vw, 6.6rem);
  --fs-h1: clamp(2.7rem, 1.4rem + 3.6vw, 5.4rem);
  --fs-d2: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem);
  --fs-h2: clamp(2.2rem, 1.35rem + 2.5vw, 4.1rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .6vw, 1.7rem);
  --fs-lede: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-cap: .8125rem;
  --fs-nav: .95rem; --fs-btn: .95rem; --ls-btn: .01em; --tt-btn: none;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --sec: 160px; --maxw: 1240px; --read: 64ch; --gutter: clamp(20px, 4.5vw, 64px); --gut: 28px; --margin-col: 220px;
  --hdr: 88px; --radius: 2px;
  /* motion: soft fade-and-rise */
  --ease: cubic-bezier(.25, .6, .2, 1); --rv-dur: 600ms; --rv-o: 0; --rv-t: translateY(24px); --rv-clip: none;
  --mq-dur: 90s; --mq-pad: 36px; --mq-gap: 32px;
}
@media (max-width: 900px) { :root { --sec: 96px; --hdr: 72px; --gut: 16px; --margin-col: 1fr; } }

/* ---------- Base (shared by G/H/I; every value comes from the version tokens above) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--w-text, 400) var(--fs-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); font-weight: var(--w-display, 500); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--sand); color: var(--ink); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* section rhythm: every main > section gets the same generous padding from the tokens */
.sec { padding-block: var(--sec); position: relative; }
.bg-white { background: #ffffff; }
.bg-tint { background: #f4f5f7; }
.bg-off { background: #f6f3ec; }
.bg-sand { background: #ece4cf; }
.bg-navy, .bg-ink { --fg: #d5dae1; --heading: #ffffff; --muted: #9ba5b3; --line: rgba(255, 255, 255, .16); --focus: var(--sand); color: var(--fg); }
.bg-navy { background: var(--navy); }
.bg-ink { background: var(--ink); }

/* type scale */
.display-2 { font-size: var(--fs-d2); line-height: 1.12; letter-spacing: var(--ls-display); }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--ls-display); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; }
.body { max-width: var(--read); }
.body-l { font-size: var(--fs-lede); line-height: 1.5; max-width: var(--read); }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 40ch; }
.note { margin-top: var(--s-6); font-size: var(--fs-cap); color: var(--muted); }

/* image placeholder for slots that still need a real photo */
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(134, 144, 159, .14) 10px 11px); border: 1px dashed var(--muted); color: var(--muted); font: 500 12px/1.4 var(--font-mono, monospace); text-align: center; padding: 16px; }

/* parallax frame: the image is 10% taller than the frame and moves inside it (JS sets --py) */
.par { overflow: hidden; position: relative; }
.par img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0) scale(1.1); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .par img { transform: none; }
}
