:root {
  --desk: #140e0a;
  --mast: #1a120c;
  --paper: #f7f1e7;
  --paper-2: #fffaf3;
  --ink: #24170f;
  --muted: #5e5146;
  --line: rgba(36, 23, 15, 0.12);
  --saffron: #e39b2b;
  --ember: #c73718;
  --pine: #145c4a;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Sora", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 176px; }

body {
  margin: 0;
  background: var(--desk);
  background-image: repeating-linear-gradient(
    -16deg,
    rgba(255, 244, 220, 0.025) 0 1px,
    transparent 1px 13px
  );
  color: #f3eadc;
  font-family: var(--ui);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; }

a { color: var(--pine); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

::selection { background: #f0c27a; color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ticker {
  height: 2.55rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.ticker-ink {
  background: #24170f;
  color: #f0d7a2;
  border-radius: 12px;
  margin: 1.6rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.ticker-group { display: flex; }

.ticker-group span {
  padding: 0 1.2rem;
  white-space: nowrap;
}

.ticker-group span::before {
  content: "●";
  margin-right: 0.7rem;
  font-size: 0.55rem;
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--mast);
  color: #f7f1e7;
  border-bottom: 1px solid rgba(240, 215, 162, 0.16);
}

.mast-inner {
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0 12px;
}

.brand {
  order: 1;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.brand-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  color: var(--saffron);
}

.langs {
  order: 2;
  display: flex;
  gap: 4px;
}

.langs a {
  color: #f0e6d6;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 7px;
  border-radius: 999px;
}

.langs a[aria-current="page"] {
  background: var(--saffron);
  color: var(--ink);
}

.mast-actions {
  order: 3;
  display: flex;
  gap: 8px;
  flex: 1 1 100%;
}

.nav {
  order: 4;
  display: flex;
  gap: 14px;
  flex: 1 1 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: #f0e6d6;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover { color: var(--saffron); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.mast-actions .btn,
.dock .btn { flex: 1; }

.btn-enter {
  background: var(--ember);
  color: #fffaf3;
  box-shadow: 0 8px 18px rgba(199, 55, 24, 0.28);
  animation: nudge 2.8s ease-in-out 1;
}

.btn-join { background: var(--saffron); color: var(--ink); }

.btn-enter:hover { background: #a82c12; color: #fffaf3; }
.btn-join:hover { background: #c98416; color: var(--ink); }
.btn:active { transform: translateY(1px); }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-2px); }
}

.sheet {
  width: min(1120px, calc(100% - 16px));
  margin: 18px auto 28px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sheet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, #f0d7a2, #c47d1a 35%, #8a5a12 60%, #e7b15a);
  background-size: 100% 220%;
  animation: sheen 10s linear infinite;
}

@keyframes sheen {
  to { background-position: 0 200%; }
}

.sheet-inner {
  padding: 22px 16px 36px 24px;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.72;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.84rem;
}

.crumbs a { text-decoration: none; }

.crumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--muted);
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a12;
}

.byline {
  margin: 0.4rem 0 0;
  font-family: var(--ui);
  font-size: 0.92rem;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.05rem, 6.4vw, 3.5rem); max-width: 18ch; }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); max-width: 22ch; }
h3 { font-size: 1.35rem; margin-top: 1.3rem; }

.hero {
  display: grid;
  gap: 22px;
  align-items: start;
}

.lede { font-size: 1.22rem; margin-top: 0.2rem; }

.lede::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.35rem;
  line-height: 0.8;
  padding: 0.12rem 0.45rem 0 0;
  color: #a86412;
  font-weight: 560;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.stamp {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 2px dashed var(--ember);
  color: var(--ember);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  transform: rotate(-8deg);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0 0.4rem;
}

.hero-actions .btn { min-height: 52px; padding-inline: 1.25rem; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.jump a {
  font-family: var(--ui);
  font-size: 0.86rem;
  text-decoration: none;
  background: #efe4d2;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
}

.stage { position: relative; }

.slide {
  display: none;
  background: #24170f;
  color: #f7f1e7;
  border-radius: 16px;
  min-height: 250px;
  padding: 22px 20px 62px;
}

.slide.is-on { display: block; }

.slide .kicker { color: #e7b15a; }

.slide h2 {
  color: #fffaf3;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  max-width: 16ch;
}

.slide p { margin: 0; color: #f0e4d4; }

.stage-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -48px;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

.stage-nav button {
  font-family: var(--ui);
  background: #fffaf3;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
}

.dot { width: 10px; padding: 0; }
.dot.is-on { width: 22px; background: var(--saffron); }
.pause { padding: 0 12px; margin-left: auto; font-weight: 600; }

.block { margin-top: 1.7rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

.prose > p,
.prose > ul,
.prose > ol,
.prose > blockquote { max-width: 68ch; }

.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--saffron);
}

blockquote p {
  margin: 0;
  font-style: italic;
  font-size: 1.38rem;
  line-height: 1.35;
  color: #3a2718;
}

.addr-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 6px solid var(--saffron);
  border-radius: 14px;
  padding: 14px 16px 16px;
  margin: 0 0 1.1rem;
}

.addr-card p { margin: 0 0 0.25rem; font-family: var(--ui); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8a5a12; }

.addr {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.02rem, 2.5vw, 1.35rem);
  color: var(--pine);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.steps {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  counter-reset: step;
  border-left: 2px solid #e7c98a;
}

.steps li {
  position: relative;
  padding: 0 0 1.15rem 1rem;
  max-width: 68ch;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #f7f1e7;
  font-family: var(--serif);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.steps strong { font-family: var(--ui); }

.table-wrap { overflow-x: auto; margin: 1rem 0; max-width: 100%; }

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.45;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: #24170f; color: #f7f1e7; font-weight: 600; }

.rail-wrap { position: relative; margin: 0.6rem 0 1.1rem; }

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 36px 12px 0;
  -webkit-overflow-scrolling: touch;
}

.rail article {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 16px;
  min-height: 168px;
  color: #f7f1e7;
}

.rail h3 { color: #fffaf3; margin: 0.35rem 0; font-size: 1.35rem; }
.rail p { margin: 0; font-family: var(--ui); font-size: 0.95rem; line-height: 1.45; }
.chip-a { background: #24170f; }
.chip-b { background: #145c4a; }
.chip-c { background: #8a3b12; }
.chip-d { background: #3d2a4a; }
.chip-e { background: #1d3d52; }
.chip-f { background: #6d2a2a; }

.rail-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 12px;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 241, 231, 0), var(--paper));
}

.hint {
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.cover { margin: 1rem 0 1.2rem; }
.cover img { width: 100%; border-radius: 12px; display: block; }
.cover figcaption,
.hint,
.byline { font-family: var(--ui); }

.cover figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 0.4rem; }

.rubric { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; max-width: 640px; }

.rubric li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 1rem;
}

.avg {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0.4rem 0 0.8rem;
}

.event-card {
  background: #24170f;
  color: #f7f1e7;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.event-when {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.15;
  color: #e7b15a;
  margin: 0;
}

.event-card p { margin: 0.35rem 0 0; }

details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  font-family: var(--ui);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  touch-action: manipulation;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-family: var(--serif);
  color: #a86412;
  font-size: 1.4rem;
  line-height: 1;
}

details[open] summary::after { content: "–"; }
details p { margin: 0.7rem 0 0.2rem; max-width: 68ch; }

.colophon {
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto 12px;
  color: #eadfcf;
  font-size: 0.92rem;
  line-height: 1.55;
}

.colophon a { color: #f0d7a2; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.age {
  width: 42px;
  height: 42px;
  border: 2px solid #f0d7a2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 14, 10, 0.96);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
  html { scroll-padding-top: 96px; }
  body { padding-bottom: 0; }
  .sheet { margin-top: 26px; border-radius: 20px; }
  .sheet::before { width: 14px; }
  .sheet-inner { padding: 34px 40px 56px 52px; }
  .mast-inner { width: min(1120px, calc(100% - 32px)); flex-wrap: nowrap; }
  .brand { order: 1; margin-right: 8px; }
  .nav { order: 2; flex: 1 1 auto; }
  .langs { order: 3; }
  .mast-actions { order: 4; flex: 0 0 auto; width: auto; }
  .mast-actions .btn { flex: 0 0 auto; min-width: 128px; }
  .hero { grid-template-columns: 1.12fr 0.88fr; gap: 28px; align-items: center; }
  .event-card { grid-template-columns: 210px 1fr; align-items: center; padding: 22px 24px; }
  .dock { display: none; }
}

@media (max-width: 899px) {
  .hint-desktop { display: none; }
}

@media (min-width: 900px) {
  .hint-mobile { display: none; }
}

@media (max-width: 420px) {
  .mast-actions .btn,
  .dock .btn {
    font-size: 0.92rem;
    padding-inline: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .sheet::before,
  .btn-enter { animation: none; }
}
