:root {
  color-scheme: light;
  --bg: #f2f0e8;
  --paper: #fbfaf5;
  --ink: #1b2430;
  --muted: #68707a;
  --accent: #176b5b;
  --bright: #e9a63a;
  --line: #d6d3c8;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(27, 36, 48, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 48, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }

.topbar,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border: 5px solid var(--accent);
  border-radius: 50%;
  box-shadow: 8px 0 0 -4px var(--bright);
}

nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 750; }

.intro { padding: 90px 0 70px; }
.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 950px; margin: 0; font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 750; }
.summary { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: 1.18rem; }

.feed { border-top: 1px solid var(--ink); }
.story {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}
.story-main { padding-block: 52px; }
.story-number { color: var(--bright); font-size: .85rem; font-weight: 850; }
.story h2 { max-width: 760px; margin: 8px 0 14px; font-size: clamp(1.7rem, 4vw, 3.1rem); }
.story p:not(.meta) { max-width: 700px; margin: 0 0 18px; color: var(--muted); }
.meta { margin: 0; color: var(--accent); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.reading { font-size: .8rem; font-weight: 700; }

.manifesto {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-block: 84px;
  padding: 48px;
  border-radius: 3px 42px 3px 3px;
  color: white;
  background: var(--accent);
}
.manifesto p { max-width: 680px; margin: 0; font-size: clamp(1.5rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.18; }
.manifesto a { white-space: nowrap; font-weight: 750; }
.manifesto a:hover { color: #ffe3a9; }

.article-page { padding: 84px 0 100px; }
.article-page h1 { max-width: 900px; font-size: clamp(2.6rem, 7vw, 5.3rem); }
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; margin-top: 72px; }
.prose-grid section, .policy-block { padding-top: 20px; border-top: 1px solid var(--line); }
.prose-grid h2, .policy-block h2 { margin: 0 0 12px; font-size: 1.45rem; }
.prose-grid p, .policy-block p { margin: 0; color: var(--muted); }
.narrow { max-width: 800px; }
.policy-block { margin-top: 46px; }
.return { margin-top: 62px; font-weight: 700; }

.not-found { display: grid; min-height: 68vh; place-content: center; justify-items: center; text-align: center; }
.not-found h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); }
.not-found > p:not(.kicker) { max-width: 480px; color: var(--muted); }
.orbit { position: relative; width: 90px; height: 90px; margin-bottom: 30px; border: 2px solid var(--line); border-radius: 50%; }
.orbit::before, .orbit span { position: absolute; border-radius: 50%; content: ""; }
.orbit::before { inset: 26px; background: var(--accent); }
.orbit span { width: 14px; height: 14px; top: 4px; left: 52px; background: var(--bright); }
.home-button { margin-top: 18px; padding: 11px 20px; border: 1px solid var(--ink); border-radius: 99px; font-weight: 750; text-decoration: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
footer p { margin: 0; }

@media (max-width: 700px) {
  html { font-size: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; padding-block: 22px; }
  nav { gap: 8px 16px; }
  .intro { padding: 62px 0 48px; }
  .story { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding-block: 30px; }
  .manifesto { align-items: flex-start; flex-direction: column; margin-block: 58px; padding: 30px; }
  .prose-grid { grid-template-columns: 1fr; margin-top: 54px; }
  footer { flex-direction: column; }
}
