:root {
  --ink: #151515;
  --paper: #f7f3e8;
  --red: #ed3a2d;
  --yellow: #ffd84d;
  --blue: #1c4fd7;
  --muted: #6d685d;
  --line: #cfc7b6;
  --white: #fffdf7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247,243,232,.96);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(10px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 900; font-size: 1.35rem; text-decoration: none; letter-spacing: -.04em; }
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 18px; font-weight: 700; font-size: .9rem; }
.nav-links a { text-decoration: none; }
.hero { padding: 72px 0 54px; border-bottom: 2px solid var(--ink); }
.news-hero { padding: 38px 0 54px; border-bottom: 2px solid var(--ink); }
.news-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.news-label span:first-child { color: var(--red); }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 22px; }
.lead-story { min-height: 510px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; border: 2px solid var(--ink); background: var(--yellow); text-decoration: none; }
.lead-story:hover { color: var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: translate(-3px,-3px); }
.lead-story h1 { margin: 40px 0 18px; font-size: clamp(3rem, 7vw, 6.6rem); }
.lead-story p { max-width: 650px; font-size: 1.2rem; }
.lead-story strong { margin-top: 14px; text-decoration: underline; text-underline-offset: 4px; }
.latest { border: 2px solid var(--ink); background: var(--white); }
.latest-title { padding: 14px 18px; background: var(--ink); color: var(--white); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.latest a { display: block; padding: 22px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.latest a:last-child { border-bottom: 0; }
.latest a:hover { background: #dce7ff; color: var(--ink); }
.latest span, .latest small { display: block; }
.latest span { color: var(--red); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.latest strong { display: block; margin: 7px 0; font-size: 1.22rem; line-height: 1.15; }
.latest small { color: var(--muted); font-size: .8rem; }
.headline-list { border-top: 2px solid var(--ink); }
.headline-list a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 145px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
.headline-list a:hover { color: var(--blue); }
.headline-list strong { font-size: clamp(1.25rem, 2.5vw, 2rem); line-height: 1.08; }
.headline-list a > span:last-child { text-align: right; font-size: .85rem; font-weight: 800; text-decoration: underline; }
.kicker { margin: 0 0 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-size: .78rem; }
h1, h2, h3 { line-height: .98; letter-spacing: -.055em; margin-top: 0; }
h1 { font-size: clamp(3.1rem, 10vw, 7.8rem); max-width: 980px; margin-bottom: 26px; }
h2 { font-size: clamp(2.1rem, 6vw, 4.6rem); }
h3 { font-size: 1.55rem; }
.hero-copy { max-width: 720px; font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
.marker { background: linear-gradient(transparent 58%, var(--yellow) 58%); }
.button {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--red);
}
.button:hover { color: var(--white); transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--red); }
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-head p { max-width: 470px; margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { color: var(--ink); transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }
.card:nth-child(2) { background: var(--yellow); }
.card:nth-child(3) { background: #dce7ff; }
.card:nth-child(4) { background: #ffd8d3; }
.eyebrow { font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.card h3 { margin: auto 0 14px; font-size: clamp(1.9rem, 4vw, 3.2rem); }
.card p { margin: 0; max-width: 520px; }
.tool-band { background: var(--ink); color: var(--white); }
.tool-band .section-head p { color: #d8d1c4; }
.calculator { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: stretch; }
.calc-form, .result { border: 2px solid var(--white); padding: 26px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 800; font-size: .88rem; }
input {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.result { display: flex; flex-direction: column; justify-content: center; background: var(--yellow); color: var(--ink); }
.result strong { display: block; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 1; letter-spacing: -.07em; }
.result p { margin-bottom: 0; }
.receipt-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--white); }
.fact { padding: 22px; border-right: 1px dashed var(--ink); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.article { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
.article h1 { font-size: clamp(2.8rem, 8vw, 5.8rem); }
.article h2 { font-size: 2.2rem; margin-top: 52px; }
.article p, .article li { font-size: 1.08rem; }
.dek { font-size: 1.35rem !important; color: var(--muted); }
.callout { margin: 34px 0; padding: 22px; border-left: 8px solid var(--red); background: var(--white); font-size: 1.2rem; font-weight: 800; }
.source-list { margin-top: 50px; padding-top: 24px; border-top: 2px solid var(--ink); font-size: .94rem; }
.source-list li { font-size: .94rem; margin-bottom: 10px; }
.meta { font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.byline { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 4px; font-size: .96rem !important; }
.byline strong { font-size: 1.08rem; }
.byline span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.byline-mini { margin-top: 10px; color: var(--muted); font-size: .76rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lead-story .byline-mini { color: var(--ink); }
.latest .byline-mini { margin-top: 10px; color: var(--muted); }
.footer { padding: 44px 0; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer a { color: var(--white); }
.fine { color: #c8c1b5; font-size: .82rem; }
.admin-page { min-height: 100vh; }
.admin-badge { padding: 5px 9px; background: var(--yellow); border: 2px solid var(--ink); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.admin-shell { padding: 48px 0 80px; }
.admin-login { width: min(620px, 100%); margin: 40px auto; padding: 32px; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--red); }
.admin-login h1, .admin-heading h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); margin-bottom: 18px; }
.admin-login form { margin-top: 26px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-actions .button { margin-top: 0; }
.button-light { background: var(--white); color: var(--ink); box-shadow: 5px 5px 0 var(--blue); }
.button-light:hover { color: var(--ink); box-shadow: 3px 3px 0 var(--blue); }
.button:disabled { opacity: .55; cursor: wait; }
.admin-message { min-height: 1.5em; font-weight: 800; }
.admin-message.is-error { color: #a11910; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 28px 0; border: 2px solid var(--ink); background: var(--white); }
.admin-stats div { padding: 20px; border-right: 1px solid var(--line); }
.admin-stats div:last-child { border-right: 0; }
.admin-stats strong, .admin-stats span { display: block; }
.admin-stats strong { font-size: 1.7rem; line-height: 1.05; }
.admin-stats span { margin-top: 7px; color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.admin-section { padding: 40px 0; border-top: 1px solid var(--line); }
.admin-section h2 { margin-bottom: 24px; font-size: clamp(2rem, 5vw, 3.7rem); }
.admin-section-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.text-button { border: 0; background: transparent; font: inherit; font-weight: 900; text-decoration: underline; cursor: pointer; }
.draft-list, .candidate-list { display: grid; gap: 14px; }
.draft-card { padding: 24px; border: 2px solid var(--ink); background: var(--white); }
.draft-card h3 { margin: 10px 0; font-size: 2rem; }
.draft-card code { display: block; overflow-wrap: anywhere; padding: 12px; background: var(--paper); border: 1px solid var(--line); }
.candidate-list article { padding: 14px 0; border-bottom: 1px solid var(--line); }
.candidate-list a { font-size: 1.1rem; font-weight: 800; }
.candidate-meta { margin: 0 0 5px; color: var(--red); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { padding: 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .82rem; }
.admin-table th { background: var(--ink); color: var(--white); }
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .brand { font-size: 1.18rem; white-space: nowrap; }
  .nav-links { flex-shrink: 0; font-size: .78rem; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding-top: 46px; }
  .news-hero { padding-top: 24px; }
  .news-label { align-items: flex-end; }
  .lead-layout { grid-template-columns: 1fr; }
  .lead-story { min-height: 430px; padding: 22px; }
  .latest { margin-top: 2px; }
  .headline-list a { grid-template-columns: 1fr; gap: 8px; }
  .headline-list a > span:last-child { text-align: left; }
  .card { grid-column: 1 / -1; min-height: 260px; }
  .section-head, .calculator { display: block; }
  .section-head p { margin-top: 14px; }
  .result { margin-top: 16px; min-height: 250px; }
  .field-grid, .receipt-strip, .footer-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px dashed var(--ink); }
  .fact:last-child { border-bottom: 0; }
  .byline { align-items: flex-start; flex-direction: column; gap: 2px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats div { border-bottom: 1px solid var(--line); }
}
