/* ============================================================
   Article pages — raffel-schmidt.com
   Shared stylesheet. Matches the design tokens on index.html.
   ============================================================ */

:root {
  --paper:        #F4F0E8;
  --paper-soft:   #EFE9DD;
  --card:         #FBF8F1;
  --ink:          #191A1C;
  --ink-soft:     #4A4C50;
  --muted:        #86837A;
  --line:         #DED8CC;
  --line-strong:  #CCC4B4;

  --accent:       #2F5266;
  --accent-deep:  #233F4F;
  --accent-tint:  rgba(47, 82, 102, 0.08);

  --dark:         #16171A;
  --on-dark:      #ECE7DC;
  --on-dark-soft: #A29E94;
  --on-dark-line: rgba(236, 231, 220, 0.13);

  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --container: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

a { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.header-nav a:hover { color: var(--accent); }
@media (max-width: 560px) { .header-nav { gap: 1rem; } }

/* ---------- Article ---------- */
.article-wrap { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5.5rem); }

.article-head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 3rem); }

.eyebrow {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.chip {
  display: inline-block;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.standfirst {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

.byline {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline .sep { color: var(--line-strong); }

.article-body { max-width: var(--measure); }

.article-body p { margin: 0 0 1.35rem; }

.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.9vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: clamp(2.4rem, 5vw, 3.2rem) 0 1rem;
}

.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 2rem 0 0.6rem;
}

.article-body ul { margin: 0 0 1.35rem; padding-left: 1.15rem; }
.article-body li { margin-bottom: 0.6rem; }

.article-body strong { font-weight: 600; }

.article-body a { text-underline-offset: 3px; }

.pull {
  margin: clamp(2rem, 5vw, 2.8rem) 0;
  padding: 1.4rem 0 1.4rem 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.note {
  margin: clamp(2rem, 5vw, 2.8rem) 0;
  padding: 1.15rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.note p { margin: 0 0 0.7rem; }
.note p:last-child { margin: 0; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(2.4rem, 5vw, 3.2rem) 0;
}

/* ---------- Foot of article ---------- */
.article-foot {
  max-width: var(--measure);
  margin-top: clamp(2.6rem, 6vw, 3.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.article-foot p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.9375rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 5px;
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--on-dark-line);
}
.site-footer .wordmark { color: var(--on-dark); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.875rem; color: var(--on-dark-soft); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--on-dark); }
.footer-fine {
  margin: 1.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 70ch;
}
