/* Easy Tidings Magazine. Brand: navy #1a2640, blue #4a90c4, off-white #f8f7f4.
   Type: Playfair Display (headlines), Lora (reading), DM Sans (UI). Fonts are self-hosted (OFL). */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic.woff") format("woff"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --navy: #1a2640;
  --navy-2: #24324f;
  --blue: #4a90c4;
  --blue-ink: #2f6f9f;          /* blue dark enough for small text on off-white */
  --paper: #f8f7f4;
  --paper-2: #efece5;
  --ink: #1a2640;
  --ink-soft: #4a5468;
  --rule: #d9d5cc;
  --white: #ffffff;
  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-text: "Lora", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --max: 1280px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif-text); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--navy); color: var(--paper); padding: 8px 14px; font-family: var(--sans); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow, .kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-ink); margin: 0 0 8px; text-decoration: none; display: inline-block;
}
.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  background: var(--navy); color: var(--paper); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--navy);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-light:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { font-family: var(--serif-display); font-weight: 700; font-size: 24px; color: var(--navy); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark-light { color: var(--paper); }
.main-nav { margin-left: auto; }
.main-nav ul, .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav a, .link-quiet, a.nav-logo { font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.main-nav a:hover, .link-quiet:hover { color: var(--blue-ink); }
.main-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-menu nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
.mobile-menu li a { display: block; padding: 12px 0; font-family: var(--sans); font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.mobile-menu li a.btn { margin-top: 16px; border: 0; color: var(--paper); }
@media (max-width: 1020px) {
  .main-nav, .header-actions { display: none; }
  .mobile-menu { display: block; }
}

/* ---------- masthead + topic bar ---------- */
.masthead { padding: 48px 0 28px; text-align: center; border-bottom: 1px solid var(--rule); }
.masthead-by { display: block; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: clamp(13px, 1.5vw, 18px); line-height: 1.2; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-ink); margin-top: clamp(20px, 2.6vw, 38px); }
.masthead-title {
  font-family: var(--serif-display); font-weight: 900; font-style: italic;
  font-size: clamp(64px, 14vw, 176px); line-height: .9; letter-spacing: -.035em; margin: 0; color: var(--navy);
}
.masthead-title-topic { font-size: clamp(44px, 8vw, 104px); font-style: normal; letter-spacing: -.03em; }
.masthead { padding-top: 56px; }
.masthead-tagline { font-family: var(--serif-text); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 680px; margin: clamp(22px, 3.2vw, 44px) auto 0; line-height: 1.5; }
.masthead-topic { text-align: left; padding-top: 32px; }
.masthead-topic .masthead-tagline { margin-left: 0; }

.topic-bar { border-bottom: 2px solid var(--navy); background: var(--paper); }
.topic-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.topic-bar ul::-webkit-scrollbar { display: none; }
.topic-bar a { display: block; padding: 14px 0; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--ink); }
.topic-bar a:hover { color: var(--blue-ink); }
.topic-bar a[aria-current="page"] { color: var(--blue-ink); box-shadow: inset 0 -3px 0 var(--blue); }
@media (max-width: 900px) { .topic-bar ul { justify-content: flex-start; } }

/* ---------- story cards ---------- */
.story { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.story-media { display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 2; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story:hover .story-media img { transform: scale(1.035); }
.story-title { font-family: var(--serif-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 8px; font-size: 24px; }
.story-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.story-title a:hover { background-size: 100% 2px; }
.story-dek { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-meta { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }

/* lead block: one big story + four */
.lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.story-lead .story-media { aspect-ratio: 4 / 3; }
.story-lead .story-title { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.025em; }
.story-lead .story-dek { font-size: 19px; -webkit-line-clamp: 3; }
.lead-side { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; align-content: start; }
.story-side .story-title { font-size: 20px; }
.story-side .story-dek { font-size: 15px; }
.lead-wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.lead-wide .story-media { aspect-ratio: 3 / 2; }
@media (max-width: 960px) {
  .lead-grid, .lead-wide { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .lead-side { grid-template-columns: 1fr; }
  .story-side { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
  .story-side .story-media { aspect-ratio: 1; }
  .story-side .story-dek { display: none; }
  .story-side .story-title { font-size: 19px; }
}

/* sections */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--navy); padding-top: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.more { font-family: var(--sans); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--blue-ink); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.grid-after-lead { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.story-mini .story-title { font-size: 19px; }
.story-mini .story-dek { display: none; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .grid-4 > * { scroll-snap-align: start; }
}

/* CTA band */
.cta-band { background: var(--navy); color: var(--paper); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-family: var(--serif-display); font-weight: 700; font-style: italic; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { margin: 0; max-width: 620px; color: #d8dce5; }
.cta-band .eyebrow { color: #9cc7e6; margin-bottom: 10px; }
@media (max-width: 760px) { .cta-band-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- article ---------- */
.article { padding-bottom: 24px; }
.article-head { padding-top: 40px; padding-bottom: 32px; text-align: center; }
.breadcrumb { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-title { font-family: var(--serif-display); font-weight: 900; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; }
.article-dek { font-family: var(--serif-text); font-style: italic; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: var(--ink-soft); margin: 0 auto 20px; max-width: 720px; }
.article-byline { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin: 0; }
.article-byline span { color: var(--ink); font-weight: 700; }
.article-hero { margin: 0 auto 48px; }
.article-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .article-hero img { aspect-ratio: 16 / 9; } }

.article-body { font-size: 19px; line-height: 1.7; }
.article-body h2 { font-family: var(--serif-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.015em; margin: 48px 0 16px; scroll-margin-top: 90px; }
.article-body h3 { font-family: var(--serif-display); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 28px 0 8px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.article-body ol { counter-reset: n; }
.article-body ol li { counter-increment: n; position: relative; padding-left: 40px; margin-bottom: 12px; }
.article-body ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; font-family: var(--sans); font-weight: 700; font-size: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--paper); display: grid; place-items: center; }
.article-body a { color: var(--blue-ink); text-underline-offset: 3px; }
.article-body blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 4px solid var(--blue); font-family: var(--serif-display); font-style: italic; font-size: 26px; line-height: 1.35; }
.inline-figure { margin: 32px 0; }
.inline-figure figcaption { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

.quick-answer { background: var(--white); border-top: 4px solid var(--navy); padding: 24px 28px; margin: 0 0 36px; box-shadow: 0 1px 0 var(--rule); }
.quick-answer p:last-child { margin: 0; font-size: 20px; line-height: 1.6; }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0 8px; margin: 0 0 8px; }
.toc ol { margin-bottom: 12px; }
.toc ol li { font-family: var(--sans); font-size: 16px; margin-bottom: 8px; }
.toc ol li::before { background: transparent; color: var(--blue-ink); border: 1.5px solid var(--blue); font-size: 12px; width: 24px; height: 24px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue-ink); text-decoration: underline; }

.numbers { background: var(--paper-2); padding: 24px 28px 8px; margin: 40px 0; }
.numbers h2 { margin-top: 0; font-size: 22px; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.numbers li { font-family: var(--serif-display); font-size: 21px; line-height: 1.45; }
.numbers li a { font-family: var(--sans); font-size: 14px; }

.cta-card { background: var(--navy); color: var(--paper); padding: 32px; margin: 48px 0; border-radius: 4px; }
.cta-card h2 { color: var(--paper); margin: 0 0 12px; font-style: italic; }
.cta-card .eyebrow { color: #9cc7e6; }
.cta-card p { color: #dfe3eb; margin: 0; }
.cta-card a { display: inline-flex; margin-top: 18px; background: var(--paper); color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.cta-card a:hover { background: var(--blue); color: var(--white); }

.faq { margin: 48px 0; }
.faq-item { border-top: 1px solid var(--rule); padding: 4px 0 4px; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin-top: 20px; }
.crisis-note { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-soft); background: var(--paper-2); border-left: 4px solid var(--navy); padding: 16px 20px; margin: 40px 0; }
.crisis-note a { font-weight: 700; color: var(--navy); }
.sources { margin: 40px 0 0; }
.sources h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.sources ul li { font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.sources ul li::before { background: var(--rule); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 2px solid var(--navy); padding-top: 18px; margin-top: 48px; }
.share .eyebrow { margin: 0 8px 0 0; }
.share a, .share button { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; border: 1.5px solid var(--navy); border-radius: 999px; padding: 7px 14px; background: transparent; cursor: pointer; line-height: 1.2; }
.share a:hover, .share button:hover { background: var(--navy); color: var(--paper); }
.related { padding-top: 64px; }

/* ---------- footer ---------- */
.site-footer { background: #111a2d; color: #c9cfdb; font-family: var(--sans); font-size: 15px; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { line-height: 1.6; max-width: 360px; }
.site-footer h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9cc7e6; margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e7eaf0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid #2a3756; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.notfound { text-align: left; }
.notfound .grid-3 { margin-top: 40px; }
.empty { padding: 64px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .topic-bar, .cta-band, .share, .related, .site-footer, .toc { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
