:root {
  --bg: #f6f4f1;
  --ink: #1c1917;
  --muted: #5e5852;
  --line: #e3ddd6;
  --card: #fffcf8;
  --accent: #8c3a3a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}

.skip:focus { top: 0.6rem; }

.wrap { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav { display: flex; flex-wrap: wrap; gap: 1.15rem; font-weight: 600; font-size: 0.95rem; }

nav a { text-decoration: none; }

nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

h2 {
  margin: 1.4rem 0 0.4rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.35rem;
}

h1 {
  margin: 0.3rem 0 0.6rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.kicker {
  margin: 1.6rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede, .note { color: var(--muted); max-width: 40rem; }

.ask {
  margin: 1.2rem 0 0.6rem;
  display: grid;
  gap: 0.6rem;
}

textarea {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: inherit;
  background: var(--card);
}

button, .btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  background: var(--ink);
  color: #f6f4f1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  width: fit-content;
}

button:disabled { opacity: 0.55; cursor: wait; }

.ideas { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 1.4rem; }

.ideas button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.92rem;
}

.thread { display: grid; gap: 0.7rem; margin: 0.4rem 0 2rem; }

.bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  white-space: pre-wrap;
}

.bubble b {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.story { width: min(40rem, calc(100% - 2rem)); margin: 0 auto 2.5rem; }

.story p { font-size: 1.08rem; line-height: 1.65; }

.remember {
  margin: 1.2rem 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}

.sources { color: var(--muted); font-size: 0.88rem; }

.sources a, .story a { text-decoration: underline; text-underline-offset: 0.15em; }

.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.1rem 0 0.2rem;
}

.next {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2rem;
  font-weight: 600;
}

.next a { text-decoration: underline; text-underline-offset: 0.15em; }

.list { display: grid; gap: 0.7rem; margin: 1rem 0 2.5rem; }

.gallery {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 0.75rem;
  display: block;
  background: #e7e2da;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  text-decoration: none;
}

.card:hover { border-color: var(--ink); }

.card b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 560;
  margin-bottom: 0.2rem;
}

.card span { color: var(--muted); }

.stage {
  margin: 1.2rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 1.4rem;
  align-items: end;
}

.player {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.player iframe { width: 100%; height: 100%; border: 0; display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 5.6rem;
  padding: 0.85rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.track:hover { border-color: var(--ink); }

.track b { font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: 1.05rem; }

.track span { color: var(--muted); font-size: 0.9rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.play-switch { display: flex; gap: 0.45rem; margin: 0.8rem 0; }

.play-switch button[aria-pressed="true"] { background: var(--accent); }

.board {
  width: min(360px, 100%);
  background: #1c1917;
  border-radius: 12px;
  display: block;
  touch-action: none;
}

.fact { min-height: 4.5rem; }

.pad { display: flex; gap: 0.45rem; margin-top: 0.7rem; }

.glass {
  margin: 1rem 0 1.4rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(246,244,241,0.45));
  box-shadow: inset 0 1px 0 #fff;
}

.glass img {
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #e7e2da;
}

.call {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0.4rem 0 1rem;
}

@media (max-width: 720px) {
  .stage, .path { grid-template-columns: 1fr; }
  .top { align-items: flex-start; flex-direction: column; }
}
