/*
Theme Name: MagTimes
Theme URI: https://magtimes.net
Author: Salman Zahid
Author URI: https://magtimes.net
Description: Independent digital newsroom and growth studio. MagTimes is the daily read for operators shaping software, search, and the on-chain economy — and the desk that runs digital PR, SEO, and AI ranking to the same editorial standard. A four-color editorial system: news red, trust navy, AI teal, clean white.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magtimes
Tags: blog, news, editorial, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

/* ============================================================
   MagTimes — design tokens
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --cream: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #12141A;
  --ink-soft: #252830;
  --muted: #5C616B;
  --primary: #D01224;
  --primary-fg: #FFFFFF;
  --navy: #0E2744;
  --navy-fg: #FFFFFF;
  --teal: #067A8C;
  --teal-fg: #FFFFFF;
  --border: #E2E5EA;
  --line: #D5D9E0;
  --ring: #D01224;

  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius: 12px;

  --shadow-border: 0 0 0 1px rgba(19,21,28,.06), 0 1px 2px -1px rgba(19,21,28,.06), 0 2px 4px 0 rgba(19,21,28,.04);
  --shadow-border-hover: 0 0 0 1px rgba(19,21,28,.10), 0 12px 28px -14px rgba(19,21,28,.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 72rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; outline: 1px solid rgba(19,21,28,.08); outline-offset: -1px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.25rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: rgba(208,18,36,.22); color: var(--ink); }

button, .btn { cursor: pointer; font: inherit; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
.section-lg { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } .section-lg { padding: 120px 0; } }

.masthead-rule { height: 3px; background: var(--primary); display: block; }
.cream-band { background: var(--cream); }
.hairline { background: var(--line); display: block; height: 1px; border: 0; }

.kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 0 0 14px;
}
@media (min-width: 768px) { .kicker { font-size: 12px; letter-spacing: 0.22em; } }

.text-teal { color: var(--teal); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-ink-soft { color: var(--ink-soft); }
.bg-primary { background: var(--primary); color: var(--primary-fg); }
.bg-navy { background: var(--navy); color: var(--navy-fg); }
.bg-teal { background: var(--teal); color: var(--teal-fg); }
.bg-cream { background: var(--cream); }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--primary-fg);
  padding: 10px 16px; border-radius: 8px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 768px) { .site-header__bar { height: 68px; } }
.site-header__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.site-header__logo:hover { text-decoration: none; }
.site-header__logo-mark {
  width: 32px; height: 32px; background: var(--primary); border-radius: 4px;
  display: inline-grid; place-items: center; flex: 0 0 32px;
}
.site-header__logo-mark svg { width: 20px; height: 20px; display: block; }
.site-header__logo-copy { display: flex; flex-direction: column; line-height: 1; }
.site-header__wordmark { font-family: var(--font-display); font-size: 18.4px; line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.site-header__tagline { color: var(--muted); font-size: 9.92px; line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; }

.site-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a, .site-nav .nav-item {
  padding: 0 12px; height: 44px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.site-nav a:hover, .site-nav .nav-item:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.site-nav a.current { color: var(--primary); }

.site-header__cta { display: none; }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; } }

.menu-toggle { background: transparent; border: 0; padding: 8px; border-radius: 8px; color: var(--ink); }
.menu-toggle:hover { background: var(--cream); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.mobile-drawer { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 100; padding: 20px; overflow: auto; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer__top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.mobile-drawer nav a { padding: 14px 12px; font-size: 18px; font-weight: 500; color: var(--ink); border-radius: 10px; }
.mobile-drawer nav a:hover { background: var(--cream); text-decoration: none; }
.mobile-drawer__foot { margin-top: 24px; }

/* Mega menu */
.mega-wrap { position: relative; }
.mega {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(4px);
  width: 540px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-border-hover);
  display: none; z-index: 60;
}
.mega-wrap:hover .mega, .mega-wrap:focus-within .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega a { padding: 10px 12px; border-radius: 8px; display: block; font-size: 14px; }
.mega a:hover { background: var(--cream); text-decoration: none; }
.mega a small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 150ms;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: #b80e1f; }
.btn--teal { background: var(--teal); color: var(--teal-fg); }
.btn--teal:hover { background: #056675; }
.btn--navy { background: var(--navy); color: var(--navy-fg); }
.btn--navy:hover { background: #091b32; }
.btn--inverse { background: #fff; color: var(--ink); }
.btn--inverse:hover { background: rgba(255,255,255,.92); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--cream); }
.btn--lg { min-height: 48px; padding: 0 28px; font-size: 14px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 64px 0 80px; }
@media (min-width: 768px) { .hero { padding: 88px 0 112px; } }
.hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
  .hero__grid > div { grid-column: span 7; }
  .hero__grid > aside { grid-column: span 5; }
  .hero h1 { font-size: 72px; line-height: .98; }
}
.hero__rule { display: block; height: 4px; width: 96px; border-radius: 4px; background: var(--primary); margin: 20px 0 20px; transform-origin: left; animation: ruleGrow 700ms var(--ease-out) both; }
.hero h1 { margin: 0 0 24px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 36rem; margin: 0 0 32px; }
@media (min-width: 768px) { .hero p.lead { font-size: 20px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy);
  border-radius: var(--radius-md); overflow: hidden;
}
.stats__cell { padding: 28px 20px; color: #fff; }
.stats__cell--accent { background: var(--primary); }
.stats__value { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 36px; }
.stats__label { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.8; }

/* ============================================================
   Colour strip
   ============================================================ */
.colour-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.colour-strip__cell { padding: 20px; min-height: 81px; display: flex; flex-direction: column; justify-content: center; }
.colour-strip__cell h4 { font-size: 11px; line-height: 17px; margin: 0; text-transform: uppercase; letter-spacing: 0.18em; font-family: var(--font-sans); font-weight: 600; }
.colour-strip__cell p { font-size: 14px; line-height: 20px; margin: 4px 0 0; opacity: 0.9; }
.colour-strip__cell--primary { background: var(--primary); color: #fff; }
.colour-strip__cell--navy { background: var(--navy); color: #fff; }
.colour-strip__cell--teal { background: var(--teal); color: #fff; }
.colour-strip__cell--white { background: #fff; color: var(--ink); border-left: 1px solid var(--border); }
@media (max-width: 640px) {
  .colour-strip { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; gap: 40px; animation: marquee 42s linear infinite; white-space: nowrap; }
.marquee__item { font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.85; flex-shrink: 0; }
.marquee__sep { opacity: 0.5; }

/* ============================================================
   Service cards
   ============================================================ */
.services { padding: 80px 0; background: var(--cream); }
.services__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-border); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  display: flex; flex-direction: column; min-height: 240px;
  border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.service-card__plate {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #fff; flex-shrink: 0;
}
.service-card__plate--primary { background: var(--primary); }
.service-card__plate--teal { background: var(--teal); }
.service-card__plate--navy { background: var(--navy); }
.service-card__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.service-card h3 { font-size: 20px; margin: 0 0 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.service-card__more { font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   AI Rank Method
   ============================================================ */
.ai-method { background: var(--teal); color: #fff; padding: 80px 0; }
.ai-method h2 { color: #fff; }
.ai-method .kicker { color: rgba(255,255,255,.85); }
.ai-method__steps { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ai-method__steps { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.ai-step { padding: 22px 20px; border-radius: var(--radius-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.ai-step__n { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ai-step h4 { font-size: 16px; color: #fff; margin: 6px 0 4px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.ai-step p { font-size: 13.5px; margin: 0; opacity: 0.9; line-height: 1.5; }

/* ============================================================
   Standards / principles (navy band)
   ============================================================ */
.standards { background: var(--navy); color: #fff; padding: 80px 0; }
.standards h2 { color: #fff; }
.standards .kicker { color: rgba(255,255,255,.7); }
.principles { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.principle h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.principle p { color: rgba(255,255,255,.78); margin: 0; }

/* ============================================================
   Selected work
   ============================================================ */
.work { padding: 80px 0; }
.work__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .work__grid { grid-template-columns: 1fr 1fr; } }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); box-shadow: var(--shadow-border); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.case-card .kicker { margin: 0 0 12px; }
.case-card h3 { margin: 0 0 8px; }
.case-card p { color: var(--muted); }
.case-card__result { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--teal); letter-spacing: -0.03em; }
.case-card__result span { font-size: 18px; color: var(--muted); margin-left: 6px; font-family: var(--font-sans); font-weight: 500; }

/* ============================================================
   How we work
   ============================================================ */
.process { padding: 80px 0; background: var(--cream); }
.process__steps { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .process__steps { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: #fff; border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); }
.process-step__n { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--primary); }
.process-step h3 { font-size: 18px; margin: 8px 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.process-step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============================================================
   Team
   ============================================================ */
.team { padding: 80px 0; }
.team__intro { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .team__intro { grid-template-columns: 5fr 7fr; gap: 40px; } }
.founder-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.founder-card__avatar { width: 112px; height: 112px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-size: 36px; font-weight: 600; border: 3px solid var(--teal); margin: 0 auto 16px; }
.founder-card__role { font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.7; }
.founder-card__name { color: var(--teal); font-size: 28px; font-weight: 600; margin: 6px 0 16px; font-family: var(--font-display); }
.founder-card p { color: rgba(255,255,255,.8); font-size: 15px; margin: 0 0 20px; }
.founder-card__socials { display: flex; gap: 8px; justify-content: center; }
.founder-card__socials a { width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.founder-card__socials a:hover { background: rgba(255,255,255,.16); text-decoration: none; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.fact { background: var(--cream); border-radius: var(--radius-md); padding: 18px; }
.fact h4 { font-size: 14px; margin: 0 0 6px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.fact p { color: var(--muted); font-size: 13.5px; margin: 0; }

.team-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.author-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.author-card__avatar { width: 80px; height: 80px; border-radius: 999px; background: var(--cream); margin: 0 auto 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.author-card h4 { font-size: 16px; margin: 0 0 4px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.author-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ============================================================
   News cards
   ============================================================ */
.news-strip { padding: 80px 0; }
.news-grid { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); display: flex; flex-direction: column; box-shadow: var(--shadow-border); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.news-card__media { aspect-ratio: 16/9; background: var(--cream); display: block; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; outline: none; }
.news-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card .kicker { margin: 0 0 8px; }
.news-card h3 { font-size: 20px; margin: 0 0 10px; }
.news-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.news-card__meta { color: var(--muted); font-size: 13px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--primary); color: #fff; padding: 64px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 30rem; }
.cta-band p { margin: 12px 0 0; color: rgba(255,255,255,.85); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: #fff; padding: 64px 0 28px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; margin: 0 0 14px; color: rgba(255,255,255,.6); font-family: var(--font-sans); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.82); font-size: 14.5px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand p { color: rgba(255,255,255,.7); font-size: 14px; max-width: 22rem; margin: 16px 0 8px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(255,255,255,.6); }
.site-footer__bottom a { color: rgba(255,255,255,.7); }

/* ============================================================
   Page hero
   ============================================================ */
.page-hero { border-bottom: 1px solid var(--border); padding: 64px 0 56px; }
@media (min-width: 768px) { .page-hero { padding: 80px 0 72px; } }
.page-hero h1 { margin: 0 0 16px; max-width: 48rem; }
.page-hero p.lead { font-size: 18px; color: var(--muted); max-width: 36rem; margin: 0; }
@media (min-width: 768px) { .page-hero p.lead { font-size: 20px; } }

/* ============================================================
   Single content
   ============================================================ */
.single-content { padding: 64px 0 96px; }
.single-content .article-body { max-width: 44rem; margin: 0 auto; }
.article-body p, .article-body li { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.4rem; line-height: 0.8;
  float: left; padding: 0.12em 0.12em 0 0; color: var(--primary); font-weight: 600;
}
.article-body h2 { margin-top: 2em; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 8px 0 8px 20px; margin: 24px 0; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.article-body pre, .article-body code { font-family: var(--font-mono); font-size: 14px; }
.article-body pre { background: var(--cream); padding: 18px; border-radius: var(--radius-md); overflow: auto; }

.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.entry-meta span + span::before { content: " · "; margin: 0 4px; }

/* ============================================================
   Archive
   ============================================================ */
.archive { padding: 64px 0 96px; }
.archive__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.archive__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .archive__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .archive__grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ============================================================
   Forms
   ============================================================ */
.form { max-width: 36rem; }
.field { display: block; margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Footer of single
   ============================================================ */
.comments-area { max-width: 44rem; margin: 48px auto 0; }
.comments-area ol { list-style: none; padding: 0; }
.comments-area li.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }

/* ============================================================
   Utilities
   ============================================================ */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin: 48px 0; }

/* Animations */
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.reveal { animation: revealUp 500ms var(--ease-out) both; }
.reveal-d1 { animation-delay: 80ms; }
.reveal-d2 { animation-delay: 160ms; }
.reveal-d3 { animation-delay: 240ms; }
.reveal-d4 { animation-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .reveal, .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4, .hero__rule { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Icons */
.icon { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 16px; height: 16px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--ink); font-size: 14px; }
.pagination a:hover { background: var(--cream); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* WordPress alignment */
.alignwide { margin-left: calc(50% - 50vw + 16px); margin-right: calc(50% - 50vw + 16px); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; padding: 6px 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky { }
.gallery-caption { }

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .mobile-drawer { display: none !important; }
}

/* Keep legacy page-builder typography from overriding the newsroom system. */
body:not(.wp-admin) { font-family: var(--font-sans) !important; color: var(--ink) !important; }
body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4,
body:not(.wp-admin) h5,
body:not(.wp-admin) h6 { font-family: var(--font-display) !important; letter-spacing: -0.03em !important; }
body:not(.wp-admin) a:not(.btn) { color: inherit; }
