/* ================= TOKENS ================= */
:root {
  --navy: #0e1c46;
  --navy-2: #172a63;
  --red: #b3122e;
  --red-dark: #8c0d23;
  --cream: #fbf6ea;
  --parchment: #f4e9cc;
  --white: #ffffff;
  --ink: #0b1433;
  --sol: linear-gradient(90deg, #14f1a0, #4cc3f5 50%, #9b4dff);

  --f-display: "Alfa Slab One", Georgia, serif;
  --f-old: "IM Fell English", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;

  --border: 3px solid var(--navy);
  --shadow: 5px 5px 0 var(--navy);
  --radius: 12px;

  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M16 6l2.4 7.3H26l-6.2 4.5 2.4 7.3-6.2-4.5-6.2 4.5 2.4-7.3L6 13.3h7.6zM48 38l2.4 7.3H58l-6.2 4.5 2.4 7.3-6.2-4.5-6.2 4.5 2.4-7.3-6.2-4.5h7.6z' fill='%23ffffff' fill-opacity='.09'/%3E%3C/svg%3E");
  --flag-stripes: repeating-linear-gradient(to bottom, var(--red) 0 10px, var(--white) 10px 20px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid #4cc3f5;
  outline-offset: 3px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--navy);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--navy);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--navy);
}

.btn-red {
  color: var(--white);
  background: var(--red);
}

.btn-navy {
  color: var(--white);
  background: var(--navy-2);
}

.btn-white {
  color: var(--navy);
  background: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  background: var(--white);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.nav .btn {
  border-color: var(--white);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  color: var(--white);
  background: var(--navy);
  border-bottom: 5px solid var(--red);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 3px solid var(--white);
  border-radius: 50%;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  color: #8fe3ff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= HERO ================= */
.hero {
  padding-bottom: clamp(48px, 7vw, 80px);
  background: var(--stars) 0 0 / 64px 64px, var(--navy);
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-bottom: 5px solid var(--navy);
}

.ballot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(880px, calc(100% - 32px));
  margin: clamp(-72px, -6vw, -28px) auto 0;
  padding: clamp(24px, 4vw, 36px) clamp(18px, 4vw, 40px);
  text-align: center;
  background: var(--cream);
  border: 4px solid var(--navy);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--red);
}

.stars {
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--red);
}

.ballot-title h1 {
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.05;
  color: var(--navy);
}

.ticker {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 18px;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--white);
  background: var(--sol);
  border: var(--border);
  border-radius: 999px;
  text-shadow: 2px 2px 0 var(--navy);
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--navy);
  overflow: hidden;
  cursor: pointer;
}

.ca-tag,
.ca-copy {
  flex: none;
  padding: 9px 16px;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.ca-tag {
  color: var(--white);
  background: var(--navy);
}

.ca-code {
  min-width: 0;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  color: var(--white);
  background: var(--red);
  border-left: var(--border);
}

.ca-pill:hover .ca-copy {
  background: var(--red-dark);
}

.ballot-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ================= STRIP ================= */
.strip {
  overflow: hidden;
  background: var(--red);
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.strip-track span {
  padding: 12px 0;
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}

.strip-track span::after {
  content: "★";
  margin: 0 26px;
  color: var(--cream);
  opacity: 0.8;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ================= SECTIONS ================= */
.section {
  padding: clamp(64px, 9vw, 110px) 16px;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--red);
}

.h2 {
  margin: 6px 0 18px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  line-height: 1.05;
  color: var(--navy);
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1120px;
  margin: 0 auto;
}

.portrait {
  margin: 0;
  padding: 14px 14px 12px;
  background: var(--navy);
  border-radius: 6px;
  box-shadow: 10px 10px 0 var(--red);
  transform: rotate(-2deg);
}

.portrait img {
  width: 100%;
  border: 4px solid var(--white);
  border-radius: 2px;
}

.portrait figcaption {
  padding-top: 10px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--white);
}

.charter {
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.5), transparent 60%),
    var(--parchment);
  border: var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.preamble {
  margin: 0 0 22px;
  font-family: var(--f-old);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: #2a2418;
}

.preamble::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--f-display);
  font-size: 3.6rem;
  line-height: 0.8;
  color: var(--red);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.facts > div {
  padding: 6px 14px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
}

.facts dt {
  display: inline;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.facts dt::after {
  content: " ";
}

.facts dd {
  display: inline;
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.signed {
  margin: 20px 0 0;
  font-family: var(--f-old);
  font-style: italic;
  font-size: 1.15rem;
  text-align: right;
  color: #2a2418;
}

/* How to buy */
.buy {
  position: relative;
  text-align: center;
  color: var(--white);
  background: var(--stars) 0 0 / 64px 64px, var(--navy);
}

.buy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--flag-stripes);
}

.buy .h2 {
  color: var(--white);
}

.buy .eyebrow {
  color: #8fe3ff;
}

.articles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 34px 22px 24px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--white);
  border-top: 10px solid var(--red);
  border-radius: 10px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.article:hover {
  transform: translateY(-4px);
}

.article-num {
  position: absolute;
  top: -26px;
  left: 18px;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--white);
  background: var(--navy);
  border: 3px solid var(--white);
  border-radius: 999px;
}

.article h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--navy);
}

.article p {
  margin: 0;
  font-size: 0.94rem;
}

.mini-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.mini-ca span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ca b {
  flex: none;
  color: #8fe3ff;
}

/* Join */
.join {
  padding: clamp(64px, 9vw, 110px) 16px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 40px, var(--white) 40px 80px);
}

.join-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  color: var(--white);
  background: var(--stars) 0 0 / 64px 64px, var(--navy);
  border: 4px solid var(--white);
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(14, 28, 70, 0.4);
}

.join-inner .stars {
  color: var(--white);
}

.join-inner .h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.join-inner p {
  margin: 0 0 26px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* ================= FOOTER ================= */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px 36px;
  text-align: center;
  color: var(--cream);
  background: #080f28;
  border-top: 5px solid var(--red);
}

.footer img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 3px solid var(--white);
  border-radius: 50%;
}

.footer-name {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 1.2rem;
}

.footer-name span {
  background: var(--sol);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 0.75rem;
  opacity: 0.45;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--navy);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--red);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

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

  .portrait {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .nav .btn-sm {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  .ballot {
    margin-top: 20px;
  }

  .brand-name {
    display: none;
  }

  .ballot-cta .btn {
    flex: 1 1 100%;
  }

  .articles {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .strip-track {
    animation: none;
  }
}
