:root {
  --ink: #1a120e;
  --ink-2: #2a211c;
  --paper: #f3ecdf;
  --paper-2: #fffaf3;
  --gold: #e2a322;
  --gold-deep: #a56d10;
  --rust: #8f2e24;
  --felt: #16332c;
  --text: #241c17;
  --muted: #5e534a;
  --line: rgba(26, 18, 14, 0.14);
  --shadow: 8px 8px 0 var(--ink);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --ui: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 18, 14, 0.045) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  overflow-x: clip;
}

body.has-dock {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rust);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:target {
  scroll-margin-top: 7.5rem;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.lane {
  overflow: hidden;
  background: var(--rust);
  color: var(--paper-2);
}

.lane-track {
  display: flex;
  width: max-content;
  animation: lane 32s linear infinite;
}

.lane-track p {
  margin: 0;
  padding: 0.48rem 1.4rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.lane:hover .lane-track {
  animation-play-state: paused;
}

@keyframes lane {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper-2);
}

.mast-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-2);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.25rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--paper-2);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 0.95rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background-size: 100% 2px;
}

.mast-cta {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  font-family: var(--ui);
  font-weight: 650;
  background: transparent;
  color: var(--paper-2);
  border: 1px solid rgba(246, 240, 230, 0.4);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.btn-login {
  background: var(--gold);
  color: var(--ink);
  animation: ring 2.4s ease-out 3;
}

.btn-join.on-dark {
  background: transparent;
  color: var(--paper-2);
  border-color: var(--gold);
}

.btn-join.on-paper {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(226, 163, 34, 0.55); }
  80% { box-shadow: 0 0 0 12px rgba(226, 163, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 163, 34, 0); }
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.crumbs {
  padding: 14px 0 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.86rem;
}

.crumbs li {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--gold-deep);
}

.crumbs a {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 22px 0 10px;
}

.hero-grid {
  display: grid;
  gap: 22px;
}

.kicker {
  margin: 0 0 8px;
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 650;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.05rem, 5vw, 4.1rem);
  max-width: 16ch;
}

.byline {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.92rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.hero-cta .btn {
  min-height: 54px;
  padding: 0 22px;
  font-size: 1.05rem;
}

.lead {
  margin: 0;
  font-size: 1.16rem;
  max-width: 62ch;
}

.slip {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  position: relative;
}

.slip-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.slip-kicker {
  margin: 0;
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.stamp {
  width: 84px;
  height: 84px;
  margin: 0;
  border: 2px dashed var(--rust);
  color: var(--rust);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  font-weight: 700;
  line-height: 1.15;
  padding: 8px;
}

.slip-url {
  display: block;
  margin: 8px 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.slip-date,
.slip-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plate {
  margin: 22px 0 0;
}

.plate img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--ink);
}

.plate figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.85rem;
}

.reel {
  padding: 8px 0 28px;
}

.reel-window {
  overflow: hidden;
}

.reel-track {
  display: grid;
  gap: 12px;
}

.reel-card {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 16px 16px 4px 16px;
  padding: 16px 18px 18px;
}

.reel-card p {
  margin: 0;
}

.reel-card h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.reel-index {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 4px;
}

.reel-controls {
  display: none;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.reel.is-ready .reel-controls {
  display: flex;
}

.reel-controls button,
.dot {
  font-family: var(--ui);
  background: transparent;
  border: 1px solid var(--ink);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}

.dot {
  width: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 50%;
}

.dot[aria-current="true"] {
  background: var(--ink);
}

.toc {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  counter-reset: toc;
}

.toc a {
  counter-increment: toc;
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0;
  font-family: var(--ui);
  font-size: 1.02rem;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--rust);
  min-width: 1.8rem;
}

.chapter {
  padding: 28px 0;
}

.sheet {
  display: block;
}

.index-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--rust);
  margin: 0 0 4px;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  max-width: 18ch;
}

.prose h3 {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.45rem;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 1rem;
}

.pull {
  margin: 1.2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  color: var(--rust);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  max-width: 28ch;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 12px;
  max-width: 68ch;
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  background: var(--ink);
  color: var(--paper-2);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.bonus-row {
  display: grid;
  gap: 14px;
  margin: 8px 0 16px;
}

.bonus-row article {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.band-felt {
  background: var(--felt);
  color: var(--paper-2);
}

.band-felt a {
  color: var(--gold);
}

.band-felt .index-no,
.band-felt .pull {
  color: var(--gold);
}

.catalog {
  display: grid;
  gap: 14px;
  margin: 8px 0 16px;
}

.catalog div {
  border-top: 1px solid rgba(246, 240, 230, 0.28);
  padding-top: 8px;
}

.catalog dt {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
}

.catalog dd {
  margin: 0.3rem 0 0;
  max-width: 62ch;
}

.lane.alt {
  background: #102820;
}

.band-review {
  background: #f7efe4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.score-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 12px;
}

.score-num {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.score-meta {
  margin: 0;
  font-family: var(--ui);
  color: var(--muted);
}

.event-card {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 16px;
  max-width: 70ch;
}

.event-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.event-card div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
}

.event-card dt {
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-card dd {
  margin: 0;
}

.ask {
  border-top: 1px solid var(--line);
  padding: 0.3rem 0;
}

.ask summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.3;
  padding: 0.75rem 0;
  list-style: none;
}

.ask summary::-webkit-details-marker {
  display: none;
}

.ask summary::before {
  content: "+";
  font-family: var(--ui);
  display: inline-block;
  width: 1.2rem;
  color: var(--rust);
}

.ask[open] summary::before {
  content: "–";
}

.ask p {
  margin: 0 0 0.9rem;
  max-width: 68ch;
}

.foot {
  background: var(--ink);
  color: var(--paper-2);
  padding: 28px 0 24px;
}

.foot a {
  color: var(--gold);
}

.foot-grid {
  display: grid;
  gap: 16px;
}

.age {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ui);
  font-weight: 700;
  margin: 0 0 8px;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--ui);
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.langs a {
  color: var(--paper-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.langs-inline a,
.langs-inline a:visited {
  color: var(--text);
}

.langs-inline a[aria-current="page"] {
  color: var(--rust);
  border-bottom-color: var(--gold);
}

.foot .langs a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.legal {
  color: rgba(246, 240, 230, 0.78);
  font-size: 0.95rem;
  max-width: 70ch;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(26, 18, 14, 0.96);
  border-top: 1px solid rgba(226, 163, 34, 0.45);
}

@media (min-width: 800px) {
  .sheet {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
  }

  .catalog {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 34px;
  }

  .slip {
    margin-top: 8px;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: #241c17;
    border-bottom: 3px solid var(--gold);
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 10px 0;
  }

  .mast-cta {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .brand-name {
    display: none;
  }

  .mast-cta .btn {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }
}

@media (min-width: 981px) {
  .dock {
    display: none;
  }

  body.has-dock {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lane-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .lane-track p:last-child { display: none; }
  .lane-track p { white-space: normal; text-align: center; }
  .btn-login { animation: none; }
  .reel-track { transition: none; }
}
