/* Home Guard Journal — print-journal stylesheet */
:root {
  --paper: #f3eee2;
  --paper-deep: #e9e1cf;
  --ink: #1e241d;
  --ink-soft: #4a5246;
  --forest: #2c4733;
  --forest-deep: #1d3123;
  --olive: #66703f;
  --brass: #9c7a35;
  --rust: #93432a;
  --rule: #c9bea4;
  --rule-strong: #2c4733;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------- Masthead ---------- */
.dateline {
  border-bottom: 1px solid var(--rule);
  font-family: var(--label);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dateline .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.dateline .hide-sm { display: none; }
@media (min-width: 768px) { .dateline .hide-sm { display: inline; } }

.masthead { text-align: center; padding: 1.6rem 0 0; }
.masthead a.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 54px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 7.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: .01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
@media (min-width: 768px) { .brand-mark { width: 62px; height: 72px; } }
@media (max-width: 559px) {
  .masthead:not(.compact) a.brand { flex-direction: column; gap: .5rem; }
  .masthead:not(.compact) .brand-name { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
  .masthead.compact .brand-name { font-size: clamp(1.45rem, 6.6vw, 1.9rem); }
  .masthead.compact .brand-mark { width: 28px; height: 33px; }
}
.masthead .motto {
  font-family: var(--text);
  font-style: italic;
  color: var(--ink-soft);
  margin: .7rem auto 0;
  font-size: 1.02rem;
  max-width: 34rem;
}
.masthead.compact { padding-top: 1.1rem; }
.masthead.compact .brand-name { font-size: clamp(1.7rem, 5.4vw, 2.7rem); }
.masthead.compact .brand-mark { width: 36px; height: 42px; }
.masthead.compact .motto { display: none; }

.double-rule { border: 0; height: 5px; border-top: 3px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin: 1.2rem 0 0; }

.sections-nav { border-bottom: 1px solid var(--rule-strong); }
.sections-nav ul { list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.4rem; }
.sections-nav a {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  padding: .3rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.sections-nav a:hover, .sections-nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--brass); }
@media (max-width: 520px) { .sections-nav ul { gap: .1rem 1rem; } .sections-nav a { font-size: .84rem; letter-spacing: .08em; } }

/* ---------- Labels / kickers ---------- */
.kicker {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  color: var(--rust);
  text-decoration: none;
  display: inline-block;
  margin-bottom: .5rem;
}
a.kicker:hover { color: var(--forest); }
.byline { font-family: var(--label); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.byline span + span::before { content: "·"; margin: 0 .5em; color: var(--brass); }

/* ---------- Issue divider ---------- */
.divider { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.6rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--rule-strong); }
.divider .divider-inner { text-align: center; }
.divider .no { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--brass); font-weight: 600; }
.divider h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: .1rem 0 0; font-weight: 500; font-style: italic; }
.divider svg { width: 16px; height: 16px; color: var(--brass); }

/* ---------- Lead story ---------- */
.lead { display: grid; gap: 1.4rem; padding-top: 1.8rem; }
@media (min-width: 900px) { .lead { grid-template-columns: 1.55fr 1fr; gap: 2.4rem; align-items: center; } }
.lead figure { margin: 0; }
.lead img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.lead figcaption, .article-hero figcaption { font-size: .85rem; font-style: italic; color: var(--ink-soft); padding-top: .45rem; border-bottom: 1px solid var(--rule); padding-bottom: .45rem; }
.lead h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.08; }
.lead h2 a { color: var(--ink); text-decoration: none; }
.lead h2 a:hover { color: var(--forest); }
.lead .dek { font-size: 1.15rem; color: var(--ink-soft); }
.read-more { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--forest); text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.read-more:hover { color: var(--rust); }

/* ---------- Cards ---------- */
.trio { display: grid; gap: 2rem; }
@media (min-width: 700px) { .trio { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 0; } .trio > .card { padding: 0 1.6rem; border-left: 1px solid var(--rule); } .trio > .card:first-child { padding-left: 0; border-left: 0; } .trio > .card:last-child { padding-right: 0; } }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: .9rem; filter: saturate(.92); }
.card h3 { font-size: 1.35rem; font-weight: 600; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--brass); }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Latest + sidebar ---------- */
.columns { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .columns { grid-template-columns: 2fr 1fr; gap: 3rem; } .columns > aside { border-left: 1px solid var(--rule); padding-left: 2.2rem; } }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { display: grid; grid-template-columns: 1fr; gap: .9rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.latest-list li:first-child { padding-top: 0; }
@media (min-width: 560px) { .latest-list li { grid-template-columns: 200px 1fr; gap: 1.3rem; } }
.latest-list img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.latest-list h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.latest-list h3 a { color: var(--ink); text-decoration: none; }
.latest-list h3 a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--brass); }
.latest-list p { margin: 0 0 .4rem; color: var(--ink-soft); font-size: 1rem; }

.side-block { margin-bottom: 2.2rem; }
.side-title { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: .85rem; color: var(--forest); border-top: 3px solid var(--forest); border-bottom: 1px solid var(--forest); padding: .4rem 0; margin: 0 0 1rem; }
.side-block ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.side-block ol li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; padding: .55rem 0; border-bottom: 1px dotted var(--rule); }
.side-block ol li::before { content: counter(n, decimal-leading-zero); font-family: var(--display); font-style: italic; color: var(--brass); font-size: 1.1rem; line-height: 1.4; }
.side-block ol a { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; line-height: 1.3; }
.side-block ol a:hover { color: var(--rust); }
.side-block ul.plain { list-style: none; margin: 0; padding: 0; }
.side-block ul.plain li { padding: .4rem 0; border-bottom: 1px dotted var(--rule); }
.side-block ul.plain a { text-decoration: none; color: var(--ink); }
.side-block ul.plain a:hover { color: var(--rust); }
.side-block ul.plain .count { float: right; font-family: var(--label); color: var(--ink-soft); }
.note-box { border: 1px solid var(--rule-strong); padding: 1.1rem 1.2rem; font-size: .97rem; position: relative; }
.note-box::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule); pointer-events: none; }
.note-box p:last-child { margin-bottom: 0; }
.editor-note p { font-size: 1rem; }
.editor-note p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 3.1rem; line-height: .85; padding: .3rem .45rem 0 0; color: var(--forest); font-weight: 600; }

/* ---------- Article ---------- */
.article-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 2.4rem 0 1.4rem; }
.article-head h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.08; font-weight: 600; }
.article-head .dek { font-size: 1.2rem; font-style: italic; color: var(--ink-soft); max-width: 640px; margin: 0 auto 1.1rem; }
.article-hero { max-width: 1040px; margin: 0 auto 2rem; }
.article-hero img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.prose { max-width: 680px; margin: 0 auto; font-size: 1.12rem; line-height: 1.72; }
.prose > p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 4.3rem; line-height: .8; padding: .35rem .55rem 0 0; color: var(--forest); font-weight: 600; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.pull {
  margin: 2.2rem 0;
  padding: 1.2rem 0;
  border-top: 3px solid var(--forest);
  border-bottom: 1px solid var(--forest);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.3;
  color: var(--forest-deep);
  text-align: center;
}
.pull p { margin: 0; }
.takeaways { background: var(--paper-deep); border-left: 4px solid var(--brass); padding: 1.3rem 1.4rem 1rem; margin: 2.2rem 0; }
.takeaways h2, .takeaways .tk-title { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; font-weight: 600; color: var(--forest); border: 0; padding: 0; margin: 0 0 .7rem; }
.takeaways ul { margin-bottom: .4rem; }
.legal-note { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.4rem; font-style: italic; }
.related { max-width: 1040px; margin: 3rem auto 0; }
.related .trio .card h3 { font-size: 1.2rem; }

/* ---------- Page (static pages) ---------- */
.page-head { text-align: center; padding: 2.4rem 0 1rem; max-width: 760px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
.page-head p { font-style: italic; color: var(--ink-soft); font-size: 1.12rem; }
.page-body { max-width: 720px; margin: 0 auto; font-size: 1.07rem; }
.page-body h2 { font-size: 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.page-body h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.page-body ul { padding-left: 1.3rem; }
.page-body li { margin-bottom: .4em; }
.page-body li::marker { color: var(--brass); }
.updated { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ink-soft); }
address { font-style: normal; }

/* Contact */
.contact-grid { display: grid; gap: 2.4rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-card dl { margin: 0; }
.contact-card dt { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--rust); font-weight: 600; margin-top: 1.1rem; }
.contact-card dd { margin: .2rem 0 0; }
form.journal-form { display: grid; gap: 1rem; }
.journal-form label { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; display: block; margin-bottom: .3rem; }
.journal-form input, .journal-form textarea, .journal-form select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft);
  padding: .55rem .1rem; border-radius: 0;
}
.journal-form textarea { border: 1px solid var(--ink-soft); padding: .7rem; min-height: 9rem; resize: vertical; }
.journal-form input:focus, .journal-form textarea:focus, .journal-form select:focus { outline: none; border-color: var(--forest); box-shadow: 0 2px 0 var(--forest); }
.btn {
  display: inline-block; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem;
  background: var(--forest); color: #f3eee2; border: 0; padding: .85rem 1.6rem; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--rust); color: #fff; }
.form-note { font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* Archive */
.archive-section { margin-bottom: 1rem; scroll-margin-top: 1rem; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { display: grid; gap: .3rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .archive-list li { grid-template-columns: 9rem 1fr; } }
.archive-list .date { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ink-soft); padding-top: .25rem; }
.archive-list h3 { font-size: 1.3rem; margin: 0 0 .25rem; }
.archive-list h3 a { color: var(--ink); text-decoration: none; }
.archive-list h3 a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--brass); }
.archive-list p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .9rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.toc a { text-decoration: none; }

/* 404 */
.notfound { text-align: center; padding: 3.5rem 0 1rem; max-width: 640px; margin: 0 auto; }
.notfound .big { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(4rem, 14vw, 7rem); color: var(--brass); line-height: 1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; background: var(--forest-deep); color: #e7e0cd; font-size: .97rem; }
.site-footer a { color: #f3eee2; text-decoration: none; }
.site-footer a:hover { color: #d9b86a; text-decoration: underline; }
.footer-top { display: grid; gap: 2rem; padding: 2.6rem 0 2rem; border-bottom: 1px solid rgba(231, 224, 205, .25); }
@media (min-width: 560px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; gap: .7rem; align-items: center; font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: #f3eee2; }
.footer-brand svg { width: 34px; height: 40px; }
.footer-top h2 { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; color: #d9b86a; font-weight: 600; margin: 0 0 .7rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { padding: .2rem 0; }
.footer-top p { color: #cfc8b4; }
.footer-legal { padding: 1.3rem 0 1.8rem; font-size: .88rem; color: #c9c2ad; }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; margin: 0 0 .8rem; padding: 0; list-style: none; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.footer-legal p { margin: 0 0 .4rem; }

@media print {
  .sections-nav, .site-footer, .related, .dateline { display: none; }
  body { background: #fff; }
}
