:root {
  --paper: #f4f0e8;
  --ink: #202522;
  --muted: #68706b;
  --line: #d8d2c7;
  --accent: #b64d2f;
  --panel: #ebe5da;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(182, 77, 47, .08), transparent 24rem),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: rgba(32, 37, 34, .35); text-underline-offset: .18em; }
a:hover { color: var(--accent); }

.site-header, main, footer {
  width: min(1080px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.dot { color: var(--accent); }

nav { display: flex; gap: 1.5rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a.active { color: var(--ink); }

.intro { padding: clamp(5rem, 11vw, 9rem) 0 clamp(4.5rem, 9vw, 7rem); }

.eyebrow, .meta {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro h1, .prose h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.lede, .standfirst {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.posts { padding-bottom: 6rem; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.section-heading h2 { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.section-heading span { color: var(--muted); font-size: .72rem; }

.posts article { border-bottom: 1px solid var(--line); }
.posts article a { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 2.4rem 0; text-decoration: none; }
.posts article h3 { margin: 0 0 .6rem; font-size: clamp(1.45rem, 3vw, 2.35rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
.posts article p:last-child { max-width: 650px; margin: 0; color: var(--muted); }
.posts .meta { margin-bottom: .65rem; color: var(--muted); font-size: .62rem; }
.posts article:hover h3, .posts article:hover .arrow { color: var(--accent); }
.arrow { padding-top: 1.9rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; transition: transform .2s ease; }
.posts article:hover .arrow { transform: translate(3px, -3px); }

.article-shell { max-width: 1080px; padding: clamp(4rem, 9vw, 7rem) 0 7rem; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.prose .standfirst { margin-bottom: 3rem; }
.prose p, .prose h2, .prose blockquote { max-width: 660px; }
.prose h2 { margin: 2.8rem 0 .7rem; font-size: 1.55rem; font-weight: 400; letter-spacing: -.02em; }
.prose blockquote { margin: 2.5rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 3px solid var(--accent); color: var(--muted); font-size: 1.25rem; font-style: italic; }
.prose hr { width: 4rem; margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.small { color: var(--muted); font-size: .85rem; }
.back { margin-top: 3.5rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .68rem;
}

footer p { margin: 0; }

@media (max-width: 600px) {
  html { font-size: 16px; }
  .site-header, main, footer { width: min(100% - 2rem, 1080px); }
  .site-header { padding: 1.4rem 0; }
  nav { gap: 1rem; }
  .intro { padding-top: 4.5rem; }
  .posts article a { gap: 1rem; padding: 1.8rem 0; }
  .arrow { display: none; }
  footer { flex-direction: column; gap: .4rem; }
}

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