/* The Brief — shared site styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Mono:wght@300;400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&display=swap');

:root {
  --ink:     #0d1b2a;
  --paper:   #f7f4ef;
  --paper-2: #ede9df;
  --rule:    #d4cfc4;
  --red:     #b52020;
  --green:   #1a6840;
  --gold:    #a07820;
  --gold-bg: #faf4e2;
  --green-bg:#edf7f1;
  --muted:   #7a7268;
  --muted-2: #a09a90;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.015em;
  color: var(--paper);
  text-decoration: none;
  padding: 15px 0;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--paper); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.52);
  text-decoration: none;
  padding: 10px 14px;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--paper); }
.nav-cta {
  color: var(--paper) !important;
  border: 1px solid rgba(247,244,239,0.28) !important;
  padding: 8px 18px !important;
  margin-left: 8px;
  border-radius: 0;
  transition: border-color .15s, background .15s !important;
}
.nav-cta:hover {
  border-color: rgba(247,244,239,0.65) !important;
  background: rgba(255,255,255,0.07) !important;
}
@media (max-width: 580px) {
  .site-nav { padding: 0 20px; }
  .nav-hide-mobile { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  padding: 88px 32px 104px;
  text-align: center;
}
.hero-overline {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.022em;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 22px;
}
.hero-sub {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.78;
  color: rgba(247,244,239,0.68);
  max-width: 560px;
  margin: 0 auto 38px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.28);
}

/* ── Page header (inner pages: archive, subscribe, about) ─────────────── */
.page-header {
  background: var(--ink);
  padding: 52px 32px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-header-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.38);
  margin-bottom: 14px;
}
.page-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 900;
  letter-spacing: -.018em;
  line-height: 1.1;
  color: #fff;
}
.page-header-sub {
  font-size: 15px;
  color: rgba(247,244,239,0.58);
  margin-top: 10px;
  line-height: 1.72;
}

/* Keep masthead for backward compatibility (about.html) */
.masthead {
  padding: 36px 0 26px;
  text-align: center;
  border-bottom: 2.5px solid var(--ink);
  border-top: 4px solid var(--ink);
  background: var(--paper);
}
.masthead-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .95;
  margin-bottom: 14px;
}
.masthead-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.masthead-rule::before, .masthead-rule::after {
  content: '';
  display: block;
  height: 1px;
  width: 50px;
  background: var(--rule);
}
.masthead-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Containers ──────────────────────────────────────────────────────────── */
.wrap        { max-width: 760px;  margin: 0 auto; padding: 0 28px; }
.wrap-wide   { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 660px;  margin: 0 auto; padding: 0 28px; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section     { padding: 72px 0; }
.section-alt { padding: 72px 0; background: var(--paper-2); }
.section-dark { padding: 72px 0; background: var(--ink); }
.section-first { padding-top: 56px; }
@media (max-width: 600px) {
  .section, .section-alt, .section-dark { padding: 52px 0; }
}

/* ── Overlines ───────────────────────────────────────────────────────────── */
.overline {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.overline::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 11px;
  background: var(--red);
  flex-shrink: 0;
}
.overline-gold { color: var(--gold); }
.overline-gold::before { background: var(--gold); }
.overline-white { color: rgba(247,244,239,0.42); }
.overline-white::before { background: var(--gold); }
.overline-center { justify-content: center; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.013em;
  color: var(--ink);
  margin-bottom: 16px;
}
h2.on-dark { color: #fff; }
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 10px;
}
p {
  font-size: 15.5px;
  line-height: 1.82;
  margin-bottom: 14px;
  color: var(--ink);
}
p:last-child { margin-bottom: 0; }
p.on-dark { color: rgba(247,244,239,0.70); }
p.lead {
  font-size: 17px;
  line-height: 1.82;
  color: var(--muted);
}
em { font-style: italic; }
strong { font-weight: 600; }
a { color: var(--red); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-dark:hover { background: #1a2f45; border-color: #1a2f45; color: var(--paper); }
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover { background: #8a6614; border-color: #8a6614; color: #fff; }
.btn-outline-white {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247,244,239,0.38);
}
.btn-outline-white:hover {
  border-color: rgba(247,244,239,0.75);
  background: rgba(255,255,255,0.08);
  color: var(--paper);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Latest card (homepage) ──────────────────────────────────────────────── */
.latest-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--paper);
  margin-top: 32px;
  transition: box-shadow .2s;
  overflow: hidden;
}
.latest-card:hover { box-shadow: 0 6px 28px rgba(13,27,42,0.10); }
.latest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 0;
}
.latest-label {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
}
.latest-date {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.latest-card-body { padding: 14px 24px 18px; }
.latest-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 12px;
}
.latest-teaser {
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--muted);
  margin-bottom: 16px;
}
.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.tag {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 4px 10px;
}
.latest-card-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper-2);
}

/* ── Mini snapshot (inside latest card) ──────────────────────────────────── */
.mini-snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rule);
  gap: 1px;
  border-top: 1px solid var(--rule);
}
.mini-cell {
  background: var(--paper-2);
  padding: 12px 16px;
}
.mini-label {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.mini-value {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}
.mini-change {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
}
.mini-change.up   { color: var(--green); }
.mini-change.down { color: var(--red);   }
.mini-change.flat { color: var(--muted); }

/* ── Benefit cards (Why Read section) ───────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 640px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 26px 26px 28px;
  transition: border-top-color .2s, box-shadow .2s;
}
.benefit-card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 4px 20px rgba(13,27,42,0.08);
}
.benefit-num {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 14px;
}
.benefit-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Issue preview grid ──────────────────────────────────────────────────── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 36px;
  overflow: hidden;
}
@media (max-width: 860px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .preview-grid { grid-template-columns: 1fr; } }
.preview-item {
  background: var(--paper);
  padding: 22px 18px 26px;
}
.preview-item-num {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted-2);
  line-height: 1;
  margin-bottom: 12px;
}
.preview-item-title {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.preview-item p {
  font-size: 12.5px;
  line-height: 1.60;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Career use cases grid ───────────────────────────────────────────────── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 36px;
  overflow: hidden;
}
@media (max-width: 640px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .use-grid { grid-template-columns: 1fr; } }
.use-item {
  background: var(--paper-2);
  padding: 22px 20px 24px;
  transition: background .15s;
}
.use-item:hover { background: var(--paper); }
.use-item-before {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 7px;
}
.use-item-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.26;
  margin-bottom: 6px;
}
.use-item p {
  font-size: 12.5px;
  line-height: 1.60;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Feature grid (subscribe page) ──────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  border: 1px solid var(--rule);
  border-top: 2.5px solid var(--ink);
  padding: 20px 20px 22px;
  background: var(--paper);
}
.feature-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.feature-card p { font-size: 13.5px; line-height: 1.68; color: var(--muted); margin-bottom: 0; }

/* ── Subscribe form ──────────────────────────────────────────────────────── */
.subscribe-form { margin-top: 24px; }
.subscribe-form .form-row {
  display: flex;
  gap: 0;
  max-width: 440px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .subscribe-form .form-row input[type="email"],
  .subscribe-form .form-row button {
    width: 100%;
    border-right: 1.5px solid var(--rule);
  }
  .subscribe-form .form-row input[type="email"] { border-bottom: none; }
  .subscribe-form.inverted .form-row input[type="email"] { border-right-color: rgba(247,244,239,0.25); }
}
.subscribe-form input[type="email"] {
  flex: 1;
  border: 1.5px solid var(--rule);
  border-right: none;
  background: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}
.subscribe-form input[type="email"]:focus { border-color: var(--ink); }
.subscribe-form input[type="email"]::placeholder { color: var(--muted-2); }
.subscribe-form button {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.subscribe-form button:hover { background: #1a2f45; border-color: #1a2f45; }
.subscribe-form.inverted input[type="email"] {
  background: rgba(255,255,255,0.08);
  border-color: rgba(247,244,239,0.25);
  color: var(--paper);
}
.subscribe-form.inverted input[type="email"]::placeholder { color: rgba(247,244,239,0.38); }
.subscribe-form.inverted input[type="email"]:focus { border-color: rgba(247,244,239,0.6); }
.subscribe-form.inverted button {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.subscribe-form.inverted button:hover { background: #8a6614; border-color: #8a6614; }
.form-note {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 10px;
}
.form-note.on-dark { color: rgba(247,244,239,0.28); }

/* ── Archive ─────────────────────────────────────────────────────────────── */
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.archive-item:first-child { border-top: 1px solid var(--rule); }
.archive-item:hover .archive-title { color: var(--red); }
.archive-date {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
  padding-right: 16px;
  border-right: 1px solid var(--rule);
  line-height: 1.7;
  padding-top: 2px;
  align-self: start;
}
.archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 7px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: color .15s;
}
.archive-teaser { font-size: 13px; color: var(--muted); line-height: 1.66; }
@media (max-width: 480px) {
  .archive-item { grid-template-columns: 1fr; gap: 5px; }
  .archive-date { text-align: left; border-right: none; padding-right: 0; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 28px 32px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.35);
  line-height: 2.4;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer a { color: rgba(247,244,239,0.45); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.section-rule { border-top: 1px solid var(--rule); }
.section-rule-ink { border-top: 2px solid var(--ink); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
