:root {
  color-scheme: dark;
  --background: #090c12;
  --surface: #10151d;
  --surface-raised: #151b24;
  --text: #ede9df;
  --muted: #9b9b94;
  --faint: #6f746f;
  --line: #28303a;
  --accent: #c7d39a;
  --accent-ink: #15190d;
  --max-width: 1120px;
  --reading-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--accent);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  color: var(--accent);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.button,
button.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button.button:hover {
  background: transparent;
  color: var(--accent);
}

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.article-meta,
.article-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.article-header h1 {
  max-width: 850px;
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
}

.hero-copy {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.section-heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

.featured-section {
  padding: 72px 0;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 64px;
  align-items: end;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.featured-article h2 {
  max-width: 690px;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.featured-article h2 a,
.article-list h3 a {
  text-decoration: none;
}

.featured-article h2 a:hover,
.article-list h3 a:hover {
  color: var(--accent);
}

.featured-copy,
.article-list p,
.footer-copy {
  color: var(--muted);
  text-wrap: pretty;
}

.featured-copy {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.featured-cue {
  border-left: 1px solid var(--accent);
  padding-left: 24px;
}

.featured-cue p {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.45;
}

.articles-section {
  padding: 0 0 96px;
}

.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-bar p {
  margin: 0;
  color: var(--muted);
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 90px;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.article-list .category,
.article-list time,
.read-time {
  color: var(--faint);
  font-size: 13px;
}

.article-list .category a {
  color: var(--accent);
  text-decoration: none;
}

.article-list h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.article-list p {
  max-width: 650px;
  margin: 0;
}

.read-time {
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 64px;
  align-items: center;
  padding-block: 64px;
}

.footer-inner h2 {
  max-width: 620px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.footer-copy {
  max-width: 590px;
  margin: 0;
}

.signup-form {
  display: flex;
  gap: 10px;
}

.signup-form input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  background: var(--background);
  color: var(--text);
}

.signup-form input::placeholder {
  color: var(--faint);
}

.form-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.form-note a {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--faint);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Article page */
.article-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  color: var(--faint);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-header h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.article-deck {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--faint);
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading-width)) 220px;
  justify-content: center;
  gap: 80px;
  padding: 72px 0 96px;
}

.article-body {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 1.5em;
  text-wrap: pretty;
}

.article-body h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.article-body h3 {
  margin: 1.8em 0 0.6em;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.article-body strong {
  color: var(--text);
}

.article-body a {
  color: var(--accent);
}

.article-body blockquote {
  margin: 2em 0;
  border-left: 1px solid var(--accent);
  padding-left: 24px;
  color: var(--muted);
  font-size: 21px;
}

.article-body ul {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}

.article-body li {
  margin-bottom: 0.55em;
  padding-left: 0.3em;
}

.accuracy-note {
  margin: 32px 0;
  border: 1px solid var(--line);
  padding: 22px 24px;
  background: var(--surface);
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.accuracy-note strong {
  color: var(--accent);
}

.working-prompt {
  margin-top: 56px;
  border: 1px solid var(--accent);
  padding: 32px;
  background: var(--surface);
}

.working-prompt .eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.working-prompt p {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.35;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 32px;
  color: var(--faint);
  font-size: 13px;
}

.article-aside p {
  margin: 0 0 18px;
}

.article-aside strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.article-cta {
  max-width: var(--reading-width);
  margin: 0 auto 96px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.article-cta h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.article-cta p {
  margin: 0 0 24px;
  color: var(--muted);
  text-wrap: pretty;
}

.related {
  padding: 64px 0 88px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.related article {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--surface);
}

.related h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.related h3 a {
  text-decoration: none;
}

/* Site pages (home intro, blog index, cluster hubs, thanks, privacy).
   These share the tokens and chrome above; the blocks below cover the page
   layouts the journal prototype did not include. */
.page-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  max-width: 850px;
  margin: 16px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}

.page-header .article-deck {
  margin-bottom: 0;
}

.intro {
  padding: 72px 0 24px;
}

.intro .lede {
  max-width: var(--reading-width);
  margin: 0 0 1.1em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.4;
  text-wrap: pretty;
}

.intro p {
  max-width: var(--reading-width);
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  text-wrap: pretty;
}

.intro p:last-child {
  margin-bottom: 0;
}

.page-body {
  width: min(calc(100% - 40px), var(--reading-width));
  margin-inline: auto;
  padding: 64px 0 88px;
}

.page-body > p,
.page-body > ul {
  margin: 0 0 1.35em;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

.page-body > p.lead {
  color: var(--text);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.page-body h2 {
  margin: 2em 0 0.6em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body a {
  color: var(--accent);
}

.page-body strong {
  color: var(--text);
}

.page-body ul {
  padding-left: 1.15em;
}

.page-body li {
  margin-bottom: 0.5em;
}

.hub-member {
  margin: 8px 0 0;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--surface);
}

.hub-member .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.hub-member h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.hub-member h3 a {
  color: var(--text);
  text-decoration: none;
}

.hub-member h3 a:hover {
  color: var(--accent);
}

.hub-member p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.upcoming {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.upcoming li {
  margin: 0 0 14px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.upcoming strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.upcoming span {
  color: var(--faint);
  font-size: 15px;
}

.waitlist-panel {
  border: 1px solid var(--accent);
  padding: 32px;
  margin: 8px 0 0;
  background: var(--surface);
}

.waitlist-panel p {
  margin: 0 0 18px;
  color: var(--text);
}

.waitlist-panel .form-note {
  margin-top: 12px;
  color: var(--faint);
}

@media (max-width: 820px) {
  .featured-article,
  .footer-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .featured-article,
  .footer-inner {
    gap: 36px;
  }

  .article-layout {
    gap: 36px;
  }

  .article-aside {
    position: static;
    order: -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .article-list li {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .read-time {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav {
    min-height: 64px;
  }

  .nav-links > a:not(.button) {
    display: none;
  }

  .hero {
    padding: 64px 0 52px;
  }

  .page-header {
    padding: 56px 0 36px;
  }

  .intro {
    padding: 52px 0 16px;
  }

  .featured-section {
    padding: 48px 0;
  }

  .featured-article {
    padding: 28px;
  }

  .articles-section {
    padding-bottom: 64px;
  }

  .section-bar {
    display: block;
  }

  .section-bar p {
    margin-top: 8px;
  }

  .article-list li {
    display: block;
    padding: 28px 0;
  }

  .article-list .category {
    display: block;
    margin-bottom: 10px;
  }

  .footer-inner {
    padding-block: 48px;
  }

  .signup-form {
    display: grid;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span,
  .footer-links {
    display: block;
    margin-top: 6px;
  }

  .page-body {
    padding: 48px 0 64px;
  }

  .waitlist-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
