*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #17211b;
  --pitch: #122018;
  --pitch-deep: #0e1913;
  --turf: #145c36;
  --turf-hot: #1f7a49;
  --cream: #f4efe4;
  --paper: #fbf8f2;
  --sand: #efe7d8;
  --brass: #a67c3d;
  --brass-2: #e4c27a;
  --line: #e2d8c6;
  --muted: #3d4942;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Sora", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--turf); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

::selection { background: var(--brass-2); 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; }

.readbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}

.readbar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
}

.ticker {
  background: var(--pitch-deep);
  color: var(--cream);
  overflow: hidden;
  border-bottom: 3px solid var(--brass-2);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker.slow .ticker-track { animation-duration: 36s; }

.ticker.reverse .ticker-track { animation-direction: reverse; }

.ticker p {
  margin: 0;
  padding: 9px 28px 9px 16px;
  font-family: var(--cond);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mast {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 16px;
}

@media (min-width: 980px) {
  .mast {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

.mast-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--cond);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.langs { display: flex; gap: 2px; align-items: center; }

.langs a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  padding: 4px 6px;
}

.langs a[aria-current="page"] {
  color: var(--turf);
  box-shadow: inset 0 -2px 0 var(--turf);
}

.mast-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  flex: 1 1 0;
  text-align: center;
}

.btn-in { background: var(--turf); color: #fff; }
.btn-in:hover { background: #0f4528; color: #fff; }
.btn-up { background: var(--brass-2); color: #24180a; }
.btn-up:hover { background: #efd092; color: #24180a; }
.btn:active { transform: translateY(1px); }

.hostline {
  margin: 0;
  background: var(--pitch);
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #d7dece;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dbe78;
  box-shadow: 0 0 0 0 rgba(61, 190, 120, 0.7);
  animation: ping 2.2s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 190, 120, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(61, 190, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 190, 120, 0); }
}

.hostline a {
  color: var(--brass-2);
  font-family: var(--cond);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.hostline a:hover { text-decoration: underline; }

@media (min-width: 980px) {
  .mast-grid {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 18px;
  }
  .brandrow { grid-column: 1; grid-row: 1; }
  .hostline { grid-column: 2; grid-row: 1; }
  .mast-actions { grid-column: 3; grid-row: 1; }
  .mast-actions .btn { flex: 0 0 auto; min-width: 148px; }
}

@media (max-width: 380px) {
  .btn { font-size: 0.95rem; padding: 0 8px; }
}

.slider { position: relative; }

.slider-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.on-pitch {
  background-color: var(--pitch);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 42px,
    rgba(228, 194, 122, 0.08) 42px,
    rgba(228, 194, 122, 0.08) 43px
  );
  color: var(--cream);
}

.slide { display: none; }

.slide.is-on {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 26px 18px 74px;
}

html:not(.js) .slide {
  display: block;
  margin: 0 16px 12px;
  padding-bottom: 16px;
}

.kicker {
  margin: 0;
  font-family: var(--cond);
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--brass-2);
}

.sheet .kicker,
.on-paper .kicker { color: var(--turf); }

.slide-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.slide p { margin: 0; max-width: 40rem; }

.sl-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sl-nav button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(228, 194, 122, 0.55);
  background: rgba(18, 32, 24, 0.28);
  color: var(--cream);
  font-family: var(--cond);
  font-size: 1.35rem;
  cursor: pointer;
}

.dots { display: flex; margin-left: auto; }

.dot {
  width: 36px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(228, 194, 122, 0.4);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.dot[aria-current="true"]::before {
  background: var(--brass-2);
  transform: translate(-50%, -50%) scale(1.3);
}

.sl-pause { font-size: 0.95rem !important; padding: 0 10px; }

.on-paper {
  background: transparent;
  color: var(--ink);
  margin-top: 8px;
}

.on-paper .slider-inner {
  background: #f7f1e4;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.on-paper .sl-nav button {
  border-color: #cbb992;
  color: var(--ink);
  background: #fff;
}

.on-paper .dot::before { background: #d3c9b6; }
.on-paper .dot[aria-current="true"]::before { background: var(--turf); }

.compact .slide.is-on { min-height: 168px; }

@media (min-width: 800px) {
  .slide.is-on { min-height: 280px; padding: 40px 8px 78px; }
  .compact .slide.is-on { min-height: 190px; padding-left: 22px; padding-right: 22px; }
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-family: var(--cond);
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}

.crumb a { text-decoration: none; }
.crumb li[aria-current="page"] { color: var(--muted); }

.crumb li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #8a8172;
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
  margin: 0;
}

.jumps a {
  flex: 0 0 auto;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.jumps a:hover { border-color: var(--turf); color: var(--turf); }

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 18px 32px;
}

@media (min-width: 720px) {
  .sheet { padding: 40px 46px 48px; }
}

.sheet h1,
.pitchband h2,
.sheet h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  scroll-margin-top: 110px;
}

.sheet h1 {
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  margin: 0 0 8px;
}

.deck {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 8px;
}

.byline {
  font-family: var(--cond);
  letter-spacing: 0.04em;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0;
}

.sheet h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 2.1rem 0 0.55rem;
}

.sheet h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.3;
  margin: 1.45rem 0 0.35rem;
  scroll-margin-top: 110px;
}

.sheet p { margin: 0.75rem 0; }

.lead::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.25rem;
  line-height: 0.8;
  padding: 8px 8px 0 0;
  color: var(--turf);
  font-weight: 600;
}

.sheet ul,
.sheet ol { margin: 0.6rem 0 0.8rem; padding-left: 1.25rem; }
.sheet li { margin: 0.4rem 0; }

.note {
  background: #f3ead4;
  border-left: 4px solid var(--brass);
  padding: 12px 14px;
  margin: 16px 0;
}

blockquote.pull {
  margin: 1.15rem 0;
  padding: 0 0 0 14px;
  border-left: 4px solid var(--turf);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}

.tablewrap { overflow-x: auto; margin: 14px 0; }

table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.coverfig { margin: 16px 0 6px; }
.coverfig img { border-radius: 12px; width: 100%; height: auto; }
.coverfig figcaption {
  font-family: var(--cond);
  letter-spacing: 0.05em;
  color: var(--muted);
  font-size: 1rem;
  margin-top: 6px;
}

.sheet-cta {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.sheet-cta .btn { flex: 1; }

.pitchband {
  background: var(--pitch);
  color: var(--cream);
  padding: 36px 0;
  margin: 8px 0 18px;
}

.pitchband h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--cream); }

.score-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin: 8px 0 12px;
}

.score-num {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(4.2rem, 12vw, 6.4rem);
  line-height: 0.8;
  color: var(--brass-2);
  margin: 0;
}

.score-meta { margin: 0 0 6px; font-family: var(--sans); font-size: 0.95rem; color: #d7dece; }

.stars { position: relative; display: inline-block; color: rgba(244, 239, 228, 0.28); font-size: 1.35rem; letter-spacing: 3px; }
.stars::before,
.stars i::before { content: "★★★★★"; font-style: normal; }
.stars i {
  position: absolute;
  left: 0;
  top: 0;
  width: 76%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--brass-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.split div {
  border: 1px solid rgba(228, 194, 122, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
}

.split h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; color: var(--brass-2); }
.split ul { margin: 0; padding-left: 1.1rem; }
.split li { margin: 0.3rem 0; }

@media (min-width: 700px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.eventbox {
  border: 1px dashed var(--brass);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbf6ea;
}

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.35;
}
.faq details p { margin: 8px 0 4px; }

.foot {
  background: var(--pitch-deep);
  color: #d9d0c2;
  padding: 28px 16px 40px;
  font-size: 1rem;
}

.foot a { color: var(--brass-2); }
.foot .langs a { color: #d9d0c2; text-decoration: none; }
.foot .langs a[aria-current="page"] { color: var(--brass-2); box-shadow: inset 0 -2px 0 var(--brass-2); }
.foot-inner { max-width: 820px; margin: 0 auto; }
.foot p { margin: 0.55rem 0; }

.dock { display: none; }

@media (max-width: 820px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 25, 19, 0.97);
    border-top: 1px solid rgba(228, 194, 122, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; display: block; width: auto; }
  .ticker-track p { white-space: normal; }
  .ticker-track p[aria-hidden="true"] { display: none; }
  .live i { animation: none; }
  .btn:active { transform: none; }
}
