/* =========================================================
   The Nationhood Review — a quarterly of ideas & public life
   Sober, credible, literary. High-contrast Caslon display over
   a Spectral reading serif, warm ivory paper, deep slate-navy,
   and a single restrained brass hairline. Non-partisan filler.
   ========================================================= */

:root {
  --paper:    #F7F3EA;
  --panel:    #EFE9DB;
  --ink:      #1C2231;
  --navy:     #26314B;
  --navy-solid:#192032;
  --brass:    #9A7B3F;
  --muted:    #575349;
  --faint:    #8C8678;
  --line:     #DED7C6;
  --line-dk:  #C7BEA9;

  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --body:    "Spectral", Georgia, serif;
  --label:   "Barlow Semi Condensed", system-ui, -apple-system, sans-serif;

  --maxw: 70rem;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; display: block; height: 3px; background: var(--brass); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

.label {
  font-family: var(--label); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  color: var(--faint);
}
.label--brass { color: var(--brass); }

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 2.5vw, 1.5rem); }
.masthead__kicker { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--faint); }
.masthead__kicker::before, .masthead__kicker::after { content: ""; width: 2.5rem; height: 1px; background: var(--line-dk); }
.masthead__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.75rem); line-height: 1.0; letter-spacing: 0.005em;
  margin: 0.55em 0 0.25em;
}
.masthead__title a { text-decoration: none; }
.masthead__motto { font-family: var(--body); font-style: italic; color: var(--muted); font-size: 1.08rem; margin: 0; }
.rule-double { margin-top: clamp(1.1rem, 3vw, 1.6rem); border-top: 1px solid var(--brass); }
.rule-double::after { content: ""; display: block; height: 3px; border-top: 3px solid var(--ink); margin-top: 3px; }

/* ---------- Nav ---------- */
.nav__list {
  list-style: none; margin: 0; padding: 0.85rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.9rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line-dk);
}
.nav__list a {
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; color: var(--muted); text-decoration: none;
  transition: color .16s ease;
}
.nav__list a:hover, .nav__list a:focus-visible { color: var(--brass); }
.nav__list .is-current { color: var(--ink); }

/* ---------- Front page: lead + contents rail ---------- */
.front { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.75rem, 4vw, 3.25rem); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.lead__kicker { margin-bottom: 0.9rem; }
.lead__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.005em;
  margin: 0 0 0.45em; max-width: 18ch;
}
.lead__title a { text-decoration: none; }
.lead__title a:hover { color: var(--navy); }
.lead__dek { font-size: 1.25rem; color: var(--muted); font-style: italic; margin: 0 0 1.2rem; max-width: 46ch; }
.lead__excerpt p { margin: 0 0 1rem; }
.lead__excerpt p:first-of-type::first-letter {
  font-family: var(--display); float: left; font-size: 3.4em; line-height: 0.72;
  padding: 0.05em 0.12em 0 0; color: var(--navy);
}
.lead__by { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--faint); margin-top: 0.6rem; }
.lead__by span { color: var(--brass); }

/* contents rail */
.rail { border-left: 1px solid var(--line-dk); padding-left: clamp(1.25rem, 3vw, 2rem); }
.rail__head { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 0.25rem; }
.rail__sub { margin: 0 0 1.25rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.toc li:first-child { border-top: none; }
.toc a { text-decoration: none; display: block; }
.toc__dept { color: var(--brass); }
.toc__title { font-family: var(--display); font-weight: 400; font-size: 1.18rem; line-height: 1.2; margin: 0.2rem 0 0; transition: color .16s ease; }
.toc a:hover .toc__title { color: var(--navy); }

/* ---------- Also in this issue ---------- */
.also { border-top: 3px double var(--ink); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.also__head { text-align: center; margin-bottom: 1.75rem; }
.also__head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0.3rem 0 0; }
.essays { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.essay { text-decoration: none; display: block; }
.essay__dept { margin-bottom: 0.55rem; }
.essay__title { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.14; margin: 0 0 0.4rem; transition: color .16s ease; }
.essay:hover .essay__title { color: var(--navy); }
.essay__dek { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Pull quote band ---------- */
.pull { background: var(--navy-solid); color: var(--paper); padding-block: clamp(2.75rem, 7vw, 4.5rem); text-align: center; }
.pull__q { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; letter-spacing: 0.005em; margin: 0 auto; max-width: 26ch; }
.pull__q::before { content: "\201C"; color: var(--brass); }
.pull__q::after { content: "\201D"; color: var(--brass); }
.pull__cite { margin-top: 1.25rem; color: #c9c8bd; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; }

/* ---------- Newsletter ---------- */
.subscribe { padding-block: clamp(2.75rem, 7vw, 4rem); text-align: center; border-bottom: 1px solid var(--line-dk); }
.subscribe__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.5rem 0 0.5rem; }
.subscribe__note { color: var(--muted); max-width: 44ch; margin: 0 auto 1.6rem; font-style: italic; }
.subscribe__form { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; max-width: 30rem; margin-inline: auto; }
.subscribe__input { flex: 1 1 15rem; font-family: var(--body); font-size: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; }
.subscribe__input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.subscribe__btn {
  font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; padding: 0.8rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: background .16s ease;
}
.subscribe__btn:hover { background: var(--navy-solid); }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line-dk); }
.footer__brand { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--brass); }
.footer__note { color: var(--faint); font-size: 0.9rem; font-style: italic; }
.footer__bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--brass); text-decoration: underline; }

/* ---------- Doc / legal ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc__head { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.doc__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.04; margin: 0.5rem 0 0.5rem; }
.doc__updated { color: var(--faint); font-style: italic; }
.doc__note { max-width: 46rem; margin: 0 auto 2.5rem; padding: 1rem 1.25rem; background: var(--panel); border-left: 3px solid var(--brass); font-size: 0.98rem; color: var(--muted); }
.doc__body { max-width: 46rem; margin-inline: auto; }
.doc__body h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 2.4rem 0 0.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dk); }
.doc__body h2:first-of-type { border-top: none; padding-top: 0; }
.doc__body p, .doc__body li { color: #35322b; }
.doc__body ul { padding-left: 1.2rem; }
.doc__body li { margin-bottom: 0.4rem; }
.doc__body a { color: var(--navy); }
.back-link { display: inline-block; margin-top: 2.5rem; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--brass); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lead > * { animation: rise .7s cubic-bezier(.2,.65,.3,1) both; }
  .lead__title { animation-delay: .06s; }
  .lead__dek { animation-delay: .14s; }
  .lead__excerpt { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; }
  .rail { border-left: none; border-top: 3px double var(--ink); padding-left: 0; padding-top: 1.75rem; }
  .essays { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
