/* ============================================================
   MyNestup — editorial design system
   Ink & paper editorial layout with the brand's acid-green
   "nest" accent. Fraunces (display) + Inter (text), self-hosted.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:italic; font-weight:400; font-display:swap; src:url('/assets/fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:900; font-display:swap; src:url('/assets/fonts/fraunces-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Bebas Neue'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Source Serif 4'; font-style:italic; font-weight:400; font-display:swap; src:url('/assets/fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:600; font-display:swap; src:url('/assets/fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/source-serif-4-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --ink:        #12160B;
  --ink-soft:   #2A2F22;
  --paper:      #FBFBF6;
  --paper-deep: #F2F3E9;
  --nest:       #C6F423;   /* brand acid green */
  --nest-soft:  #E9FBAF;
  --nest-deep:  #5C7A00;   /* accessible green for text on paper */
  --moss:       #161B0D;   /* dark band background */
  --stone:      #6A6F5E;
  --line:       #E2E5D4;
  --display:    'Fraunces', Georgia, serif;
  --text:       'Inter', -apple-system, 'Segoe UI', sans-serif;
  --wrap:       1200px;
  --r:          3px;
  --shadow:     0 10px 30px rgba(18,22,11,.10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 3px solid var(--nest-deep); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--nest); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* the brand topline */
.topline { height: 5px; background: linear-gradient(90deg, var(--nest) 0 68%, var(--ink) 68% 100%); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-row { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand img { width: 178px; height: auto; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-more-btn {
  display: inline-block; padding: 8px 11px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .01em; text-decoration: none; color: var(--ink-soft);
  background: none; border: 0; font-family: var(--text); cursor: pointer;
  border-radius: var(--r); position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 3px;
  background: var(--nest); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.nav-more { position: relative; }
.nav-more .caret { margin-left: 4px; font-size: 10px; }
.nav-drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px;
  display: none; z-index: 60;
}
.nav-more.open .nav-drop { display: block; }
.nav-drop a { display: block; padding: 9px 12px; }
.nav-drop a:hover { background: var(--nest-soft); }
.nav-drop a::after { display: none; }

.search-form { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form input { border: 0; padding: 8px 4px 8px 16px; width: 168px; font: inherit; font-size: 13.5px; background: transparent; }
.search-form input:focus { outline: none; }
.search-form button { border: 0; background: none; padding: 8px 12px; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.search-form:focus-within { border-color: var(--nest-deep); box-shadow: 0 0 0 3px var(--nest-soft); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 14px 22px 22px; }
.mobile-nav ul { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; gap: 18px; }
.mobile-nav a { display: block; padding: 9px 0; text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.mobile-search input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; }

/* ---------- Trending ticker ---------- */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: var(--paper); overflow: hidden; }
.ticker-label {
  flex: none; background: var(--nest); color: var(--ink);
  font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  display: grid; place-items: center; padding: 10px 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 28px;
}
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-inner { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; padding-left: 22px; animation: tick 60s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-inner a { color: var(--paper); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.ticker-inner a:hover { color: var(--nest); }
.tick-sep { color: var(--nest); font-size: 8px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr .9fr; gap: 44px; padding-top: 40px; padding-bottom: 26px; }
.hero-media { display: block; position: relative; aspect-ratio: 16/9.4; background: var(--paper-deep); border-radius: 18px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-lead:hover .hero-media img { transform: scale(1.025); }
.hero-media.noimg::before { content: "✳"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; color: var(--line); }
.hero-copy { padding-top: 20px; }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -.015em; margin: 14px 0 12px; }
.hero-title a { text-decoration: none; }
.hero-title a:hover { background: linear-gradient(transparent 72%, var(--nest) 72%); }
.hero-excerpt { color: var(--ink-soft); font-size: 17px; max-width: 62ch; margin: 0 0 10px; }

.hero-side { border-left: 1px solid var(--line); padding-left: 34px; }
.side-heading {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin: 4px 0 6px; padding-bottom: 10px; border-bottom: 3px solid var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.side-heading::before { content: ""; width: 10px; height: 10px; background: var(--nest); border-radius: 2px; }
.side-item { display: grid; grid-template-columns: 1fr 84px; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: start; }
.side-item:last-child { border-bottom: 0; }
.side-item h3 { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1.28; margin: 0 0 5px; }
.side-item h3 a { text-decoration: none; }
.side-item h3 a:hover { color: var(--nest-deep); }
.side-thumb { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--paper-deep); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 34px 22px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 26px; }
.section-title { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 14px; height: 14px; background: var(--nest); border-radius: 3px; flex: none; }
.section-title a { text-decoration: none; }
.section-title a:hover { color: var(--nest-deep); }
.section-title em { font-style: normal; font-family: var(--text); font-weight: 500; font-size: 14px; color: var(--stone); }
.section-more { font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--nest-deep); white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 30px 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-thumb { position: relative; display: block; aspect-ratio: 16/9.6; border-radius: 16px; overflow: hidden; background: var(--paper-deep); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.noimg img { display: none; }
.card-thumb.noimg::before { content: "✳"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: var(--line); }
.chip {
  position: absolute; left: 10px; bottom: 10px; background: var(--nest); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; text-decoration: none; line-height: 1;
}
.chip--lg { position: static; display: inline-block; font-size: 12px; }
.card-body { padding-top: 13px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.26; margin: 0 0 8px; letter-spacing: -.005em; }
.card-title a { text-decoration: none; }
.card-title a:hover { background: linear-gradient(transparent 78%, var(--nest) 78%); }
.card-excerpt { font-size: 14px; color: var(--stone); margin: 0 0 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12.5px; color: var(--stone); margin: 0; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.card-meta a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.card-meta a:hover { color: var(--nest-deep); }
.dot { color: var(--nest-deep); }

/* Category rows */
.cat-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; }
.card--wide .card-thumb { aspect-ratio: 16/9; }
.card--wide .card-title { font-size: 24px; }
.cat-rest { display: flex; flex-direction: column; }
.card--mini { display: grid; grid-template-columns: 118px 1fr; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.card--mini:first-child { padding-top: 0; }
.card--mini:last-child { border-bottom: 0; }
.card--mini .card-thumb { aspect-ratio: 4/3; }
.card--mini .card-body { padding-top: 0; }
.card--mini .card-title { font-size: 15.5px; }
.card--mini .chip { display: none; }

/* ---------- Newsletter band ---------- */
.newsletter-band { background: var(--moss); color: var(--paper); margin-top: 46px; position: relative; overflow: hidden; }
.newsletter-band::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 300px; height: 300px;
  background: radial-gradient(closest-side, rgba(198,244,35,.22), transparent 70%);
}
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.nl-inner h2 { font-family: var(--display); font-weight: 900; font-size: 30px; margin: 0 0 6px; }
.nl-inner h2::after { content: "."; color: var(--nest); }
.nl-inner p { margin: 0; color: #C8CDBA; max-width: 46ch; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input { padding: 13px 18px; border-radius: 999px; border: 1px solid #3A4227; background: #0E1208; color: var(--paper); font: inherit; min-width: 260px; }
.nl-form button { padding: 13px 26px; border-radius: 999px; border: 0; background: var(--nest); color: var(--ink); font-weight: 800; font-size: 14.5px; cursor: pointer; }
.nl-form button:hover { background: #D5FF3D; }

/* ---------- Article ---------- */
.article-head { max-width: 860px; padding-top: 38px; }
.crumbs { font-size: 12.5px; color: var(--stone); display: flex; gap: 8px; margin-bottom: 16px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--nest-deep); }
.crumbs a:hover { text-decoration: underline; }
.article-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.07; letter-spacing: -.015em; margin: 0 0 16px; }
.article-standfirst { font-size: 18.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 20px; font-family: var(--display); font-weight: 400; }
.article-byline { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--stone); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.byline-author { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); text-decoration: none; }
.byline-author:hover { color: var(--nest-deep); }
.byline-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--nest);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px;
}
.byline-avatar--lg { width: 56px; height: 56px; font-size: 24px; flex: none; }
.byline-sep { color: var(--nest-deep); }
/* hero now lives inside the article column so the sidebar runs beside it */
.article-hero { margin: 0 0 30px; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; display: block; box-shadow: 0 14px 34px rgba(18,22,11,.12); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; padding-top: 34px; padding-bottom: 30px; }

.article-body { max-width: 700px; font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-size: 19.5px; line-height: 1.74; color: #1a1d12; letter-spacing: .001em; }
.article-body p { margin: 0 0 1.35em; }
.article-body > p:first-of-type::first-letter,
.article-hero + p::first-letter, .article-hero ~ p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 900; font-size: 3.15em; line-height: .8;
  float: left; padding: 8px 12px 0 0; color: var(--ink);
}
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--display); font-weight: 700; line-height: 1.22; margin: 1.7em 0 .55em; letter-spacing: -.008em; }
.article-body h2 { font-size: 26px; padding-left: 0; border-left: 0; }
.article-body h2::after { content:""; display:block; width:44px; height:4px; background: var(--nest); margin-top: 8px; border-radius: 2px; }
.article-body h3 { font-size: 22px; }
.article-body h4 { font-size: 18px; }
.article-body a { color: var(--nest-deep); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.article-body a:hover { background: var(--nest-soft); }
.article-body img { border-radius: 14px; margin: 1.6em auto; display: block; }
.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 5px solid var(--nest);
  font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink-soft);
}
.article-body ul, .article-body ol { padding-left: 26px; }
.article-body li { margin: .45em 0; }
.article-body li::marker { color: var(--nest-deep); font-weight: 700; }
.article-body figure { margin: 1.4em 0; }
.article-body figcaption { font-size: 13px; color: var(--stone); margin-top: 8px; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.4em 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--paper-deep); font-weight: 700; }
.article-body pre { background: var(--moss); color: #E4EAD2; padding: 18px; border-radius: 6px; overflow-x: auto; font-size: 14px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 6px; }
.article-tags a {
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.article-tags a:hover { border-color: var(--nest-deep); color: var(--nest-deep); background: var(--nest-soft); }

.author-box {
  display: flex; gap: 18px; align-items: flex-start; background: var(--paper-deep);
  border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin-top: 34px;
}
.ab-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--nest-deep); margin: 0 0 3px; }
.ab-name { font-family: var(--display); font-size: 20px; margin: 0 0 6px; }
.ab-name a { text-decoration: none; }
.ab-name a:hover { color: var(--nest-deep); }
.ab-bio { font-size: 14px; color: var(--ink-soft); margin: 0; }

.article-side .side-block { border-top: 3px solid var(--ink); padding-top: 12px; margin-top: 26px; }
.article-side .ad-slot.is-sticky { position: sticky; top: 94px; }

/* ---------- Ad slots ---------- */
.ad-slot { margin: 26px auto; text-align: center; }
.ad-slot .ad-label { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.ad-slot--header, .ad-slot--footer, .ad-slot--home_mid { max-width: var(--wrap); }
.ad-slot--in_content { margin: 30px 0; }

/* ---------- Archive ---------- */
.archive-head { padding-top: 42px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); margin-bottom: 8px; max-width: var(--wrap); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--nest-deep); margin: 0 0 8px; }
.archive-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; letter-spacing: -.014em; }
.archive-title::after { content: "."; color: var(--nest); }
.archive-desc { color: var(--stone); max-width: 70ch; margin: 0 0 16px; font-size: 16.5px; }
.archive-count { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 36px 0 20px; flex-wrap: wrap; }
.pagination a, .pg-cur {
  min-width: 40px; padding: 9px 13px; text-align: center; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 14px;
}
.pagination a:hover { border-color: var(--ink); }
.pg-cur { background: var(--ink); color: var(--nest); border-color: var(--ink); }
.pg-gap { color: var(--stone); }

/* ---------- Static page ---------- */
.page-article { max-width: 800px; padding-top: 40px; padding-bottom: 40px; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.6vw, 40px); border-bottom: 3px solid var(--ink); padding-bottom: 16px; letter-spacing: -.012em; }
.page-body { font-size: 16.5px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 70px; padding-bottom: 30px; max-width: 640px; }
.nf-code { font-family: var(--display); font-weight: 900; font-size: 110px; line-height: 1; margin: 0; color: var(--ink); text-shadow: 6px 6px 0 var(--nest); }
.notfound h1 { font-family: var(--display); font-size: 30px; margin: 18px 0 8px; }
.notfound p { color: var(--stone); }
.nf-search { display: flex; gap: 10px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.nf-search input { padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; min-width: 260px; }
.nf-search button, .btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--nest); font-weight: 800; font-size: 14px; text-decoration: none; font-family: var(--text);
}
.nf-search button:hover, .btn:hover { background: #000; }
.empty-state { text-align: center; padding: 60px 0; color: var(--stone); }
.empty-state .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss); color: #C9CEBB; margin-top: 60px; border-top: 5px solid var(--nest); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-top: 54px; padding-bottom: 40px; }
.footer-logo { filter: invert(1) brightness(1.6); width: 200px; }
.footer-tag { font-family: var(--display); font-style: italic; color: #EDF2DC; margin: 16px 0 18px; font-size: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #9AA285; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #33402022; border: 1px solid #3A4227; border-radius: 50%; transition: all .15s; }
.footer-social a:hover { color: var(--ink); background: var(--nest); border-color: var(--nest); }
.footer-col h3 { font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--nest); margin: 4px 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 9px 0; }
.footer-col a { color: #C9CEBB; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--nest); }
.footer-bottom { border-top: 1px solid #2A331A; padding-top: 20px; padding-bottom: 26px; font-size: 13px; color: #8B937A; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; align-items: start; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .main-nav, .search-form { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .header-row { height: 64px; }
  .cat-row { grid-template-columns: 1fr; }
  .article-side { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ticker-label { padding: 10px 12px 10px 14px; }
  .side-item { grid-template-columns: 1fr 74px; }
  .nl-form input { min-width: 0; flex: 1; }
  .article-body { font-size: 16.5px; }
}
@media print {
  .site-header, .ticker, .site-footer, .ad-slot, .newsletter-band, .article-side { display: none !important; }
}


/* ==========================================================
   v1.2 — Bebas Neue display type (header + section headings)
   ========================================================== */
:root { --bebas:'Bebas Neue','Arial Narrow',sans-serif; }

.main-nav a, .mobile-nav > ul > li > a {
  font-family:var(--bebas);
  font-size:19px;
  letter-spacing:.075em;
  text-transform:uppercase;
  font-weight:400;
}
.main-nav a { padding-bottom:2px; }
.ticker-label {
  font-family:var(--bebas);
  font-size:17px;
  letter-spacing:.14em;
}
.section-title, .side-heading, .footer-col h3, .newsletter-band h2, .archive-title, .ab-eyebrow {
  font-family:var(--bebas);
  text-transform:uppercase;
  font-weight:400;
}
.section-title { font-size:30px; letter-spacing:.05em; }
.side-heading { font-size:20px; letter-spacing:.08em; }
.footer-col h3 { font-size:18px; letter-spacing:.12em; }
.newsletter-band h2 { font-size:36px; letter-spacing:.04em; }
.archive-title { font-size:clamp(38px,6vw,58px); letter-spacing:.03em; }
.ab-eyebrow { font-size:15px; letter-spacing:.14em; }
.eyebrow, .card-cat, .chip, .hero-badge {
  font-family:var(--bebas);
  letter-spacing:.12em;
  font-weight:400;
}
.card-cat { font-size:14px; }
.hero-badge { font-size:15px; }
.mnav-label {
  font-family:var(--bebas);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--stone);
  font-size:15px;
  margin:14px 0 2px;
  padding:10px 0 4px;
  border-top:1px solid var(--line);
  list-style:none;
}

/* ---- Verified author badge ---- */
.vbadge { display:inline-flex; align-items:center; gap:5px; vertical-align:middle;
  background:var(--ink); color:var(--nest); border-radius:999px; padding:3px 10px 3px 5px;
  font-family:var(--bebas); font-size:13px; letter-spacing:.1em; text-transform:uppercase; line-height:1;
  margin-left:8px; white-space:nowrap; }
.vbadge img { width:16px; height:16px; border-radius:50%; background:var(--nest); }
.vbadge svg { width:14px; height:14px; }
.vbadge b { font-weight:400; padding-top:1px; }
.vbadge--lg { font-size:15px; padding:5px 13px 5px 6px; gap:7px; }
.vbadge--lg img { width:20px; height:20px; }
.vbadge--lg svg { width:17px; height:17px; }

/* ---- Author card (author archive page) ---- */
.author-card { display:flex; gap:26px; align-items:flex-start; background:#fff;
  border:1.5px solid var(--ink); border-radius:16px; padding:28px 30px; margin:6px 0 10px;
  box-shadow:6px 6px 0 var(--nest); }
.author-card .byline-avatar--xl { width:96px; height:96px; font-size:38px; flex:none; }
.ac-name { font-family:var(--serif,'Fraunces',serif); font-size:clamp(26px,4vw,38px); margin:2px 0 4px; display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.ac-role { font-family:var(--bebas); text-transform:uppercase; letter-spacing:.13em; color:var(--nest-deep); font-size:15px; margin:0 0 8px; }
.ac-bio { color:#3c4032; margin:0 0 14px; max-width:640px; line-height:1.65; }
.ac-meta { color:var(--stone); font-size:14px; margin:0 0 2px; }
.ac-socials { display:flex; gap:8px; flex-wrap:wrap; }
.ac-socials a { display:inline-flex; align-items:center; gap:7px; border:1.5px solid var(--ink);
  border-radius:999px; padding:7px 14px; text-decoration:none; color:var(--ink);
  font-family:var(--bebas); font-size:14px; letter-spacing:.09em; text-transform:uppercase; line-height:1;
  transition:background .15s,color .15s; }
.ac-socials a:hover { background:var(--ink); color:var(--nest); }
.ac-socials svg { width:15px; height:15px; }
.byline-avatar.has-img, .byline-avatar--xl.has-img { overflow:hidden; padding:0; }
.byline-avatar.has-img img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
@media (max-width:620px){ .author-card { flex-direction:column; gap:14px; padding:22px; } }

/* ---- Contact form ---- */
.contact-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:44px; align-items:start; }
.contact-form { background:#fff; border:1.5px solid var(--ink); border-radius:16px; padding:28px 30px; box-shadow:6px 6px 0 var(--nest); }
.contact-form label { display:block; font-weight:600; font-size:14px; margin:0 0 16px; }
.contact-form .cf-input { width:100%; margin-top:7px; padding:12px 14px; border:1.5px solid var(--line);
  border-radius:10px; font:inherit; background:var(--paper); }
.contact-form .cf-input:focus { border-color:var(--nest-deep); outline:none; box-shadow:0 0 0 3px #E9FBAF; }
.contact-form textarea.cf-input { resize:vertical; min-height:150px; }
.cf-captcha { display:flex; align-items:center; gap:12px; background:var(--paper); border:1.5px dashed var(--nest-deep);
  border-radius:10px; padding:12px 16px; margin:0 0 18px; }
.cf-captcha b { font-family:var(--bebas); font-size:22px; letter-spacing:.08em; }
.cf-captcha input { width:90px; padding:10px 12px; border:1.5px solid var(--line); border-radius:8px; font:inherit; text-align:center; }
.cf-note { color:var(--stone); font-size:12.5px; margin-top:14px; }
.hp-field { position:absolute !important; left:-6000px !important; opacity:0; height:0; overflow:hidden; }
.notice-band { padding:16px 20px; border-radius:12px; margin:0 0 22px; font-weight:600; }
.notice-band.ok { background:#EDFBC9; border:1.5px solid #A9D14C; color:#33430A; }
.notice-band.err { background:#FBE9E5; border:1.5px solid #EFB4A8; color:#7C2213; }
@media (max-width:860px){ .contact-grid { grid-template-columns:1fr; gap:26px; } }
.btn-solid { display:inline-block; background:var(--ink); color:var(--nest); border:1.5px solid var(--ink);
  border-radius:999px; padding:13px 26px; font-family:var(--bebas); font-size:17px; letter-spacing:.09em;
  text-transform:uppercase; cursor:pointer; transition:background .15s; }
.btn-solid:hover { background:#000; }
.contact-aside h2 { font-size:20px; }


/* ==========================================================
   v1.3 — Article reading experience (NYT-inspired) & polish
   ========================================================== */
.article-standfirst {
  font-family:'Source Serif 4', Georgia, serif;
  font-style:italic;
  font-size:21px;
  line-height:1.55;
  color:#494e3d;
  max-width:700px;
}
.article-title { letter-spacing:-.022em; }
.article-byline { font-size:14px; }
.article-body strong { font-weight:600; }
.article-body blockquote {
  font-family:'Source Serif 4', Georgia, serif;
  font-style:italic;
  font-size:22px;
  line-height:1.55;
}
.article-body li { margin:0 0 .6em; }
.article-body figcaption { font-family:var(--sans,'Inter',sans-serif); font-size:13.5px; color:var(--stone); text-align:center; margin-top:-6px; }

/* Author box — refined, with corner verification mark */
.author-box { position:relative; border-radius:16px; }
.author-box.is-verified { border-color:var(--ink); }
.ab-tick { width:19px; height:19px; margin-left:7px; vertical-align:-3px; }
.ab-vmark {
  position:absolute; top:-1px; right:-1px;
  display:flex; align-items:center; gap:8px;
  background:var(--ink); color:var(--nest);
  border-radius:0 16px 0 16px;
  padding:8px 14px 9px 11px;
  font-family:var(--bebas);
  font-size:12.5px; letter-spacing:.1em; line-height:1.15;
  text-transform:uppercase; text-align:left;
}
.ab-vmark img { width:22px; height:22px; border-radius:50%; background:var(--nest); }
@media (max-width:620px) {
  .ab-vmark { position:static; display:inline-flex; border-radius:999px; margin-bottom:12px; }
  .author-box { display:block; }
  .author-box .byline-avatar--lg { margin-bottom:12px; }
}

/* ---- Contact form v2: airy, line-by-line, rounded, with counters ---- */
.contact-wrap { max-width:660px; margin:0 auto; }
.contact-form { box-shadow:none; border:1px solid var(--line); border-radius:22px; padding:34px 36px; }
.contact-form .cf-row { margin:0 0 22px; }
.contact-form label { font-weight:700; font-size:15px; margin:0; display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.cf-hint { font-weight:400; font-size:12.5px; color:var(--stone); white-space:nowrap; }
.cf-hint b { color:var(--nest-deep); font-weight:700; }
.cf-hint.over b { color:#C23B22; }
.contact-form .cf-input { margin-top:9px; padding:14px 20px; border-radius:16px; font-size:16px; border-width:1.5px; }
.contact-form textarea.cf-input { border-radius:18px; min-height:170px; }
.cf-captcha { border-radius:16px; padding:14px 20px; margin:0 0 24px; }
.cf-captcha input { border-radius:12px; }
.contact-form .btn-solid { width:100%; text-align:center; padding:16px; font-size:19px; }
.contact-about { max-width:660px; margin:38px auto 0; padding-top:30px; border-top:1px solid var(--line); }
@media (max-width:620px){ .contact-form { padding:24px 20px; } }
