/* =========================================================================
   The American Centinel  -  styles.css
   Ever on watch for the Republic, since 1784.
   Palette: forest green #14352a, ivory #f5f0e4, aged gold #b28a3c
   Fonts: Fraunces (masthead/headlines), Spectral (body)
   ========================================================================= */

:root {
  --green: #14352a;
  --green-deep: #0e261e;
  --green-soft: #1c4335;
  --ivory: #f5f0e4;
  --ivory-warm: #efe7d4;
  --ivory-panel: #fbf7ec;
  --gold: #b28a3c;
  --gold-deep: #96702c;
  --ink: #17251d;
  --ink-soft: #3a4a41;
  --rule: rgba(20, 53, 42, 0.32);
  --rule-faint: rgba(20, 53, 42, 0.16);
  --measure: 40rem;
  --shell: 74rem;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ivory);
  background-image:
    radial-gradient(rgba(20, 53, 42, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.66;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--green-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(178, 138, 60, 0.55);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--gold-deep); text-decoration-color: var(--gold); }

.shell { width: 92%; max-width: var(--shell); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Top bar */
.topbar {
  background: var(--green-deep);
  color: var(--ivory-warm);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.35rem;
  padding-block: 0.35rem;
}
.topbar span { white-space: nowrap; }
.topbar .topbar-mid { color: var(--gold); letter-spacing: 0.28em; }
.topbar a { color: var(--ivory-warm); text-decoration-color: rgba(178,138,60,0.6); }

/* -------------------------------------------------------------- Masthead */
.masthead {
  background: var(--ivory);
  border-bottom: 1px solid var(--rule-faint);
}
.nameplate {
  text-align: center;
  padding: 1.9rem 0 1.3rem;
}
.nameplate-emblem {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 0.5rem;
  color: var(--green);
}
.nameplate-title {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--green);
}
.nameplate-title a { color: inherit; text-decoration: none; }
.nameplate-title .the {
  display: block;
  font-size: 0.26em;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: 0.35em;
  padding-left: 0.5em;
  color: var(--gold-deep);
}
.nameplate-motto {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.nameplate-motto .smallcaps {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--green-soft);
}

/* thick-thin rules */
.tt-rule {
  height: 0;
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 3px;
  margin: 0;
}
.tt-rule--gold {
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}
.tt-rule--thin {
  border-top-width: 2px;
  padding-bottom: 2px;
}

/* ------------------------------------------------------------------- Nav */
.mainnav {
  background: var(--green);
  color: var(--ivory);
}
.mainnav .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.mainnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.35rem;
  color: var(--ivory-warm);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover,
.mainnav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
  background: rgba(0, 0, 0, 0.14);
}

/* ---------------------------------------------------------------- Layout */
main { padding-block: 2.2rem 3rem; }

.ornament {
  display: block;
  width: 100%;
  border: 0;
  height: 34px;
  margin: 2.4rem auto;
  color: var(--gold);
}
.ornament svg { display: block; height: 34px; margin: 0 auto; color: var(--gold); }

/* Lead grid: two columns */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: start;
}
.column-rule {
  border-left: 1px solid var(--rule-faint);
  padding-left: 2.6rem;
}

/* Lead story */
.kicker {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
}
.lead-headline {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--green);
  margin: 0 0 0.7rem;
}
.lead-headline a { color: inherit; text-decoration: none; }
.lead-headline a:hover { color: var(--gold-deep); }
.lead-dek {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 34rem;
}
.byline {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-faint);
}
.byline .byline-desk { color: var(--green-soft); font-weight: 600; }
.byline time { color: var(--ink-soft); }

.lead-body p { margin: 0 0 1.05rem; }
.dateline {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--green);
}
.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.4rem;
  line-height: 0.72;
  padding: 0.32rem 0.6rem 0 0;
  color: var(--gold-deep);
}
.read-on {
  display: inline-block;
  margin-top: 0.4rem;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Aside: On Watch + Watchtower */
.aside-heading {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 40, "SOFT" 50;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--green);
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.aside-heading .glyph { color: var(--gold); flex: 0 0 auto; }
.aside-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.watch-list { list-style: none; margin: 0; padding: 0; }
.watch-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-faint);
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.watch-list li:first-child { padding-top: 0.2rem; }
.watch-list li:last-child { border-bottom: 0; }
.watch-list time {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-deep);
  white-space: nowrap;
}
.watch-list a {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 30;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.2;
  color: var(--green);
  text-decoration: none;
}
.watch-list a:hover { color: var(--gold-deep); }
.watch-list .watch-section {
  display: block;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.watchtower-note {
  margin-top: 1.8rem;
  background: var(--green);
  color: var(--ivory-warm);
  padding: 1.4rem 1.5rem 1.5rem;
  border-top: 3px solid var(--gold);
}
.watchtower-note .aside-heading { color: var(--ivory); }
.watchtower-note .aside-heading .glyph { color: var(--gold); }
.watchtower-note p {
  margin: 0.6rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
}
.watchtower-note p:first-of-type { margin-top: 0.3rem; }
.watchtower-note .sign {
  display: block;
  margin-top: 0.9rem;
  font-style: italic;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-size: 0.9rem;
}

/* --------------------------------------------------------- Section blocks */
.section-block { margin-top: 1rem; }
.section-block + .section-block { margin-top: 1rem; }

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.section-head h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--green);
  margin: 0;
  white-space: nowrap;
}
.section-head h2 a { color: inherit; text-decoration: none; }
.section-head h2 a:hover { color: var(--gold-deep); }
.section-head .section-head-rule {
  flex: 1 1 auto;
  height: 0;
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}
.section-head .section-more {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}
.card { display: flex; flex-direction: column; }
.card + .card {}
.card-kicker {
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
}
.card h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 40, "SOFT" 40;
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.14;
  color: var(--green);
  margin: 0 0 0.5rem;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--gold-deep); }
.card p {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.card .card-meta {
  margin-top: auto;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card .card-meta time { color: var(--gold-deep); }

/* First card in a section block set larger */
.section-block .cards.cards--feature {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}

/* --------------------------------------------------------- Article page */
.article-wrap { max-width: 46rem; margin-inline: auto; }
.breadcrumb {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.breadcrumb a { color: var(--green-soft); }
.article-header { margin-bottom: 1.6rem; }
.article-kicker {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--gold-deep);
  margin: 0 0 0.6rem;
}
.article-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 110, "SOFT" 40;
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.006em;
  color: var(--green);
  margin: 0 0 0.8rem;
}
.article-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.42;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.article-byline {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.9rem 0;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--rule-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
}
.article-byline .byline-desk { color: var(--green-soft); font-weight: 600; }
.article-byline .byline-sep { color: var(--gold); }

.article-body {
  font-size: 1.14rem;
  line-height: 1.74;
}
.article-body p { margin: 0 0 1.2rem; }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.8rem;
  line-height: 0.7;
  padding: 0.34rem 0.62rem 0 0;
  color: var(--gold-deep);
}
.article-body h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 48, "SOFT" 40;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--green);
  margin: 2.2rem 0 0.8rem;
}
.article-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-soft);
  margin: 1.8rem 0 0.6rem;
}
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-soft);
}
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.2rem; padding: 0; }
.article-body li { margin: 0 0 0.5rem; }
.article-body strong { color: var(--green); }

.article-endmark {
  display: block;
  text-align: center;
  color: var(--gold);
  margin: 2rem 0 1.4rem;
}
.article-endmark svg { display: inline-block; height: 26px; }

.article-footer {
  border-top: 1px solid var(--rule-faint);
  padding-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.article-footer .standing-note {
  font-style: italic;
  margin: 0 0 1rem;
}
.article-footer .back-to {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* --------------------------------------------------------- Section page */
.page-head { text-align: center; margin-bottom: 0.6rem; }
.page-head .article-kicker { text-align: center; }
.page-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 120, "SOFT" 50;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--green);
  margin: 0 0 0.5rem;
  line-height: 1;
}
.page-standfirst {
  max-width: 40rem;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.16rem;
  color: var(--ink-soft);
}

.section-list { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 52rem; }
.section-list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-faint);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}
.section-list li:first-child { border-top: 2px solid var(--green); }
.section-list h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 60, "SOFT" 40;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--green);
  margin: 0;
}
.section-list h3 a { color: inherit; text-decoration: none; }
.section-list h3 a:hover { color: var(--gold-deep); }
.section-list .list-dek { margin: 0.2rem 0 0; color: var(--ink-soft); }
.section-list .list-meta {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-list .list-meta time { color: var(--gold-deep); }

/* ------------------------------------------------------------------ Foot */
.site-footer {
  background: var(--green-deep);
  color: var(--ivory-warm);
  margin-top: 3rem;
  padding: 2.6rem 0 2rem;
}
.site-footer .footer-emblem {
  width: 58px; height: 58px; color: var(--gold);
  display: block; margin: 0 auto 0.7rem;
}
.site-footer .footer-brand {
  text-align: center;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ivory);
  margin: 0;
}
.site-footer .footer-motto {
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold);
  margin: 0.3rem 0 1.6rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(178, 138, 60, 0.35);
  border-bottom: 1px solid rgba(178, 138, 60, 0.35);
}
.footer-nav a {
  color: var(--ivory-warm);
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }
.footer-fine {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 228, 0.66);
  margin: 1.5rem auto 0;
  max-width: 44rem;
  line-height: 1.6;
}
.footer-fine p { margin: 0.3rem 0; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .column-rule {
    border-left: 0;
    padding-left: 0;
    border-top: 3px double var(--rule);
    padding-top: 1.8rem;
    margin-top: 0.6rem;
  }
  .cards, .section-block .cards.cards--feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body { font-size: 1.02rem; }
  .topbar .shell { justify-content: center; }
  .topbar .topbar-side { display: none; }
  .mainnav .shell { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .mainnav a { padding-inline: 1rem; letter-spacing: 0.14em; }
  .cards, .section-block .cards.cards--feature { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.4rem; }
  .section-head .section-more { display: none; }
  .article-body { font-size: 1.08rem; }
  .nameplate { padding-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
