:root {
  --ink: #20201d;
  --muted: #6e6c65;
  --paper: #f3f0e8;
  --paper-deep: #e6e2d8;
  --white: #fffdf7;
  --coral: #ef5b4d;
  --lime: #d6f54a;
  --line: rgba(32, 32, 29, .18);
  --shadow: 0 16px 40px rgba(32, 32, 29, .11);
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; opacity: .18; pointer-events: none; background-image: radial-gradient(rgba(32, 32, 29, .14) .6px, transparent .6px); background-size: 5px 5px; mix-blend-mode: multiply; z-index: 5; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.page-shell { max-width: 1440px; margin: 0 auto; padding: 0 4.5vw; position: relative; z-index: 6; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-size: 1.15rem; letter-spacing: -.04em; line-height: .85; }
.brand strong, .brand em { display: block; font-style: normal; }
.brand em { color: var(--coral); font-weight: 400; }
.brand-mark { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-family: var(--display); font-size: .85rem; font-weight: 700; letter-spacing: -.15em; }
.main-nav { display: flex; gap: clamp(1rem, 3vw, 3.25rem); margin-left: auto; }
.main-nav a, .site-footer a { text-decoration: none; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.main-nav a { color: var(--muted); }
.main-nav a:hover, .site-footer a:hover { color: var(--coral); }
.header-meta { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .72rem; letter-spacing: .05em; white-space: nowrap; }
.live-dot, .status-dot { width: .5rem; height: .5rem; display: inline-block; border-radius: 100%; background: var(--coral); box-shadow: 0 0 0 4px rgba(239, 91, 77, .15); }

.intro-band { padding: clamp(2rem, 5vw, 5rem) 0 clamp(3rem, 7vw, 7rem); border-bottom: 1px solid var(--line); }
.issue-label { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 10vw; align-items: end; margin-top: 4rem; }
.eyebrow { margin: 0 0 1.1rem; color: var(--coral); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.07em; line-height: .92; }
h1 { max-width: 800px; margin-bottom: 0; font-size: clamp(4rem, 10vw, 9.4rem); font-weight: 600; }
h1 span, h2 span { color: var(--coral); }
.intro-copy { max-width: 360px; margin-bottom: .2rem; }
.intro-copy p:first-child { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.35; }
.small-note, .contact-note { color: var(--muted); font-size: .76rem; }

.news-section { padding: clamp(3rem, 7vw, 7rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
h2 { margin-bottom: 0; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 600; }
.refresh-panel { display: flex; align-items: center; gap: 1rem; padding-bottom: .4rem; }
.last-updated { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .75rem; }
.refresh-button { border: 1px solid var(--ink); background: transparent; padding: .7rem 1rem; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.refresh-button:hover { background: var(--ink); color: var(--lime); }
.refresh-button:active { transform: translateY(2px); }
.refresh-button.is-loading span { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.category-tabs { display: flex; flex-wrap: wrap; gap: .55rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.category-tab { border: 0; background: transparent; color: var(--muted); padding: .45rem .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.category-tab:hover, .category-tab.is-active { background: var(--ink); color: var(--lime); }
.feed-status { min-height: 1.8rem; color: var(--muted); padding: .9rem 0 0; font-size: .78rem; }
.feed-status.is-error { color: var(--coral); }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 3rem; margin-top: 1.8rem; }
.lead-story { min-width: 0; background: var(--white); box-shadow: var(--shadow); }
.lead-image { min-height: clamp(230px, 34vw, 470px); aspect-ratio: 16 / 9; background: var(--ink) center/cover no-repeat; background-image: linear-gradient(90deg, rgba(32,32,29,.08), rgba(32,32,29,.02)), url('/news-desk.jpg'); }
.lead-content { padding: clamp(1.2rem, 2.6vw, 2.5rem); }
.story-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--coral); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead-content h3 { margin: .9rem 0 1rem; font-size: clamp(2rem, 4vw, 4rem); }
.story-description { max-width: 720px; color: var(--muted); line-height: 1.55; }
.story-link { display: inline-flex; gap: .6rem; align-items: center; margin-top: .8rem; color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; border-bottom: 2px solid var(--lime); }
.story-link:hover { border-color: var(--coral); }
.latest-rail { border-left: 1px solid var(--line); padding-left: 1.8rem; }
.rail-heading { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: .65rem; }
.rail-number { color: var(--coral); font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.rail-heading h3 { margin-bottom: 0; font-size: 1.35rem; letter-spacing: -.04em; }
.latest-list { display: flex; flex-direction: column; }
.latest-item { padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.latest-item:hover .latest-title { color: var(--coral); }
.latest-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--coral); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.latest-title { margin: .4rem 0 0; font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.08; letter-spacing: -.04em; transition: color .2s; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin-top: 3rem; border: 1px solid var(--line); }
.story-card { min-height: 230px; padding: 1.5rem; background: var(--paper); display: flex; flex-direction: column; }
.story-card:hover { background: var(--white); }
.story-card-image { width: 100%; aspect-ratio: 16 / 9; margin: -1.5rem -1.5rem 1.2rem; width: calc(100% + 3rem); background: var(--paper-deep) center/cover no-repeat; }
.story-card h3 { margin: .8rem 0 1rem; font-size: 1.55rem; line-height: 1; }
.story-card .story-description { margin-bottom: auto; font-size: .84rem; }
.story-card .story-link { align-self: flex-start; }
.empty-state { grid-column: 1 / -1; padding: 2rem; color: var(--muted); }

.about-section { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: clamp(1.5rem, 7vw, 8rem); border-top: 1px solid var(--line); padding: clamp(3rem, 7vw, 7rem) 0; }
.about-index { color: var(--coral); font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .1em; line-height: 1.1; }
.about-index span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.about-content { max-width: 980px; }
.about-lede { max-width: 680px; margin: 2rem 0 3rem; font-size: clamp(1.1rem, 2vw, 1.75rem); line-height: 1.25; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.about-facts div { display: flex; flex-direction: column; }
.about-facts strong { color: var(--coral); font-family: var(--display); font-size: .8rem; }
.about-facts span { margin-top: .8rem; font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.04em; }
.about-facts p { margin: .6rem 0 0; color: var(--muted); font-size: .83rem; }

.contact-section { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(320px, 1fr); gap: clamp(2rem, 10vw, 10rem); padding: clamp(3rem, 7vw, 7rem) 0; border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); margin: 0 -4.5vw; padding-left: 4.5vw; padding-right: 4.5vw; }
.contact-copy h2 span { color: var(--lime); }
.contact-copy > p:not(.eyebrow):not(.contact-note) { max-width: 380px; margin-top: 2rem; color: #c5c2b8; font-size: 1.05rem; }
.contact-note { margin-top: 2rem; color: #85827a; }
.contact-form { max-width: 600px; justify-self: end; width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; align-content: start; }
.contact-form label { margin-top: 1.1rem; color: #a9a69c; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea { grid-column: span 1; width: 100%; border: 0; border-bottom: 1px solid #615f58; border-radius: 0; padding: .8rem 0; outline: none; background: transparent; color: var(--paper); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--lime); }
.contact-form textarea, .contact-form label[for="message"], .contact-form #message-error, .submit-button, .form-success { grid-column: 1 / -1; }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #77746c; }
.field-error { min-height: 1.1rem; color: #ff9b8e; font-size: .68rem; }
.submit-button { justify-self: start; margin-top: 1.2rem; border: 0; padding: .9rem 1.2rem; background: var(--lime); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.submit-button:hover { background: var(--white); }
.form-success { min-height: 1.2rem; margin: 1rem 0 0; color: var(--lime); font-size: .8rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 0; color: var(--muted); font-size: .75rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-family: var(--display); font-weight: 600; }
.footer-brand .brand-mark { width: 1.8rem; height: 1.8rem; font-size: .7rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem 1rem; }
.footer-links a { color: var(--muted); font-size: .62rem; }

.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 2rem 0; border: 1px dashed rgba(32, 32, 29, .26); color: var(--muted); background: rgba(255, 253, 247, .38); contain: layout paint; font-size: .62rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.ad-slot-wide { margin: 3rem 0 0; }
.article-page, .legal-page { padding: clamp(3rem, 7vw, 7rem) 0; }
.article-page > h1, .legal-page > h1 { max-width: 1000px; margin: 0 0 1.5rem; font-size: clamp(3.2rem, 8vw, 7rem); }
.article-kicker, .article-byline { display: flex; justify-content: space-between; gap: 1rem; color: var(--coral); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-byline { justify-content: flex-start; margin-bottom: 2rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.article-hero { display: block; width: 100%; max-width: 1000px; aspect-ratio: 16 / 7; height: auto; object-fit: cover; margin: 1rem 0 2rem; background: var(--paper-deep); }
.article-summary { max-width: 820px; margin: 0 0 2.5rem; font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.35; }
.article-summary p { margin: 0 0 1rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.article-body { max-width: 760px; }
.article-body section { margin: 3.5rem 0; }
.article-body h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.8rem); }
.article-body p, .legal-page p, .legal-page li { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.article-source { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.article-aside { position: sticky; top: 1rem; }
.article-aside .ad-slot { min-height: 250px; margin-top: 0; }
.article-aside .small-note { line-height: 1.5; }
.related-articles { margin-top: 2rem; }
.related-articles .latest-item { display: block; }
.legal-page { max-width: 900px; }
.legal-page h2 { margin: 3rem 0 1rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.legal-page ul { padding-left: 1.3rem; }
.legal-page .legal-updated { color: var(--coral); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.skeleton-card { background: var(--white); }
.skeleton { background: linear-gradient(100deg, #e9e5db 20%, #f7f3e9 40%, #e9e5db 60%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton.line { height: 1rem; margin: .7rem 0; }
.skeleton.line.short { width: 28%; }
.skeleton.line.long { width: 90%; height: 2.6rem; }
.skeleton.line.medium { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 850px) {
  .page-shell { padding: 0 1.3rem; }
  .site-header { flex-wrap: wrap; min-height: 74px; padding: .9rem 0; gap: .8rem 1.2rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: .5rem; }
  .main-nav a { font-size: .62rem; }
  .header-meta { margin-left: auto; font-size: .65rem; }
  .intro-grid, .news-layout, .contact-section { grid-template-columns: 1fr; }
  .intro-grid { gap: 2rem; margin-top: 3rem; }
  .intro-copy { max-width: 550px; }
  .section-heading { align-items: start; flex-direction: column; }
  .refresh-panel { width: 100%; justify-content: space-between; padding-bottom: 0; }
  .latest-rail { border-left: 0; padding-left: 0; }
  .latest-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1rem; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-section { margin: 0 -1.3rem; padding-left: 1.3rem; padding-right: 1.3rem; }
  .contact-form { justify-self: stretch; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  h2 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .issue-label { font-size: .58rem; }
  .category-tabs { gap: .2rem; }
  .category-tab { padding: .4rem .5rem; font-size: .6rem; }
  .latest-list, .story-grid, .about-facts { grid-template-columns: 1fr; }
  .story-card { min-height: 0; }
  .site-footer { align-items: start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
