/* =========================================================================
   IMPROVEMENT CAMP — DIRECTION B
   A re-picked system: a classical literary imprint.
   Source Serif 4 carries all the reading; Schibsted Grotesk handles the
   furniture (labels, nav, buttons, meta). Bone paper, warm ink, a muted
   garnet accent. Hairlines, drop caps, generous margins.
   Retune the brand by editing :root only.
   ========================================================================= */

:root {
  /* ---- Palette (cool bone, warm ink, muted garnet) ---- */
  --paper:      oklch(0.967 0.005 95);    /* cool bone page */
  --paper-2:    oklch(0.948 0.007 90);    /* recessed panel */
  --paper-3:    oklch(0.930 0.009 88);    /* deeper panel   */
  --ink:        oklch(0.232 0.012 60);    /* warm near-black */
  --ink-soft:   oklch(0.405 0.013 58);    /* secondary text */
  --ink-faint:  oklch(0.545 0.012 60);    /* captions/meta  */
  --garnet:     oklch(0.452 0.098 30);    /* muted oxblood accent */
  --garnet-deep:oklch(0.372 0.090 30);    /* hover / pressed */
  --garnet-tint:oklch(0.930 0.022 35);    /* wash panel      */
  --line:       oklch(0.845 0.006 75);    /* hairline rule   */
  --line-soft:  oklch(0.895 0.005 78);

  /* ---- Type ---- */
  --font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-label:   "Schibsted Grotesk", system-ui, -apple-system, sans-serif;

  /* ---- Measure & rhythm ---- */
  --measure: 60ch;
  --measure-prose: 66ch;
  --gutter: clamp(1.25rem, 5vw, 2.75rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --maxw: 70rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.075rem;
  line-height: 1.62;
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--garnet-tint); color: var(--ink); }

/* ---------- Type roles ---------- */
h1, h2, h3, .display {
  font-family: var(--font-serif);
  font-weight: 380;
  color: var(--ink);
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--garnet);
  margin: 0 0 1.2rem;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.eyebrow--center { text-align: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================================
   HEADER  — a masthead
   ========================================================================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 0.85rem var(--gutter);
}
.wordmark {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .amp { color: var(--garnet); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.72em 1.25em;
  min-height: 44px;   /* tap-target floor: WCAG 2.5.5 / Apple HIG 44pt / Material 48dp; mobile padding shrinks the box below 44px otherwise */
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--garnet); border-color: var(--garnet); transform: translateY(-1px); }
.btn--lg { font-size: 0.95rem; padding: 0.85em 1.55em; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.head-cta { flex: none; }

/* link-with-arrow (austere alternative CTA) */
.tlink {
  font-family: var(--font-label); font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.04em;
  color: var(--garnet-deep); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.tlink:hover { color: var(--garnet); border-color: var(--garnet); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 7vw, 4.5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 6vw, 3.5rem); }
.hero h1 {
  font-size: clamp(2.5rem, 8.5vw, 4.4rem);
  line-height: 1.07;
  font-weight: 340;
  letter-spacing: -0.022em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--garnet-deep); font-weight: 360; }
.hero__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: clamp(2.8rem, 6vw, 3.8rem) 0 2.1rem;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__note { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.01em; color: var(--ink-faint); max-width: 28ch; }

.hero__visual { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================================
   GENERIC SECTIONS
   ========================================================================= */
.lede-block { max-width: 52ch; }
.lede-block h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.1; font-weight: 360; letter-spacing: -0.018em;
}
.lede-block p {
  font-size: clamp(1.08rem, 2.2vw, 1.22rem); line-height: 1.6;
  color: var(--ink-soft); margin: 1.2rem 0 0;
}

/* ---------- Three movements (numbered, ruled) ---------- */
.movements { display: grid; gap: clamp(1.6rem, 4vw, 2.75rem); }
.movement { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.movement__n {
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--garnet);
  display: block; margin-bottom: 0.8rem;
}
.movement h3 { font-size: 1.34rem; line-height: 1.22; font-weight: 420; }
.movement p { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 340; line-height: 1.08; max-width: 17ch; margin-inline: auto; letter-spacing: -0.02em; }
.closing h2 em { font-style: italic; color: var(--garnet-deep); }
.closing p { color: var(--ink-soft); margin: 1.1rem auto 2rem; max-width: 42ch; font-size: 1.12rem; }

/* =========================================================================
   PROSE (about / legal)
   ========================================================================= */
.page-head { padding-block: clamp(2.8rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.7rem); font-weight: 340; line-height: 1.04; letter-spacing: -0.022em; max-width: 18ch; }
.page-head .updated { font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--ink-faint); margin-top: 1rem; }

.prose { max-width: var(--measure-prose); margin-inline: auto; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--ink-soft); line-height: 1.72; font-size: 1.075rem; }
.prose .lead {
  font-size: clamp(1.22rem, 3vw, 1.55rem); line-height: 1.4; color: var(--ink);
  font-weight: 380; letter-spacing: -0.012em;
}
/* drop cap on the lead */
.prose .lead.dropcap::first-letter {
  font-size: 3.4em; line-height: 0.82; float: left;
  padding: 0.06em 0.12em 0 0; color: var(--garnet-deep); font-weight: 400;
}
.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2.05rem); font-weight: 360; line-height: 1.14;
  margin-top: 2.9rem; letter-spacing: -0.018em;
}
.prose h3 {
  font-family: var(--font-label); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--garnet-deep);
  margin-top: 2.5rem; margin-bottom: -0.15rem;
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--garnet-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--garnet); }
.prose ul { padding-left: 1.1rem; margin: 0; list-style: none; }
.prose li { color: var(--ink-soft); line-height: 1.7; margin-top: 0.5rem; position: relative; padding-left: 1rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 1px; background: var(--garnet); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

.callout {
  border-left: 2px solid var(--garnet);
  padding: 0.3rem 0 0.3rem 1.4rem; margin-top: 2.2rem;
}
.callout p { color: var(--ink); font-size: 1.02rem; margin: 0; }

/* =========================================================================
   SAFETY FOOTER + SITE FOOTER
   ========================================================================= */
.safety { background: var(--paper-3); border-top: 1px solid var(--line); }
.safety .wrap { padding-block: 1.7rem; }
.safety p { margin: 0 auto; max-width: 82ch; font-size: 0.9rem; line-height: 1.62; color: var(--ink-soft); text-align: center; }
.safety strong { color: var(--ink); font-weight: 600; }
.safety a { color: var(--garnet-deep); font-weight: 600; text-underline-offset: 2px; }

.site-foot { background: var(--paper); border-top: 1px solid var(--ink); }
.site-foot .wrap { padding-block: clamp(2.8rem, 6vw, 4rem); }
.site-foot__top { display: grid; gap: 1.6rem; }
.site-foot .wordmark { font-size: 1.05rem; display: inline-block; }
.manifesto {
  font-family: var(--font-serif); font-weight: 380; font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.42;
  color: var(--ink); max-width: 52ch; margin: 1rem 0 0; letter-spacing: -0.008em;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; margin: 0; padding: 0; list-style: none; }
.foot-nav a {
  font-family: var(--font-label); text-decoration: none; color: var(--ink-soft);
  font-size: 0.84rem; letter-spacing: 0.03em; transition: color .15s ease;
}
.foot-nav a:hover { color: var(--garnet-deep); }
.site-foot__bottom {
  margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; justify-content: space-between;
  font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-faint);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 720px) {
  .movements { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; align-items: center; }
  .hero__visual { aspect-ratio: 3 / 4; }
  .site-foot__top { grid-template-columns: 1fr auto; align-items: end; }
  .foot-nav { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 460px) {
  .wordmark { font-size: 0.84rem; letter-spacing: 0.03em; }
  .btn { font-size: 0.76rem; padding: 0.64em 0.92em; }
  .site-head__inner { padding-inline: 1.15rem; gap: 0.6rem; }
  .head-cta .arr { display: none; }
}
