:root {
  --ink: #15110f;
  --ink-soft: #473b35;
  --paper: #fffaf1;
  --paper-plain: #fffdf8;
  --paper-deep: #f1e5d2;
  --curtain: #8f2d2d;
  --curtain-deep: #521b1b;
  --teal: #267b75;
  --teal-deep: #174f4c;
  --amber: #e6a84b;
  --line: rgba(21, 17, 15, 0.16);
  --shadow: 0 18px 50px rgba(62, 34, 20, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-sequence,
.footer-inner,
.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 21px;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.08);
}

.brand span:last-child {
  max-width: 190px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: rgba(38, 123, 117, 0.11);
  color: var(--teal-deep);
}

main {
  flex: 1;
}

.page-hero {
  position: relative;
  min-height: clamp(590px, calc(100vh - 76px), 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(6, 29, 32, 0.96) 0%, rgba(6, 29, 32, 0.88) 34%, rgba(6, 29, 32, 0.52) 66%, rgba(6, 29, 32, 0.24) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 250, 241, 0.24);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 42%, rgba(230, 168, 75, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(21, 17, 15, 0.12), rgba(21, 17, 15, 0.56));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 0 82px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy p {
  color: rgba(255, 250, 241, 0.92);
  font-size: clamp(1.12rem, 1.8vw, 1.46rem);
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.hero-copy .record-stamp {
  margin: 18px 0 0;
  color: var(--amber);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 1080px;
  margin-bottom: 22px;
  color: var(--paper-plain);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(3.8rem, 8.4vw, 7.4rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.48);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(21, 17, 15, 0.16);
}

.page-hero .button {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.page-hero .button.secondary {
  border-color: rgba(255, 250, 241, 0.82);
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
}

.page-hero .button:hover,
.page-hero .button:focus-visible {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.section {
  padding: 68px 0;
}

.section.tight {
  padding-top: 28px;
}

.section.band {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--paper-plain);
  border-block: 1px solid var(--line);
}

.band-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.bill-list,
.headline-grid,
.source-grid,
.link-grid,
.principle-grid {
  display: grid;
  gap: 18px;
}

.bill-list {
  margin-top: 28px;
}

.headline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.source-grid,
.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.headline-card,
.source-card,
.link-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  padding: 20px;
  box-shadow: 0 10px 26px rgba(62, 34, 20, 0.07);
}

.headline-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
}

.headline-card.is-hidden {
  display: none;
}

.headline-image-link {
  display: block;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.headline-image {
  width: 100%;
  aspect-ratio: 760 / 520;
  object-fit: cover;
}

.headline-card > :not(.headline-image-link) {
  margin-left: 20px;
  margin-right: 20px;
}

.headline-card > .card-topline {
  margin-top: 18px;
}

.card-topline,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.headline-card h3 a {
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

.headline-card p,
.source-card p,
.link-card p,
.note-card p {
  color: var(--ink-soft);
}

.headline-card .reason {
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 14px;
  color: var(--curtain-deep);
  font-weight: 700;
}

.source-card-prime {
  border-color: rgba(143, 45, 45, 0.48);
  box-shadow: 0 16px 36px rgba(143, 45, 45, 0.14);
}

.source-card-prime .card-topline {
  color: var(--curtain);
}

.source-card-tabloid-offbeat .card-topline,
.source-card-tabloid .card-topline {
  color: var(--teal-deep);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin-top: 28px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(21, 17, 15, 0.24);
  border-radius: 8px;
  background: var(--paper-plain);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.status-line {
  margin-top: 18px;
  color: var(--ink-soft);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.quote-panel {
  border-left: 6px solid var(--curtain);
  padding: 24px;
  background: var(--paper-plain);
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.simple-list {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.simple-list li + li {
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.footer-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 0;
}

.sequence-link,
.sequence-spacer {
  min-height: 88px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
}

.sequence-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 16px 18px;
  background: rgba(255, 250, 241, 0.06);
  color: var(--paper);
  text-decoration: none;
}

.sequence-link:hover,
.sequence-link:focus-visible {
  border-color: rgba(230, 168, 75, 0.82);
  background: rgba(230, 168, 75, 0.13);
}

.sequence-link span {
  color: rgba(255, 250, 241, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence-link strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.sequence-link-next {
  align-items: flex-end;
  text-align: right;
}

.sequence-spacer {
  display: block;
  border-style: dashed;
  opacity: 0.24;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 32px 0;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.74);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.footer-nav a {
  color: rgba(255, 250, 241, 0.78);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: rgba(255, 250, 241, 0.1);
  color: var(--paper);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 241, 0.55);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-sequence,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-hero {
    min-height: 680px;
    background-position: 58% center;
  }

  .hero-copy {
    padding-block: 58px;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    max-width: 720px;
  }

  .hero-copy p {
    max-width: 620px;
  }

  .headline-grid,
  .source-grid,
  .link-grid,
  .principle-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .sequence-spacer {
    display: none;
  }

  .sequence-link-next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .footer-sequence,
  .footer-inner,
  .section,
  .band-inner {
    width: min(100% - 22px, var(--max));
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .site-nav a,
  .footer-nav a {
    padding-inline: 9px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .page-hero {
    min-height: 690px;
    background-image: linear-gradient(90deg, rgba(6, 29, 32, 0.96) 0%, rgba(6, 29, 32, 0.88) 58%, rgba(6, 29, 32, 0.48) 100%), var(--hero-image);
    background-position: 55% center;
  }

  .hero-copy {
    width: min(100% - 22px, var(--max));
  }

  .page-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.15rem);
  }

  .button {
    width: 100%;
  }
}
