:root {
  color-scheme: light;
  --paper: #fff7ef;
  --paper-strong: #fffdf9;
  --ink: #382620;
  --muted: #887168;
  --line: rgba(90, 54, 42, 0.16);
  --peach: #ff9d72;
  --peach-soft: #ffd4b7;
  --rose: #d65b66;
  --sage: #82906e;
  --night: #201817;
  --shadow: 0 28px 90px rgba(82, 49, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(130, 144, 110, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(130, 144, 110, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(255, 157, 114, 0.24), transparent 32rem),
    radial-gradient(circle at 100% 28%, rgba(214, 91, 102, 0.14), transparent 30rem),
    var(--paper);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.topline {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1180px, calc(100% - 28px));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px;
  background: rgba(255, 247, 239, 0.72);
  box-shadow: 0 18px 70px rgba(65, 38, 29, 0.14);
  backdrop-filter: blur(18px);
}

.brand,
.topline nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-right: 12px;
  font-weight: 900;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), #ffe8d2);
  color: #4b2a23;
}

.topline nav {
  gap: 4px;
}

.topline nav a {
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

.topline nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  background: #17110f;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo,
.final-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-photo {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(23, 17, 15, 0.16), transparent 42%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 150px 0 92px;
  color: #fff7ef;
}

.hero-inner-overlay {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eyebrow,
.section-kicker,
.section-title span,
.support-copy span,
.game-label {
  display: block;
  margin-bottom: 13px;
  color: var(--peach);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.story-copy h2,
.section-title h2,
.achievement-card h2,
.twitch-panel h2,
.support-copy h2,
.final-content h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 770px;
  font-size: clamp(4.4rem, 10vw, 9.4rem);
  line-height: 0.87;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 32px;
  color: rgba(255, 247, 239, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row a,
.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.social-row a,
.primary-link {
  background: linear-gradient(135deg, var(--peach), #ffe1c7);
  color: #42241f;
  box-shadow: 0 20px 48px rgba(255, 125, 92, 0.22);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.social-row a:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-3px);
}

.social-row-dark a {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(82, 49, 37, 0.1);
}

.scroll-note {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(255, 247, 239, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

section:not(.hero):not(.final-section) {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.opening-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  margin-top: -28px;
}

.opening-copy,
.episode-card,
.diary-note,
.diary-stack,
.chapter-card {
  border: 1px solid rgba(90, 54, 42, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.9), rgba(255, 238, 222, 0.72)),
    rgba(255, 253, 249, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.opening-copy {
  border-radius: 36px;
  padding: clamp(26px, 4vw, 46px);
}

.opening-copy h2,
.diary-note h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.opening-copy p,
.diary-note p,
.episode-card p,
.chapter-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.episode-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(24px, 3.4vw, 36px);
  color: #fff7ef;
  background:
    linear-gradient(145deg, rgba(37, 27, 26, 0.96), rgba(84, 49, 43, 0.86)),
    #251b1a;
}

.episode-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -36% 38%;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 114, 0.32), transparent 68%);
  pointer-events: none;
}

.episode-card > span,
.chapter-card span,
.diary-stack span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--peach);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.episode-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.episode-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 247, 239, 0.74);
}

.episode-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.episode-stats strong {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.episode-stats b {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.episode-stats small {
  color: rgba(255, 247, 239, 0.64);
  font-size: 0.78rem;
  line-height: 1.25;
}

.chapters-section {
  padding-top: 52px !important;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.chapter-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.chapter-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 157, 114, 0.18);
}

.chapter-card:hover,
.chapter-card.is-active {
  border-color: rgba(214, 91, 102, 0.38);
  transform: translateY(-7px);
}

.chapter-card h3 {
  margin: 44px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.chapter-card p {
  margin-bottom: 0;
}

.live-diary-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 18px;
  padding-top: 26px !important;
}

.diary-note,
.diary-stack {
  border-radius: 34px;
  padding: clamp(24px, 4vw, 38px);
}

.diary-stack {
  display: grid;
  gap: 12px;
  align-content: stretch;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 225, 203, 0.74)),
    rgba(255, 253, 249, 0.8);
}

.diary-stack div {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.diary-stack div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.diary-stack strong {
  font-size: 1.22rem;
  line-height: 1.25;
}

.story-layout,
.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.story-copy h2,
.section-title h2,
.achievement-card h2,
.twitch-panel h2,
.support-copy h2 {
  font-size: clamp(2.55rem, 5vw, 5.2rem);
  line-height: 0.98;
}

.story-text {
  display: grid;
  max-width: 720px;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.diary-photo,
.support-photo {
  margin: 0;
}

.diary-photo img,
.support-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.diary-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.values-grid,
.journey-grid,
.status-grid,
.clips-grid,
.quest-grid {
  display: grid;
  gap: 16px;
}

.values-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.value-card,
.goal-card,
.status-card,
.clip-card,
.quest-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.76);
  box-shadow: 0 18px 70px rgba(82, 49, 37, 0.08);
  backdrop-filter: blur(16px);
}

.value-card {
  min-height: 250px;
  padding: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.value-card:hover {
  border-color: rgba(255, 157, 114, 0.6);
  transform: translateY(-8px);
}

.value-card .icon {
  display: block;
  margin-bottom: 34px;
  font-size: 2rem;
}

.value-card h3,
.goal-card h3,
.clip-card h3,
.quest-card h3,
.faq-question {
  margin: 0;
  font-size: 1rem;
}

.value-card p,
.goal-card p,
.status-card span,
.clip-card p,
.quest-card p,
.support-copy p,
.twitch-panel p,
.clips-head p,
.achievement-card p {
  color: var(--muted);
  line-height: 1.58;
}

.journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goal-card {
  padding: 22px;
}

.goal-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.goal-card .icon {
  font-size: 1.8rem;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(56, 38, 32, 0.1);
}

.progress i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--peach));
}

.achievement-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(255, 157, 114, 0.38);
  border-radius: 38px;
  padding: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 157, 114, 0.26), transparent 22rem),
    #251b1a;
  color: #fff7ef;
  box-shadow: var(--shadow);
}

.achievement-card p {
  max-width: 620px;
  color: rgba(255, 247, 239, 0.72);
}

.days-counter {
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.days-counter strong {
  font-size: 4.3rem;
  line-height: 0.82;
}

.days-counter span {
  color: rgba(255, 247, 239, 0.72);
  font-weight: 900;
}

.milestones {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.milestones span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 247, 239, 0.72);
  font-weight: 900;
}

.milestones span.is-done {
  background: var(--peach);
  color: #40241f;
}

.status-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.status-card {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  padding: 20px;
}

.status-card strong {
  font-size: 1.35rem;
}

.twitch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 34px;
  padding: 30px;
  background: #251b1a;
  color: #fff7ef;
  box-shadow: var(--shadow);
}

.twitch-panel.is-live {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 64, 88, 0.42), transparent 22rem),
    #251b1a;
}

.twitch-panel.is-live .section-kicker::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4058;
  box-shadow: 0 0 0 7px rgba(255, 64, 88, 0.16);
}

.clips-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 16px;
}

.clips-head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.clips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clip-card {
  overflow: hidden;
}

.clip-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.clip-card div {
  padding: 16px;
}

.support-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quest-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.45fr) minmax(150px, 0.32fr);
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: var(--shadow);
}

.quest-form h3,
.quest-form p {
  margin: 0;
}

.quest-form div {
  grid-row: span 2;
}

.quest-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quest-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-form input,
.quest-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  outline: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.quest-form input {
  min-height: 48px;
  padding: 0 14px;
}

.quest-form textarea {
  min-height: 104px;
  resize: vertical;
  padding: 14px;
}

.quest-form .wide {
  grid-column: 2 / -1;
}

.quest-card {
  padding: 22px;
}

.quest-card span {
  display: inline-flex;
  margin-bottom: 28px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 157, 114, 0.16);
  color: var(--rose);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.final-section {
  position: relative;
  display: grid;
  min-height: 78svh;
  margin-top: 70px;
  overflow: hidden;
  isolation: isolate;
}

.final-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(32, 24, 23, 0.78), rgba(32, 24, 23, 0.34), rgba(32, 24, 23, 0.18)),
    linear-gradient(0deg, rgba(32, 24, 23, 0.56), transparent 44%);
}

.final-content {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  color: #fff7ef;
}

.final-content h2 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.96;
}

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

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

@media (max-width: 1050px) {
  .values-grid,
  .journey-grid,
  .status-grid,
  .clips-grid,
  .quest-grid,
  .chapters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-layout,
  .support-section,
  .opening-section,
  .live-diary-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topline {
    top: 8px;
    width: min(100% - 18px, 460px);
  }

  .topline nav {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-photo {
    background-position: 59% center;
    background-size: cover;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(30, 20, 17, 0.2), rgba(30, 20, 17, 0.02) 72%),
      linear-gradient(90deg, rgba(30, 20, 17, 0.18), transparent);
  }

  .hero-inner {
    align-self: end;
    padding: 110px 0 76px;
  }

  .hero h1 {
    max-width: 7.2ch;
    font-size: clamp(4rem, 17vw, 5.9rem);
  }

  .social-row a,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  section:not(.hero):not(.final-section) {
    padding: 58px 0;
  }

  .story-copy h2,
  .section-title h2,
  .achievement-card h2,
  .twitch-panel h2,
  .support-copy h2 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .values-grid,
  .journey-grid,
  .status-grid,
  .clips-grid,
  .quest-grid,
  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .opening-section {
    margin-top: 0;
  }

  .opening-copy,
  .episode-card,
  .diary-note,
  .diary-stack,
  .chapter-card {
    border-radius: 24px;
  }

  .chapter-card {
    min-height: 210px;
  }

  .chapter-card h3 {
    margin-top: 26px;
  }

  .value-card {
    min-height: 0;
  }

  .achievement-card,
  .twitch-panel,
  .clips-head,
  .quest-form {
    display: grid;
  }

  .quest-form {
    grid-template-columns: 1fr;
  }

  .quest-form div,
  .quest-form .wide {
    grid-column: auto;
    grid-row: auto;
  }

  .days-counter {
    width: 148px;
    height: 148px;
  }

  .final-content h2 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }
}
