:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5b6672;
  --accent: #b4532a;
  --line: #e7e1d8;
  --on-accent: #ffffff;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #201d1a;
    --text: #ece7df;
    --muted: #a39c92;
    --accent: #e08a5f;
    --line: #34302b;
    --on-accent: #1a120c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}

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

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

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.brand {
  font: 600 20px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

.hero { padding: 72px 0 48px; }

.hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 16px;
}

.lenses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.lens {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
}

.lens strong {
  display: block;
  font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 40px;
  margin-top: 48px;
}

/* Home: story list */
.hero-figure { margin: 8px 0 32px; }
.hero-figure img, .story-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.stories { display: grid; gap: 20px; margin: 8px 0 48px; }

.story-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
}

.story-card:hover { border-color: var(--accent); }
.story-card img { width: 100%; height: auto; border-radius: 8px; display: block; }
.story-card h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; }
.story-card p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 560px) {
  .story-card { grid-template-columns: 1fr; }
}

h2.section-title {
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 40px 0 16px;
}

/* Story page */
.story-head { padding: 48px 0 24px; }
.story-head h1 { font-size: clamp(30px, 5.5vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.story-head .dek { color: var(--muted); font-size: 20px; margin: 0 0 14px; }

.byline {
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
}

.story-figure { margin: 8px 0 32px; }
.story-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.story h2 { font-size: 26px; line-height: 1.25; margin: 44px 0 14px; }

.facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 17px;
}

.facts ul { margin: 8px 0 0; padding-left: 20px; }
.facts li { margin-bottom: 6px; }

.lens-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
}

.lens-card .who {
  font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 8px;
}

.lens-card p { margin: 0 0 12px; }
.lens-card p:last-child { margin-bottom: 0; }

.try {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 12px;
  padding: 18px 20px;
}

.try strong { display: block; margin-bottom: 4px; }

.note {
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
}

.sources { font-size: 15px; padding-left: 20px; }
.sources li { margin-bottom: 6px; }

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
  font: 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share a, .share button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.share a:hover, .share button:hover { border-color: var(--accent); }

.more { margin-top: 40px; }
