@font-face {
  font-family: "Plump";
  src: url("fonts/plump.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #17110d;
  --orange: #dc5418;
  --orange-dark: #8f2e12;
  --lime: #b9de24;
  --cream: #fff6dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--orange-dark);
}

body {
  margin: 0;
  background: var(--orange);
  color: var(--ink);
  font-family: "Plump", "Arial Black", sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #dc5418 0%, #ea6e1f 38%, #afda2a 70%, #f4c760 100%);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, #000 0 0.7px, transparent 0.8px 4px),
    repeating-linear-gradient(13deg, transparent 0 7px, rgb(255 255 255 / 0.25) 8px 9px);
  background-size: 9px 11px, 19px 17px;
}

.hero {
  position: relative;
  min-height: 1180px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  background: #dc5418;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.03);
  animation: swamp-breathe 7s ease-in-out infinite;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(220 84 24 / 0.2) 0%, transparent 25%, transparent 72%, #241008 100%),
    radial-gradient(circle at 50% 9%, rgb(255 244 202 / 0.45), transparent 30%);
}

.title-lockup {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  padding-top: clamp(34px, 5vw, 76px);
  text-align: center;
  transform: rotate(-1deg);
}

.title-lockup p,
.section-kicker {
  margin: 0;
  font-size: clamp(0.78rem, 1.4vw, 1.15rem);
  letter-spacing: 0.22em;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink);
}

.title-lockup h1 {
  margin: -0.02em 0 -0.12em;
  color: var(--lime);
  font-size: clamp(5.3rem, 17vw, 13rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
  -webkit-text-stroke: clamp(2px, 0.45vw, 7px) var(--ink);
  text-shadow: 0.035em 0.055em 0 #fff6dc, 0.075em 0.1em 0 var(--ink);
}

.title-lockup span {
  display: inline-block;
  padding: 0.45em 1em 0.3em;
  color: var(--cream);
  background: var(--ink);
  font-size: clamp(1rem, 2.6vw, 1.8rem);
  letter-spacing: 0.2em;
  transform: rotate(1deg);
}

.action-dock {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 170px;
  width: min(1150px, 94vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.7vw, 20px);
  transform: translateX(-50%);
}

.bowl-button {
  aspect-ratio: 3 / 1.22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  background-image: url("assets/crounch-button-base.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(5px 8px 0 rgb(23 17 13 / 0.86));
  transition: transform 180ms ease, filter 180ms ease;
}

.bowl-button:nth-child(even) {
  transform: rotate(1.5deg);
}

.bowl-button:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.bowl-button:hover,
.bowl-button:focus-visible {
  transform: translateY(-8px) rotate(0deg) scale(1.04);
  filter: drop-shadow(5px 12px 0 rgb(23 17 13 / 0.86));
  outline: none;
}

.bowl-button strong {
  font-size: clamp(1.4rem, 3.2vw, 2.7rem);
  line-height: 0.9;
}

.bowl-button small {
  margin-top: 0.32em;
  color: var(--orange-dark);
  font-size: clamp(0.55rem, 1vw, 0.82rem);
  letter-spacing: 0.16em;
}

.ca-plank {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 77px;
  width: min(900px, 88vw);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px clamp(18px, 3vw, 34px);
  border: 4px solid var(--ink);
  border-radius: 3px 11px 5px 8px;
  color: var(--cream);
  background: #59311d;
  box-shadow: 7px 8px 0 var(--ink);
  cursor: pointer;
  transform: translateX(-50%) rotate(-0.6deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ca-plank:hover,
.ca-plank:focus-visible {
  transform: translate(-50%, 4px) rotate(0deg);
  box-shadow: 4px 4px 0 var(--ink);
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.ca-plank span {
  overflow: hidden;
  font-size: clamp(0.78rem, 1.7vw, 1.05rem);
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-plank strong {
  flex: none;
  color: var(--lime);
}

.scroll-note {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 50%;
  color: var(--cream);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
  animation: bob 1.2s ease-in-out infinite alternate;
}

.crunch-marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-block: 5px solid var(--ink);
  color: var(--ink);
  background: var(--lime);
  transform: rotate(-0.5deg) scale(1.01);
}

.crunch-marquee div {
  width: max-content;
  padding: 17px 0 12px;
  font-size: clamp(1rem, 2.4vw, 1.65rem);
  letter-spacing: 0.08em;
  animation: marquee 19s linear infinite;
}

.lore {
  position: relative;
  padding: clamp(90px, 11vw, 170px) max(5vw, calc((100vw - 1280px) / 2));
  color: var(--cream);
  background: linear-gradient(180deg, #241008 0%, #592616 55%, #8f2e12 100%);
}

.lore::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 17% 16%, #ffbd5f 0 2px, transparent 3px);
  background-size: 31px 29px;
}

.lore-intro,
.pantry-scene,
.chapter-list {
  position: relative;
  z-index: 1;
}

.lore-intro {
  width: min(900px, 100%);
  margin: 0 auto clamp(55px, 7vw, 90px);
  text-align: center;
}

.lore h2,
.trail h2,
.chart-zone h2 {
  margin: 0.15em 0;
  font-size: clamp(3.1rem, 8vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lore h2 {
  color: var(--lime);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 6px 7px 0 #000;
}

.lore-lede {
  margin: 1.7rem auto 0;
  max-width: 650px;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.5;
}

.pantry-scene {
  width: min(1100px, 100%);
  margin: 0 auto clamp(70px, 10vw, 140px);
  border: 6px solid var(--ink);
  background: var(--orange);
  box-shadow: 13px 15px 0 #000;
  transform: rotate(0.7deg);
}

.pantry-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pantry-scene p {
  margin: 0;
  padding: 18px 20px 14px;
  border-top: 5px solid var(--ink);
  color: var(--ink);
  background: var(--lime);
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  text-align: center;
}

.chapter-list {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.chapter-list li {
  display: grid;
  grid-template-columns: clamp(78px, 10vw, 130px) 1fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  padding: clamp(34px, 5vw, 65px) 0;
  border-top: 3px dashed rgb(255 246 220 / 0.55);
}

.chapter-list li:last-child {
  border-bottom: 3px dashed rgb(255 246 220 / 0.55);
}

.chapter-list > li > span {
  color: var(--lime);
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 0.8;
  -webkit-text-stroke: 2px var(--ink);
}

.chapter-list h3,
.trail h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3.5vw, 2.7rem);
  line-height: 1;
}

.chapter-list p,
.trail li p {
  margin: 0;
  max-width: 720px;
  color: #f6d8ba;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  line-height: 1.65;
}

.trail {
  position: relative;
  padding: clamp(100px, 12vw, 180px) max(6vw, calc((100vw - 1180px) / 2));
  background: var(--lime);
  border-block: 7px solid var(--ink);
}

.trail header {
  max-width: 840px;
  margin-bottom: clamp(55px, 8vw, 110px);
}

.trail .section-kicker {
  color: var(--orange-dark);
  text-shadow: none;
}

.trail h2 {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 7px 8px 0 var(--cream);
}

.trail header > p:last-child {
  max-width: 620px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.trail ol {
  position: relative;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trail ol::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: clamp(34px, 5vw, 55px);
  width: 7px;
  background: var(--ink);
  transform: rotate(0.8deg);
}

.trail li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(70px, 10vw, 110px) 1fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.trail li > span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 6px solid var(--ink);
  border-radius: 50%;
  color: var(--cream);
  background: var(--orange);
  box-shadow: 5px 6px 0 var(--cream);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.trail li p {
  color: #334009;
}

.chart-zone {
  padding: clamp(100px, 12vw, 180px) max(4vw, calc((100vw - 1260px) / 2));
  color: var(--cream);
  background: #20100a;
}

.chart-zone header {
  margin-bottom: clamp(35px, 5vw, 65px);
  text-align: center;
}

.chart-zone h2 {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--cream);
  text-shadow: 7px 7px 0 #000;
}

.chart-shell {
  overflow: hidden;
  min-height: 540px;
  border: 7px solid var(--cream);
  border-radius: 9px 3px 12px 4px;
  background: #0e0907;
  box-shadow: 13px 14px 0 var(--orange);
}

.chart-shell iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}

footer {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 60px 20px;
  border-top: 7px solid var(--ink);
  color: var(--ink);
  text-align: center;
  background: var(--orange);
}

footer p {
  margin: 0;
  color: var(--lime);
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 7px 8px 0 var(--cream);
}

footer strong {
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
}

footer span {
  padding: 10px 18px 7px;
  color: var(--cream);
  background: var(--ink);
}

@keyframes swamp-breathe {
  0%,
  100% {
    transform: scale(1.015) translateY(0);
  }
  50% {
    transform: scale(1.035) translateY(-6px);
  }
}

@keyframes bob {
  to {
    transform: translate(-50%, 7px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 1060px;
  }

  .title-lockup {
    padding-top: 34px;
  }

  .title-lockup h1 {
    font-size: clamp(5rem, 23vw, 8.6rem);
  }

  .action-dock {
    bottom: 175px;
    grid-template-columns: repeat(2, 1fr);
    width: min(540px, 94vw);
    gap: 6px 10px;
  }

  .bowl-button {
    aspect-ratio: 3.1 / 1;
  }

  .ca-plank {
    bottom: 70px;
  }

  .chapter-list li {
    grid-template-columns: 70px 1fr;
  }

}

@media (max-width: 480px) {
  .hero {
    min-height: 930px;
  }

  .title-lockup p {
    font-size: 0.62rem;
  }

  .title-lockup span {
    font-size: 0.85rem;
  }

  .action-dock {
    bottom: 164px;
  }

  .bowl-button strong {
    font-size: 1.28rem;
  }

  .bowl-button small {
    font-size: 0.5rem;
  }

  .ca-plank {
    min-height: 55px;
    padding: 12px 13px;
  }

  .ca-plank span {
    font-size: 0.64rem;
  }

  .ca-plank strong {
    font-size: 0.72rem;
  }

  .chapter-list li {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chapter-list > li > span {
    font-size: 4rem;
  }

  .trail ol::before {
    left: 34px;
  }

  .trail li {
    grid-template-columns: 70px 1fr;
    gap: 18px;
  }

  .chart-shell {
    min-height: 480px;
  }
}
