:root {
  --ink: #10100e;
  --ink-soft: #2a2822;
  --paper: #f7f0df;
  --paper-deep: #eadbb5;
  --gold: #d8a93b;
  --gold-light: #f4dc90;
  --clay: #9f3f2f;
  --green: #244f3a;
  --blue: #1f4e5f;
  --white: #fffaf0;
  --line: rgba(16, 16, 14, 0.18);
  --shadow: 0 22px 70px rgba(20, 14, 8, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 16, 14, 0.92);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-wordmark {
  width: 132px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a,
.nav-links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 250, 240, 0.82);
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover,
.nav-links button:focus-visible {
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  outline: none;
}

.nav-links .nav-cta {
  color: var(--ink);
  background: var(--gold);
  font-weight: 800;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--ink);
  background: var(--gold-light);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.hero {
  position: relative;
  min-height: 760px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 16, 14, 0.96) 0%, rgba(16, 16, 14, 0.82) 42%, rgba(16, 16, 14, 0.2) 100%),
    url("../img/texture-dust.webp") center / cover,
    var(--ink);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(0deg, var(--paper), rgba(247, 240, 223, 0));
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 7rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
.display {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.28;
}

.lead {
  max-width: 660px;
  color: rgba(255, 250, 240, 0.84);
  font-size: 1.22rem;
}

.lead.dark {
  color: rgba(16, 16, 14, 0.74);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.btn.ghost {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

.btn.light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.hero-card {
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, 470px);
  justify-self: end;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.4));
}

.hero-card .mask-two {
  transform: translate(14%, 8%) rotate(2deg) scale(0.86);
  opacity: 0.74;
}

.hero-card .mask-three {
  transform: translate(-18%, 14%) rotate(-4deg) scale(0.75);
  opacity: 0.64;
}

.signature-strip {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: -72px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signature-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 6rem 0;
}

.section.tight {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 770px;
  margin-bottom: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 3rem;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.band {
  background: var(--ink);
  color: var(--white);
}

.band .lead,
.band p {
  color: rgba(255, 250, 240, 0.78);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(16, 16, 14, 0.08);
  box-shadow: var(--shadow);
}

.image-frame.wide {
  aspect-ratio: 16 / 10;
}

.image-frame.tall {
  aspect-ratio: 4 / 5;
}

.image-frame.square {
  aspect-ratio: 1;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mask-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mask-card,
.info-card {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.68);
}

.mask-card figure {
  margin: 0 0 1rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(216, 169, 59, 0.22), rgba(36, 79, 58, 0.18));
  border-radius: var(--radius);
}

.mask-card img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.mask-card h3,
.info-card h3 {
  margin-bottom: 0.45rem;
}

.mask-card p,
.info-card p {
  margin-bottom: 0;
  color: rgba(16, 16, 14, 0.72);
}

.quote {
  padding: 3rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.timeline-kicker {
  color: var(--clay);
  font-weight: 950;
}

.petition-page,
.scan-page {
  min-height: calc(100vh - 76px);
  color: var(--white);
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
}

.petition-page {
  background-image:
    linear-gradient(90deg, rgba(16, 16, 14, 0.95) 0%, rgba(16, 16, 14, 0.78) 48%, rgba(16, 16, 14, 0.34) 100%),
    url("../img/petition-background.webp");
}

.scan-page {
  background-image:
    linear-gradient(90deg, rgba(16, 16, 14, 0.95), rgba(16, 16, 14, 0.55)),
    url("../img/scan-qr-background.webp");
}

.petition-layout,
.scan-layout {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0;
}

.form-panel,
.qr-panel {
  padding: 1.25rem;
  background: rgba(255, 250, 240, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 850;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(16, 16, 14, 0.24);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.field input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(36, 79, 58, 0.18);
}

.form-note,
.small {
  color: rgba(16, 16, 14, 0.64);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.85rem;
  color: var(--green);
  font-weight: 800;
}

.qr-code {
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
}

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 76px;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 250, 240, 0.76);
}

.not-found {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(16, 16, 14, 0.98);
    border: 1px solid rgba(255, 250, 240, 0.16);
    border-radius: var(--radius);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    justify-content: flex-start;
  }

  .hero-inner,
  .two-col,
  .two-col.reverse,
  .petition-layout,
  .scan-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 4rem 0 7rem;
  }

  h1,
  .display {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-card {
    justify-self: center;
    width: min(100%, 390px);
  }

  .signature-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mask-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 620px) {
  .brand-wordmark {
    width: 104px;
  }

  .section {
    padding: 4.5rem 0;
  }

  h1,
  .display {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .signature-number {
    font-size: 2.35rem;
  }

  .quote {
    padding: 1.5rem;
  }

  .quote blockquote {
    font-size: 1.45rem;
  }

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