@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --olive: #b83921;
  --forest: #571521;
  --forest-deep: #380d14;
  --leaf: #ff7f5f;
  --sage: #d2b9b6;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.88);
  --glass: rgba(210, 185, 182, 0.14);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --warn-bg: rgba(255, 214, 102, 0.12);
  --warn-edge: #ffd666;
  --bg:
    radial-gradient(1200px 800px at 8% -10%, rgba(255, 96, 64, 0.30), transparent 60%),
    radial-gradient(900px 700px at 110% 30%, rgba(184, 57, 33, 0.45), transparent 65%),
    linear-gradient(160deg, var(--olive) 0%, var(--forest) 45%, var(--forest-deep) 100%);
  --display: "Fraunces", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Verdana", sans-serif;
  --radius: 24px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #49121c;
    --ink-soft: #6c212b;
    --leaf: #c01d26;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-edge: rgba(108, 33, 43, 0.18);
    --warn-bg: #fff6d6;
    --warn-edge: #a87800;
    --bg:
      radial-gradient(1000px 700px at 0% -10%, rgba(240, 69, 58, 0.18), transparent 60%),
      linear-gradient(170deg, #eef4ea 0%, #e5dedd 100%);
    color-scheme: light;
  }
}

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

html { font-size: 125%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-color: var(--forest);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: light) { body { background-color: #eef4ea; } }

/* Film grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--forest);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.top, main, .legal {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: max(16px, 4vw);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-coin img { width: 90%; transform: translateY(3%); }
.brand sup { font-size: 0.5em; font-family: var(--body); }
.brand-coin {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #ffc2b0 0%, #f0453a 30%, #9f2729 70%, #5b171c 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.top-link {
  font-weight: 700;
  text-underline-offset: 0.25em;
  padding: 0.5rem 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 2.5rem 3rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--warn-edge);
  box-shadow: 0 0 0 4px rgba(255, 214, 102, 0.25);
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
h1 em {
  font-style: normal;
  color: var(--leaf);
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0;
}

/* Glossy 3D emblem */
.emblem {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 22rem);
  justify-self: center;
}
.emblem-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 69, 58, 0.55), transparent 70%);
  filter: blur(30px);
}
.emblem-coin {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.45), transparent 55%),
    radial-gradient(circle at 36% 30%, #ffc2b0 0%, #f0453a 28%, #b7282f 62%, #61141f 100%);
  box-shadow:
    inset 0 0 0 0.6rem rgba(255, 255, 255, 0.10),
    inset 0 -1.2rem 2.4rem rgba(0, 0, 0, 0.35),
    inset 0 1rem 2rem rgba(255, 255, 255, 0.25),
    0 2.5rem 4rem rgba(0, 0, 0, 0.45);
  animation: float 7s ease-in-out infinite;
}
.emblem-coin img {
  width: 78%;
  transform: translate(-9%, 2%);
  filter: drop-shadow(0 0.6rem 0.9rem rgba(56, 13, 20, 0.45));
}
.emblem-shine {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 48%, transparent 60%);
  background-size: 250% 100%;
  mix-blend-mode: soft-light;
  animation: shimmer 6s ease-in-out infinite, float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%, 60% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}

/* Panels */
.warning, .card, .open, .legal {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.warning {
  background: var(--warn-bg);
  border: 2px solid var(--warn-edge);
  padding: 1.5rem 1.75rem;
  margin-bottom: 4rem;
}
.warning h2 { font-size: 1.4rem; }

.features { margin-bottom: 4rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.card { padding: 1.5rem 1.6rem; }
.card p { color: var(--ink-soft); }
.card:nth-child(even) { transform: translateY(1.5rem); }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}
@media (prefers-color-scheme: light) { code { background: rgba(108, 33, 43, 0.1); } }
.note {
  margin-top: 3rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.open {
  padding: 2rem 1.9rem;
  margin-bottom: 3rem;
}
.open p { max-width: 60ch; }
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: #f0453a;
  color: #ffffff;
  border: 2px solid #f0453a;
}
.button:hover { filter: brightness(1.08); }
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--glass-edge);
}
@media (prefers-color-scheme: light) { .button { background: var(--leaf); border-color: var(--leaf); color: #ffffff; } .button.ghost { color: var(--ink); } }

.legal {
  margin-bottom: 3rem;
  padding: 1.75rem 1.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: calc(64rem - 2 * max(16px, 4vw));
}
.legal h2 { font-size: 1.3rem; color: var(--ink); }
.legal .copy { margin-top: 1.2rem; opacity: 0.9; }

/* Page-load reveal */
.hero-text > *, .emblem, .warning, .features, .open, .legal {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.emblem { animation-delay: 0.2s; }
.warning { animation-delay: 0.3s; }
.features { animation-delay: 0.38s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .emblem { width: min(70%, 16rem); order: -1; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(even) { transform: none; }
  .note { margin-top: 1.5rem; }
  .legal { margin-inline: max(16px, 4vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .warning, .card, .open, .legal { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .open, .legal { background: rgba(87, 21, 33, 0.92); }
}
