html { scroll-behavior: smooth; }

/* Homepage-specific layout. Shared chrome lives in chrome.css + tokens.css. */

.hero {
  padding: 48px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
  color: var(--ink);
}

.hero .deck {
  margin: 0 0 26px;
  max-width: 32em;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-place {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--raise), var(--edge);
  background:
    linear-gradient(160deg, rgba(18, 20, 18, 0.18) 0%, rgba(18, 20, 18, 0.42) 100%),
    linear-gradient(135deg, #5a7a62 0%, #3d5c48 38%, #2a4534 68%, #1a2e22 100%);
}

.hero-place img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.place-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(243, 241, 236, 0.92);
  box-shadow: var(--raise-sm), var(--edge);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.place-badge span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-soft);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.place-credit {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted-soft);
  letter-spacing: 0;
  line-height: 1.35;
  max-width: 18em;
}

.place-strip {
  padding: 8px 0 36px;
}

.place-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.place-tile {
  position: relative;
  min-height: 140px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--raise-sm), var(--edge);
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease;
}

.place-tile:active {
  transform: translateY(1px);
}

.place-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.place-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(18, 20, 18, 0.55) 100%);
}

.place-tile-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f7f5f1;
}

.live-guides {
  padding: 20px 0 32px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.open-card {
  background: var(--raised);
  border-radius: var(--r);
  box-shadow: var(--raise), var(--edge);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.open-media {
  height: 200px;
  position: relative;
  background: linear-gradient(145deg, #6b8472, #3f5a48 55%, #2c4034);
}

.open-media.dest {
  background: linear-gradient(150deg, #7a8f9a 0%, #4a6670 45%, #2e464e 100%);
}

.open-media.course {
  background: linear-gradient(150deg, #8a9a78 0%, #5a704c 50%, #354832 100%);
}

.open-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.open-body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.open-kind {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-soft);
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}

.open-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.open-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

.open-foot {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.editorial {
  padding: 12px 0 36px;
}

.editorial-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  align-items: stretch;
  background: var(--raised);
  border-radius: 22px;
  box-shadow: var(--raise), var(--edge);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.editorial-copy {
  padding: 28px 28px 28px 32px;
}

.editorial-copy .kicker {
  margin-bottom: 10px;
}

.editorial-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.editorial-copy p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
}

.editorial-foot {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.editorial-media {
  position: relative;
  min-height: 280px;
  height: 100%;
  background: linear-gradient(150deg, #7a8f9a 0%, #4a6670 45%, #2e464e 100%);
}

.editorial-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coming-next {
  padding: 8px 0 40px;
}

.coming-next .section-head h2 {
  font-size: 22px;
  color: var(--muted);
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.coming-chip {
  background: var(--raised-hi);
  border-radius: var(--r-sm);
  padding: 16px 14px;
  box-shadow: var(--recess);
  text-align: center;
}

a.coming-chip {
  display: block;
  text-decoration: none;
  transition: transform 140ms ease;
}

a.coming-chip:hover {
  transform: translateY(-1px);
}

a.coming-chip.is-live span {
  color: var(--accent);
}

a.coming-chip.is-live small {
  color: var(--accent);
  opacity: 0.85;
}

.coming-chip span {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.coming-chip small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-soft);
}

.track {
  padding: 28px 0 36px;
}

.track-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.18fr;
  gap: 32px;
  align-items: start;
}

.track-grid > * {
  min-width: 0;
}

.track-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.track-copy p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.track-map-proof {
  background: var(--raised);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--raise), var(--edge);
  min-width: 0;
  max-width: 100%;
}

.track-map-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-soft);
  letter-spacing: 0.02em;
}

.example-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--ground);
}

.track-map-frame {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--recess);
  background: var(--ground);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 3;
  max-height: 420px;
  min-height: 280px;
}

.track-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: top;
}

.track-map-region-bg {
  fill: rgba(247, 245, 241, 0.88);
  stroke: rgba(18, 20, 18, 0.08);
  stroke-width: 1;
}

.track-map-region {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.02em;
}

.track-map-pins {
  pointer-events: none;
}

.track-map-pin {
  filter: drop-shadow(0 2px 4px rgba(18, 20, 18, 0.38));
}

.track-map-pin-shape {
  stroke-width: 2.25;
  paint-order: stroke fill;
}

.track-map-pin-glyph {
  color: #fff;
  pointer-events: none;
}

.track-map-pin-glyph svg {
  overflow: visible;
}

.track-map-pin.not-played .track-map-pin-glyph {
  color: rgba(255, 255, 255, 0.95);
}

.track-map-pin.played .track-map-pin-shape {
  fill: #0b8a52;
  stroke: #ffffff;
}

.track-map-pin.wishlist .track-map-pin-shape {
  fill: #ea7808;
  stroke: #ffffff;
}

.track-map-pin.not-played .track-map-pin-shape {
  fill: #4a5d78;
  stroke: #ffffff;
}

.track-map-legend {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: rgba(247, 245, 241, 0.94);
  border-radius: 12px;
  box-shadow: var(--raise-sm), var(--edge);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 128px;
  pointer-events: none;
}

.track-map-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  color: var(--ink);
}

.track-map-legend-icon {
  position: relative;
  width: 18px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-map-legend-icon svg {
  width: 16px;
  height: 20px;
}

.track-map-legend-glyph {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
}

.track-map-legend-glyph svg {
  width: 10px;
  height: 10px;
}

.track-map-legend-icon.played .track-map-pin-shape {
  fill: #0b8a52;
  stroke: #ffffff;
}

.track-map-legend-icon.wishlist .track-map-pin-shape {
  fill: #ea7808;
  stroke: #ffffff;
}

.track-map-legend-icon.not-played .track-map-pin-shape {
  fill: #4a5d78;
  stroke: #ffffff;
}

.track-stamp-row {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.page .status-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  line-height: 1;
}

.page .status-stamp-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.page .status-stamp.played {
  background: rgba(15, 92, 58, 0.16);
  color: #084a2f;
  box-shadow: inset 0 0 0 1px rgba(15, 92, 58, 0.34);
}

.page .status-stamp.played .status-stamp-icon {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: var(--raise-sm);
}

.page .status-stamp.wishlist {
  background: rgba(196, 122, 15, 0.16);
  color: #8a4f06;
  box-shadow: inset 0 0 0 1px rgba(196, 122, 15, 0.4);
}

.page .status-stamp.wishlist .status-stamp-icon {
  background: linear-gradient(180deg, #d4921a 0%, #b45309 100%);
  color: #fff;
  box-shadow: var(--raise-sm);
}

.page .status-stamp.not-played {
  background: transparent;
  color: var(--muted-soft);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.28);
}

  .page .status-stamp.not-played .status-stamp-icon.dim {
    background: transparent;
    color: var(--muted-soft);
    opacity: 0.75;
  }

.open-card:active,
.editorial-panel:active {
  transform: translateY(1px);
}

@media (max-width: 900px) {
  .hero-grid,
  .track-grid,
  .editorial-panel {
    grid-template-columns: 1fr;
  }

  .track-map-proof {
    order: -1;
  }

  .hero-place {
    min-height: 320px;
  }

  .open-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coming-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-media {
    min-height: 220px;
  }

}

@media (max-width: 560px) {
  .open-grid,
  .coming-grid {
    grid-template-columns: 1fr;
  }

  .track-map-proof {
    padding: 14px;
  }

  .track-map-frame {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    gap: 10px;
  }

  .track-map-canvas {
    aspect-ratio: 4 / 3;
    min-height: 240px;
    height: auto;
    border-radius: var(--r-sm);
    box-shadow: var(--recess);
    background: var(--ground);
  }

  .track-map-legend {
    position: static;
    min-width: 0;
    align-self: flex-start;
    margin: 0;
  }

  .track-stamp-row {
    gap: 8px;
  }
}
