:root {
  --bg: #f6f3ec;
  --bg-alt: #efeadf;
  --paper: #fbf8f1;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #6b6358;
  --rule: #d8d1c2;
  --accent: #c0392b;
  --accent-soft: #d6a99f;
  --link: #8a3a2e;

  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --display: "Fraunces", "Tiempos Headline", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--link); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.mast-left, .mast-right {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast-right { text-align: right; }
.mast-right a { margin-left: 1.5rem; color: var(--muted); }
.mast-right a:hover { color: var(--accent); }
.mast-logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}
.mast-logo a { display: inline-block; }
.mast-tag {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------- Issue banner ---------- */
.issue {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.issue .number {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Hero (featured) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  padding: 2rem 0 4.5rem;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.hero-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 25px 60px -20px rgba(50, 30, 10, 0.18);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.tag.muted { color: var(--muted); }
.dot { color: var(--rule); }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.2rem;
}
.hero h1 a:hover { color: var(--accent); }
.hero .dek {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.55;
  max-width: 30em;
}
.byline {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.byline .author {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Article grid ---------- */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 0 1.8rem;
}
.section-rule h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}
.section-rule .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  padding-bottom: 4rem;
}

.card .card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.1rem;
  border-radius: 2px;
}
.card .card-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.65rem;
}
.card h3 a:hover { color: var(--accent); }
.card p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Two-column secondary section ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.two-col .card .card-img { aspect-ratio: 16/10; }
.two-col .card h3 { font-size: 1.75rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 4.5rem 2rem;
  margin-top: 3rem;
}
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
}
.newsletter p {
  color: var(--muted);
  margin: 0 0 1.8rem;
}
.signup {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
}
.signup input {
  flex: 1;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 2px;
  color: var(--ink);
}
.signup input:focus { outline: 1px solid var(--accent); }
.signup button {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  border-radius: 2px;
}
.signup button:hover { background: var(--accent); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #cfc6b5;
  padding: 3.5rem 2rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 600;
}
footer a { color: #cfc6b5; display: block; padding: 0.25rem 0; }
footer a:hover { color: #fff; }
footer .brand {
  font-family: var(--display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
footer .blurb { color: #948b7c; max-width: 28em; line-height: 1.55; }
footer .copyright {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  color: #6a6557;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* =============================================
   Article page
   ============================================= */

.article-head {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.article-head .kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.article-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.3rem;
}
.article-head .dek {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 32em;
  margin: 0 auto 2rem;
}
.article-head .byline {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
}

.lead-img {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.lead-img .img {
  aspect-ratio: 16/8;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.lead-img .caption {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

article.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink-soft);
}
article.prose > p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 500;
  float: left;
  font-size: 4.5rem;
  line-height: 0.9;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--accent);
}
article.prose p { margin: 0 0 1.3rem; }
article.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 3rem 0 1.1rem;
  color: var(--ink);
}
article.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--ink);
}
article.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.6rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
}
article.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
article.prose a:hover { color: var(--accent); }
article.prose em { font-style: italic; }
article.prose strong { color: var(--ink); }
article.prose hr {
  border: 0;
  text-align: center;
  margin: 2.5rem 0;
}
article.prose hr::before {
  content: "✻ ✻ ✻";
  color: var(--muted);
  letter-spacing: 0.5em;
  font-size: 0.9rem;
}
article.prose figure {
  margin: 2.5rem -2rem;
}
article.prose figure .img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
article.prose figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
  text-align: center;
  letter-spacing: 0.04em;
}
article.prose ul, article.prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1.3rem;
}
article.prose li { margin-bottom: 0.5rem; }

.article-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.article-footer .author-bio {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-top: 2rem;
}
.article-footer .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.article-footer .author-bio strong { color: var(--ink); font-weight: 600; }

.more-reading {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 4rem 2rem;
}
.more-reading h2 {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-weight: 600;
}

/* ---------- About page ---------- */
.about-prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 2rem;
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.about-prose h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
}
.about-prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.about-prose p { margin: 0 0 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding: 1rem 0 3rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.8rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .masthead-inner { grid-template-columns: 1fr; gap: 0.5rem; text-align: center; }
  .mast-left, .mast-right { text-align: center; }
  .mast-right a { margin: 0 0.75rem; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  article.prose figure { margin: 2rem 0; }
  .signup { flex-direction: column; }
}
