:root {
  --bg: #f6f0e7;
  --card: rgba(255, 251, 243, 0.82);
  --ink: #171717;
  --muted: #625a54;
  --line: rgba(23, 23, 23, 0.1);
  --accent: #f06438;
  --cool: #0f6b74;
  --shadow: 0 26px 80px rgba(67, 42, 28, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 100, 56, 0.14), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(15, 107, 116, 0.12), transparent 18%),
    linear-gradient(180deg, #f8f3ea 0%, #efe6da 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.overview-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 56px;
}

.overview-hero,
.version-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.overview-hero {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cool);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.overview-hero h1,
.version-card h2,
.note-card h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: -0.03em;
}

.overview-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
  max-width: 12em;
}

.overview-text,
.version-card p {
  color: var(--muted);
  line-height: 1.75;
}

.overview-text {
  max-width: 46rem;
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.version-card {
  padding: 24px;
}

.version-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.version-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(240, 100, 56, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.version-card h2 {
  font-size: 2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.tag-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.version-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf2;
  font-weight: 700;
}

.chooser-notes {
  margin-top: 24px;
}

.note-card {
  padding: 28px;
}

.note-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .version-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .overview-shell {
    width: min(100% - 20px, 100%);
    padding: 20px 0 34px;
  }

  .overview-hero,
  .version-card,
  .note-card {
    border-radius: 22px;
  }

  .overview-hero {
    padding: 24px;
  }

  .overview-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.8rem);
  }

  .note-card h2 {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
