/* The sample season page (/sample-season), built by scripts/prerender.mjs from
   src/components/SampleSeason.tsx. A plain page outside the app, like the
   legal pages, in the app's palette (src/index.css). */
:root {
  --ink: #2b2018;
  --ink-soft: #6b5d4f;
  --paper: #faf6f0;
  --surface: #fffdfb;
  --border: #ede4d8;
  --accent: #cc6428;
  --chart-1: #cc6428;
  --chart-2: #2f6f9f;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: ui-rounded, 'SF Pro Rounded', var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
}

a {
  color: var(--accent);
}

.sample {
  max-width: 720px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px
    max(16px, env(safe-area-inset-left));
}

.sample__home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.sample__eyebrow,
.sample__story-eyebrow {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.sample__title {
  margin: 4px 0 12px;
  font: 700 34px/1.15 var(--font-display);
}

.sample__invented {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.sample__lede {
  margin: 0 0 16px;
}

.sample__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-weight: 600;
}

.sample__jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.sample__section {
  margin-top: 40px;
}

.sample__section-title {
  margin: 0 0 8px;
  font: 700 26px/1.2 var(--font-display);
}

.sample__subtitle {
  margin: 32px 0 8px;
  font: 700 21px/1.3 var(--font-display);
}

.sample__section-intro,
.sample__aside,
.sample__note {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.sample__note {
  font-size: 15px;
}

.sample__aside {
  margin-top: 12px;
  font-size: 15px;
}

/* The story, set like the app's story screen: a page to read. */
.sample__story {
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.sample__story-eyebrow {
  margin: 0;
}

.sample__story-title {
  margin: 4px 0 16px;
  font: 700 28px/1.2 var(--font-display);
}

.sample__paragraph {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.65;
}

/* A chapter title inside the story (components/StoryText.tsx). */
.story-text__chapter {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  color: #b4561f;
}

.story-text__section:first-child .story-text__chapter {
  margin-top: 12px;
}

.sample__sources {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--ink-soft);
}

.sample__sources summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.sample__sources ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

.sample__sources li {
  margin-bottom: 8px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline__entry {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 0 18px;
}

.timeline__entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-soft);
}

.timeline__entry--game::before {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline__entry--game {
  padding-bottom: 4px;
}

.timeline__date {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.timeline__game {
  margin: 0;
  font: 700 19px/1.3 var(--font-display);
}

.timeline__result {
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink-soft);
}

.timeline__tournament {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.timeline__firsts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 14px;
}

.timeline__firsts li {
  margin: 0 0 2px;
}

.timeline__firsts span[aria-hidden] {
  color: var(--accent);
}

.timeline__minute {
  color: var(--ink-soft);
}

.moment {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.moment__meta {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.moment__question {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.moment__text {
  margin: 0;
}

/* Momentum */
.momentum-shape {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 6px;
  overflow: visible;
}

#numbers .momentum-shape {
  height: 160px;
}

.momentum-shape__zero {
  stroke: var(--ink-soft);
  stroke-opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

.momentum-shape__half {
  stroke: var(--border);
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.momentum-shape__line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.momentum-shape__line--us {
  stroke: var(--chart-1);
}

.momentum-shape__line--them {
  stroke: var(--chart-2);
}

.momentum-shape__fill--us {
  fill: var(--chart-1);
  fill-opacity: 0.18;
}

.momentum-shape__fill--them {
  fill: var(--chart-2);
  fill-opacity: 0.18;
}

.momentum-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.momentum-key__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.momentum-key__swatch {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

.momentum-key__swatch--us {
  background: var(--chart-1);
}

.momentum-key__swatch--them {
  background: var(--chart-2);
}

.momentum-axis {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.formula {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
}

.formula p {
  margin: 0 0 8px;
}

.formula ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

/* Tiles, like the app's insights card. */
.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tile__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}

.tile__value {
  font: 700 28px/1.2 var(--font-display);
  margin: 4px 0 2px;
}

.tile__sample {
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Footer */
.sample__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.sample__cta-text {
  margin: 0 0 12px;
}

.sample__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sample__legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 20px;
  font-size: 15px;
}

.sample__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
