:root {
  --ink: #1b1917;
  --paper: #f3ead9;
  --paper-strong: #fffaf0;
  --brick: #9f3f34;
  --brick-dark: #6f2d28;
  --teal: #367f73;
  --blue: #284d63;
  --gold: #d5a72c;
  --line: rgba(27, 25, 23, 0.18);
  --shadow: rgba(27, 25, 23, 0.2);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper-strong);
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 92vh;
  min-height: 92svh;
  height: 92vh;
  height: 92svh;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.crowd-panel {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  isolation: isolate;
}

.crowd-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(27, 25, 23, 0.28);
  pointer-events: none;
  z-index: 2;
}

.crowd-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 25, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 25, 23, 0.04) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  opacity: 0.36;
  pointer-events: none;
  z-index: 1;
}

.crowd-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.crowd-person {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  width: var(--w);
  opacity: var(--o);
  filter: drop-shadow(0 7px 0 rgba(27, 25, 23, 0.07));
  transform: translate(-50%, -50%) rotate(var(--r));
  transform-origin: center bottom;
  user-select: none;
  pointer-events: none;
}

.crowd-fallback {
  position: absolute;
  inset: 0;
}

.crowd-fallback img {
  position: absolute;
  width: 64px;
}

.crowd-fallback img:nth-child(1) {
  left: 8%;
  top: 14%;
}

.crowd-fallback img:nth-child(2) {
  right: 10%;
  top: 22%;
}

.crowd-fallback img:nth-child(3) {
  left: 24%;
  bottom: 22%;
}

.crowd-fallback img:nth-child(4) {
  right: 24%;
  bottom: 18%;
}

.crowd-fallback img:nth-child(5) {
  left: 46%;
  top: 48%;
}

.mask-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  background: var(--brick);
  color: var(--paper-strong);
  padding: 30px clamp(28px, 6vw, 72px) 42px;
}

.mask-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 25, 23, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(27, 25, 23, 0.12) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  opacity: 0.16;
}

.top-nav,
.hero-copy-block,
.mask-art {
  position: relative;
}

.top-nav {
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.top-nav a {
  padding: 5px 0;
  color: var(--paper-strong);
  text-decoration-color: rgba(255, 250, 240, 0.42);
  text-underline-offset: 5px;
}

.top-nav a:hover {
  text-decoration-color: var(--paper-strong);
}

.hero-copy-block {
  z-index: 2;
  max-width: 610px;
  padding: 40px 0 32px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 9ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
}

.subtitle {
  max-width: 14ch;
  margin-bottom: 22px;
  color: var(--paper-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.06rem;
  line-height: 1.08;
}

.hero-copy-block p:not(.eyebrow):not(.subtitle) {
  max-width: 58ch;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--paper-strong);
  color: var(--brick-dark);
}

.button-secondary {
  color: var(--paper-strong);
}

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

.mask-art {
  position: absolute;
  right: clamp(-92px, -8vw, -38px);
  bottom: clamp(-110px, -12vw, -52px);
  z-index: 1;
  width: min(45vw, 520px);
  min-width: 300px;
  opacity: 0.42;
  transform: rotate(-3deg);
}

main {
  background: var(--paper-strong);
}

.section-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 74px 0;
}

.two-column,
.manifesto-layout,
.youtube-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.text-stack p {
  margin-bottom: 18px;
  font-size: 1.06rem;
}

.intro-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.topics-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  min-height: 272px;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 7px 7px 0 var(--teal);
}

.topic-card:nth-child(2) {
  box-shadow: 7px 7px 0 var(--brick);
}

.topic-card:nth-child(3) {
  box-shadow: 7px 7px 0 var(--blue);
}

.topic-card:nth-child(4) {
  box-shadow: 7px 7px 0 var(--gold);
}

.topic-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.manifesto-band {
  background: var(--ink);
  color: var(--paper-strong);
}

.manifesto-statement {
  max-width: 620px;
}

.manifesto-list {
  display: grid;
  gap: 16px;
}

.manifesto-list p {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 250, 240, 0.24);
  font-size: 1.08rem;
}

.manifesto-list p:last-child {
  border-bottom: 1px solid rgba(255, 250, 240, 0.24);
}

.search-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.search-band .section-kicker {
  color: var(--teal);
}

.youtube-band {
  background: var(--teal);
  color: var(--paper-strong);
}

.youtube-layout {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.58fr);
  align-items: center;
}

.youtube-layout p {
  max-width: 700px;
  font-size: 1.07rem;
}

.youtube-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-note {
  margin: 20px 0 0;
  font-size: 0.98rem;
}

.contact-note a {
  font-weight: 900;
  text-underline-offset: 4px;
}

.button-light {
  color: var(--paper-strong);
}

.latest-card {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--gold);
}

.latest-label {
  margin-bottom: 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-card h3 {
  margin-bottom: 14px;
}

.latest-card p {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.latest-card .latest-meta {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.latest-card a {
  font-weight: 900;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper);
  padding: 24px 20px;
  text-align: center;
}

.site-footer p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card {
    min-height: 220px;
  }
}

@media (max-width: 820px) {
  .site-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 520px;
    height: auto;
    min-height: 0;
  }

  .crowd-panel {
    order: 2;
    border-right: 0;
    border-top: 1px solid var(--ink);
  }

  .mask-panel {
    order: 1;
    padding: 20px 22px 28px;
  }

  .top-nav {
    justify-content: flex-start;
    font-size: 0.78rem;
  }

  .hero-copy-block {
    padding: 24px 0 10px;
  }

  h1 {
    max-width: 8ch;
    margin-bottom: 12px;
    font-size: 3.4rem;
  }

  .subtitle {
    max-width: 18ch;
    margin-bottom: 14px;
    font-size: 1.45rem;
  }

  .hero-copy-block p:not(.eyebrow):not(.subtitle) {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .mask-art {
    right: -86px;
    bottom: -102px;
    width: 340px;
    min-width: 0;
    opacity: 0.32;
  }

  .section-inner {
    width: min(100% - 32px, var(--max));
    padding: 54px 0;
  }

.two-column,
.manifesto-layout,
.youtube-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  h2 {
    font-size: 2.25rem;
  }

  .youtube-layout .button {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .site-hero {
    grid-template-rows: auto 460px;
  }

  .crowd-panel::before {
    inset: 10px;
  }

  .top-nav {
    gap: 8px 14px;
  }

  h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.28rem;
  }

  .hero-copy-block p:not(.eyebrow):not(.subtitle) {
    max-width: 43ch;
    font-size: 0.89rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 0;
  }
}

@media (max-height: 700px) and (max-width: 820px) {
  .eyebrow {
    margin-bottom: 7px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .subtitle {
    margin-bottom: 10px;
    font-size: 1.15rem;
  }

  .hero-copy-block {
    padding-top: 16px;
  }

  .hero-copy-block p:not(.eyebrow):not(.subtitle) {
    font-size: 0.84rem;
  }

  .hero-actions {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
