/* 44 Layers: draft homepage styles (above-the-fold build).
   Hierarchy: headline first, then subhead, then the scene (surface), then the rule (the layer below it). */

:root {
  --paper: #f6f3ed;
  --paper-2: #ece8df;
  --ink: #12161d;
  --ink-2: #2a303b;
  --muted: #565d6a;
  --rule: #d8d3c7;
  --accent: #b8431a;
  --accent-ink: #8f3010;
  --l3: #9ba6b2;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1 { font-family: var(--serif); font-weight: 500; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Draft strip */
.draft-strip {
  background: var(--ink);
  color: #d9d6cd;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 6px var(--gutter);
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.wordmark.small { font-size: 18px; }
.mark { width: 24px; height: 24px; }
.mark .m1 { fill: var(--l3); }
.mark .m2 { fill: var(--ink-2); }
.mark .m3 { fill: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 15.5px/1 var(--sans);
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background .15s, border-color .15s;
}
.btn-small { padding: 10px 16px; font-size: 14.5px; background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
main { flex: 1; }
.hero { padding: 72px 0 88px; }

.eyebrow {
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(2.9rem, 7.4vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 11em;
  margin-bottom: 28px;
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 56px;
}

/* Scene, then the rule that follows from it */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 62rem;
  margin-bottom: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(18,22,29,.08), 0 14px 30px -18px rgba(18,22,29,.4);
}
.scene {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 32px 34px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.rule {
  background: var(--ink);
  color: #f3efe6;
  padding: 32px 34px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  display: flex; flex-direction: column; gap: 12px;
  border-left: 4px solid var(--accent);
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.stub-note { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #b9b5aa; padding: 24px 0; font-size: 14px; }
.site-footer .mark .m1 { fill: #8a95a1; }
.site-footer .mark .m2 { fill: #d9d6cd; }
.site-footer .wordmark { color: #f3efe6; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .standfirst { margin-bottom: 40px; }
  .story { grid-template-columns: 1fr; }
  .scene { border-right: 1px solid var(--rule); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 24px 22px; font-size: 1.2rem; }
  .rule { border-left: 0; border-top: 4px solid var(--accent); padding: 24px 22px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  .btn-primary { width: 100%; text-align: center; }
  .header-inner .btn-small { display: none; }
}
