:root {
  --ink: #101318;
  --ink-2: #1a1f28;
  --ink-3: #252b36;
  --paper: #f7f1e6;
  --paper-2: #efe6d4;
  --cream: #f5e6c8;
  --text: #1b1d21;
  --muted: #5d6158;
  --line: #d8cfbb;
  --red: #c62828;
  --red-deep: #8e1c1c;
  --gold: #c4a35a;
  --gold-bright: #e0be6a;
  --blue: #1d4e89;
  --ok: #2e6b45;
  --shadow: 0 18px 50px rgba(16, 19, 24, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header-h: 76px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 19, 24, 0.94);
  color: var(--paper);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand img {
  width: 52px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(247, 241, 230, 0.2);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a,
.nav-drop > button {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.nav-drop > button:hover,
.site-nav a[aria-current="page"] {
  background: rgba(247, 241, 230, 0.08);
  color: var(--gold-bright);
}

.site-nav .btn {
  margin-left: 0.35rem;
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: 320px;
  background: var(--ink-2);
  border: 1px solid rgba(196, 163, 90, 0.2);
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  display: grid;
}

.nav-drop-menu a {
  display: block;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-drop-menu a span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper) !important;
  border: 1px solid rgba(247, 241, 230, 0.28);
}

.btn-ghost:hover {
  background: rgba(247, 241, 230, 0.08);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink) !important;
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(196, 163, 90, 0.18), transparent 28%),
    linear-gradient(165deg, #101318 0%, #18202c 58%, #2a1515 100%);
  color: var(--paper);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "8";
  position: absolute;
  right: -0.1em;
  bottom: -0.35em;
  font-family: var(--serif);
  font-size: 28rem;
  line-height: 0.8;
  color: rgba(247, 241, 230, 0.035);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.lede {
  font-size: 1.2rem;
  max-width: 42rem;
  color: rgba(247, 241, 230, 0.84);
  margin: 0 0 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

.pause-card {
  background: rgba(16, 19, 24, 0.55);
  border: 1px solid rgba(196, 163, 90, 0.28);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.pause-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.pause-card p {
  margin: 0 0 0.9rem;
  color: rgba(247, 241, 230, 0.78);
}

.pause-date {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-bright);
  line-height: 1;
}

.pause-date small,
.math-line small {
  font-family: var(--sans);
  font-size: 0.85em;
  font-weight: 600;
}

.pause-date small {
  color: rgba(247, 241, 230, 0.7);
}

.callout .math-line small {
  color: var(--muted);
}

.banner-today {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-weight: 700;
  display: none;
}

.banner-today.is-on {
  display: block;
}

/* Sections */
.section {
  padding: 4.2rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section h2,
.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.section-center {
  text-align: center;
  margin-bottom: 2rem;
}

.dark {
  background: var(--ink);
  color: var(--paper);
}

.dark .section-intro,
.dark p {
  color: rgba(247, 241, 230, 0.8);
}

.muted-bg {
  background: var(--paper-2);
}

/* Step cards */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  color: inherit;
}

.step-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--red);
  line-height: 1;
  min-width: 2ch;
}

.step-card h3,
.step-list a strong {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  font-family: var(--serif);
  font-weight: 600;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.step-list {
  display: grid;
  gap: 0.7rem;
}

.step-list a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.step-list a:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  color: inherit;
}

.step-list .go {
  color: var(--muted);
  font-weight: 700;
}

/* FAQ */
.faq-block {
  margin-bottom: 2.8rem;
  max-width: 48rem;
}

.faq-block h2 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 48rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.dark .faq details {
  background: var(--ink-2);
  border-color: rgba(247, 241, 230, 0.08);
}

.dark .faq details p {
  color: rgba(247, 241, 230, 0.75);
}

/* About / split */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.portrait {
  background: var(--ink);
  border-radius: 28px;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--gold);
  overflow: hidden;
  position: relative;
}

.portrait img {
  width: 220px;
}

.portrait-fallback {
  text-align: center;
  padding: 2rem;
}

.portrait-fallback .mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}

/* Forms */
form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Article */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 3.2rem 0 2.4rem;
}

.page-hero p {
  max-width: 42rem;
  color: rgba(247, 241, 230, 0.78);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(247, 241, 230, 0.62);
  margin-bottom: 1rem;
}

.crumbs a {
  color: var(--gold-bright);
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.8rem 0 4rem;
  align-items: start;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.3rem, 3vw, 2.4rem);
}

.article p {
  margin: 0 0 1.1rem;
}

.article h2 {
  margin-top: 1.8rem;
}

.article h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.6rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text);
}

.callout,
.example,
.note {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 1.3rem 0;
}

.callout {
  background: #fff6e5;
  border: 1px solid #ead7a4;
}

.example {
  background: #eef4ea;
  border: 1px solid #c9d8c4;
}

.note {
  background: var(--paper-2);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.example-title,
.callout-title {
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.math-line {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.sidebar h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.sidebar a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.sidebar a:hover,
.sidebar a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--red);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.pager a {
  flex: 1;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: inherit;
}

.pager a:hover {
  border-color: var(--gold);
}

.pager small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Calculator */
.calc {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 1.3rem;
  margin: 1.5rem 0;
}

.calc h3 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.calc label {
  color: rgba(247, 241, 230, 0.85);
}

.calc input {
  width: 100%;
}

.calc-out {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.stat {
  background: var(--ink-3);
  border-radius: 12px;
  padding: 0.8rem;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.stat span {
  font-size: 0.8rem;
  color: rgba(247, 241, 230, 0.7);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.rate-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
}

.rule-list li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
}

.rule-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}

.formula {
  font-family: var(--serif);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin: 1rem 0 1.3rem;
}

.formula p {
  margin: 0.35rem 0;
  color: var(--gold-bright);
}

.calc-note {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: rgba(247, 241, 230, 0.72);
}

/* Protest days */
.day-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.day-pills span {
  background: var(--ink);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 800;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247, 241, 230, 0.78);
  padding: 2.6rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--paper);
  font-family: var(--serif);
  margin: 0 0 0.7rem;
}

.site-footer a {
  color: var(--gold-bright);
}

.socials {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.legal {
  border-top: 1px solid rgba(247, 241, 230, 0.08);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.88rem;
}

.hashtags {
  color: var(--gold);
  font-weight: 700;
}

/* Figures */
figure {
  margin: 1.3rem 0;
}

figure img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* Home highlights */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-row article {
  background: rgba(247, 241, 230, 0.05);
  border: 1px solid rgba(247, 241, 230, 0.08);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.stat-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-bright);
}

/* 404 / utility */
.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-layout,
  .split,
  .footer-grid,
  .step-grid,
  .calc-grid,
  .calc-out,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1.2rem;
    border-bottom: 1px solid rgba(196, 163, 90, 0.18);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .sidebar {
    position: static;
  }

  .hero h1 {
    max-width: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .pager,
  .nav-toggle,
  .banner-today {
    display: none !important;
  }

  .article-layout {
    display: block;
  }

  body {
    background: #fff;
  }
}
