@font-face {
  font-family: "Jersey 10";
  src: url("Jersey10.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #f3e6cf;
  --muted: #b9ad98;
  --indigo: #5233e0;
  --indigo-soft: #9ea3ff;
  --gold: #ffbd29;
  --rule: #2a2622;
  --measure: 40rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: #ffd77a; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

/* The word mark: the splash card's Jersey 10 in the card's ink. */
.mark {
  font-family: "Jersey 10", system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

/* The logo: the splash card's figure, with the light at its third eye
   (the card's THIRD_EYE = (32, 18.5) on its 64 x 64 grid: 50%, 28.9%). */
.logo {
  position: relative;
  display: inline-block;
  width: 112px;
  height: 112px;
  flex: none;
}
.figure {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--gold) 10%, var(--indigo-soft) 55%, var(--indigo) 100%);
  -webkit-mask: url("figure.png") center / contain no-repeat;
  mask: url("figure.png") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(82, 51, 224, 0.55));
}
/* A white core in a warm halo (the card's halo_color), breathing slowly. */
.eye {
  position: absolute;
  left: 50%;
  top: 28.9%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    #fff 0 4%,
    rgba(255, 255, 255, 0.95) 7%,
    rgba(255, 240, 220, 0.6) 13%,
    rgba(255, 196, 140, 0.28) 24%,
    rgba(255, 158, 82, 0.1) 40%,
    rgba(255, 158, 82, 0) 62%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: breathe 4.8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .eye { animation: none; }
}

/* Home */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 64px 16px;
}
.hero .mark { font-size: clamp(3rem, 12vw, 5.5rem); }
.hero p { margin: 0; color: var(--muted); max-width: 30rem; }

/* Document pages */
.top {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.top a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.top .logo { width: 36px; height: 36px; }
.top .figure { filter: none; }
.top .mark { font-size: 2rem; }

main.doc { padding: 40px 0 56px; }
main.doc h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 6px; }
main.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 0.95rem; }
main.doc h2 { font-size: 1.2rem; margin: 36px 0 8px; color: var(--ink); }
main.doc p, main.doc li { color: #e6dac4; }
main.doc ul { padding-left: 1.25rem; }
main.doc li { margin: 4px 0; }
.summary {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 6px;
  background: #0d0b09;
}
.summary p { margin: 0; }

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0 28px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }
