:root {
  --paper: #fbfaf6;
  --ink: #11110f;
  --soft-ink: #4c4a44;
  --faint: #d9d4ca;
  --green: #5bcf8e;
  --green-soft: #dff6e9;
  --red: #e94b3c;
  --max: 1060px;
  --radius: 8px;
  --hand: Gaegu, "Comic Sans MS", "Bradley Hand", cursive;
  --scribble: "Nanum Pen Script", Gaegu, cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--hand);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  width: min(calc(100% - 28px), var(--max));
  min-height: 74px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 12px 0;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 700;
  transform: rotate(-1deg);
}

.brand img,
.section-kicker img,
.site-footer img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

.site-nav,
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  justify-self: center;
}

.site-nav a,
.text-link,
.icon-link,
.secondary-button,
.contract-row a,
.contract-row button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--soft-ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.icon-link:hover,
.secondary-button:hover,
.contract-row a:hover,
.contract-row button:hover {
  color: var(--ink);
  background: var(--green-soft);
  transform: rotate(-1deg);
}

.icon-link {
  width: 44px;
  padding: 0;
  border-color: var(--ink);
  color: var(--ink);
}

.text-link {
  border-color: var(--faint);
}

.ghost {
  color: var(--soft-ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}

.menu-toggle span {
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 28px), var(--max));
  min-height: calc(100dvh - 74px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  margin: 0 auto;
  padding: 42px 0 76px;
}

.ticker-label,
.block-label,
.section-kicker,
.timer-line,
.meme-grid figcaption {
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.2;
}

.ticker-label {
  margin: 0 0 10px;
  color: var(--soft-ink);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--scribble);
  font-size: clamp(6.4rem, 17vw, 13.5rem);
  font-weight: 400;
  line-height: 0.72;
}

h2 {
  margin-bottom: 22px;
  font-family: var(--scribble);
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  font-weight: 400;
  line-height: 0.78;
}

p {
  color: var(--soft-ink);
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  font-weight: 300;
  line-height: 1.18;
}

.hero-line {
  max-width: 620px;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--scribble);
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 400;
  line-height: 0.8;
}

.hero-subline {
  margin-bottom: 28px;
}

.hero-actions,
.contract-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.buy-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--green-soft);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button {
  padding: 0 24px;
  transform: rotate(-1.5deg);
}

.primary-button:hover,
.buy-button:hover {
  background: var(--green);
  transform: rotate(1deg) translateY(-1px);
}

.secondary-button {
  border-color: var(--faint);
}

.hero-mark {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  transform: rotate(1.5deg);
}

.hero-mark::before {
  position: absolute;
  inset: 13px -12px -12px 13px;
  z-index: -1;
  content: "";
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.hero-mark img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  object-fit: cover;
  background: white;
}

.hero-mark span {
  display: none;
}

.intrusive-voices,
.site-voices {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.intrusive-voices {
  inset: 0;
}

.site-voices {
  inset: 0;
  z-index: 8;
}

.intrusive-voices span,
.site-voices span {
  position: absolute;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.36);
  color: var(--ink);
  background: rgba(251, 250, 246, 0.72);
  font-family: var(--scribble);
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  line-height: 0.78;
  opacity: 0;
  transform: translate3d(0, 28px, 0) rotate(-6deg) scale(0.82);
  animation: voice-pop 7.5s ease-in-out infinite;
  white-space: nowrap;
}

.intrusive-voices span:nth-child(1) {
  top: 20%;
  left: 46%;
  animation-delay: 0.1s;
}

.intrusive-voices span:nth-child(2) {
  top: 63%;
  left: 8%;
  animation-delay: 1.2s;
}

.intrusive-voices span:nth-child(3) {
  top: 8%;
  right: 8%;
  animation-delay: 2.4s;
}

.intrusive-voices span:nth-child(4) {
  right: 24%;
  bottom: 14%;
  animation-delay: 3.3s;
}

.intrusive-voices span:nth-child(5) {
  top: 48%;
  right: 0;
  animation-delay: 4.1s;
}

.intrusive-voices span:nth-child(6) {
  top: 32%;
  left: 3%;
  animation-delay: 5.2s;
}

.intrusive-voices span:nth-child(7) {
  right: 42%;
  bottom: 4%;
  animation-delay: 6s;
}

.intrusive-voices span:nth-child(8) {
  top: 76%;
  right: 9%;
  animation-delay: 6.7s;
}

.site-voices span {
  position: fixed;
  z-index: 8;
  color: rgba(17, 17, 15, 0.72);
  background: rgba(251, 250, 246, 0.66);
  font-size: clamp(1.7rem, 3.4vw, 3.8rem);
  animation-name: voice-drift;
  animation-duration: 10s;
}

.site-voices span:nth-child(1) {
  top: 16%;
  left: 4%;
  animation-delay: 0.8s;
}

.site-voices span:nth-child(2) {
  top: 26%;
  right: 5%;
  animation-delay: 2.1s;
}

.site-voices span:nth-child(3) {
  top: 44%;
  left: 9%;
  animation-delay: 3.4s;
}

.site-voices span:nth-child(4) {
  right: 12%;
  bottom: 18%;
  animation-delay: 4.8s;
}

.site-voices span:nth-child(5) {
  top: 66%;
  left: 28%;
  animation-delay: 6.1s;
}

.site-voices span:nth-child(6) {
  top: 12%;
  right: 30%;
  animation-delay: 7.3s;
}

.site-voices span:nth-child(7) {
  left: 4%;
  bottom: 8%;
  animation-delay: 8.6s;
}

.site-voices span:nth-child(8) {
  top: 54%;
  right: 3%;
  animation-delay: 9.8s;
}

.site-voices span:nth-child(9) {
  top: 78%;
  right: 22%;
  animation-delay: 11s;
}

.site-voices span:nth-child(10) {
  top: 34%;
  left: 38%;
  animation-delay: 12.2s;
}

.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: white;
  color: var(--ink);
}

.marquee.compact {
  border-top: 0;
  background: var(--green-soft);
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
  animation: marquee 18s linear infinite;
  will-change: transform;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

.marquee span {
  padding: 10px 28px;
  font-family: var(--scribble);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
  white-space: nowrap;
}

.section {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: clamp(68px, 11vw, 134px) 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--soft-ink);
}

.copy-block {
  max-width: 900px;
}

.copy-block p {
  max-width: 820px;
  margin-bottom: 18px;
}

.side-art,
.wide-art,
.comic-strip,
.meme-grid figure {
  margin: 0;
}

.side-art,
.wide-art,
.comic-strip {
  position: relative;
}

.side-art img,
.wide-art img,
.comic-strip img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  object-fit: cover;
  background: white;
}

.side-art::before,
.wide-art::before,
.comic-strip::before {
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  content: "";
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.night-art::before,
.comic-strip::before {
  inset: 0;
  border-color: var(--faint);
  background: transparent;
}

.about-art {
  transform: rotate(1.2deg);
}

.phone-art {
  align-self: center;
  transform: rotate(-1.1deg);
}

.phone-art img {
  aspect-ratio: 0.92;
  object-position: center;
}

.grid-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 7vw, 84px);
  align-items: start;
}

.steps {
  border-top: 1px solid var(--ink);
}

.steps ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  min-height: 68px;
  grid-template-columns: 54px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--scribble);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.85;
  counter-increment: steps;
}

.steps li::before {
  color: var(--soft-ink);
  content: counter(steps, decimal-leading-zero);
  font-family: var(--hand);
  font-size: 1.05rem;
}

.cycle-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 44px);
  align-items: start;
}

.block-label {
  margin-bottom: 14px;
  color: var(--soft-ink);
}

.cycle-copy strong {
  display: block;
  max-width: 680px;
  margin-top: 24px;
  font-family: var(--scribble);
  font-size: clamp(2.8rem, 5.8vw, 5.6rem);
  font-weight: 400;
  line-height: 0.78;
}

.night-art {
  margin: 10px 0 clamp(26px, 4vw, 42px);
  transform: none;
}

.night-art img {
  aspect-ratio: 1901 / 744;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

.comic-strip {
  width: min(calc(100% - 28px), 660px);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: clamp(68px, 10vw, 120px);
  transform: none;
}

.comic-strip img {
  max-height: 1120px;
  object-fit: contain;
}

.test-section {
  width: min(calc(100% - 28px), 900px);
}

.test-panel {
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: white;
  transform: rotate(-0.4deg);
}

.timer-line {
  margin-bottom: 14px;
  color: var(--ink);
}

#countdown {
  display: inline-flex;
  min-width: 2ch;
  justify-content: center;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.buy-button {
  width: 100%;
  min-height: clamp(82px, 13vw, 136px);
  margin: 8px 0 18px;
  font-family: var(--scribble);
  font-size: clamp(4.4rem, 12vw, 9.6rem);
  font-weight: 400;
  line-height: 0.8;
}

.buy-button.lost {
  color: white;
  background: var(--red);
}

.buy-button.resisted {
  background: var(--paper);
}

.result-line {
  min-height: 1.2em;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.contract-row button,
.contract-row a {
  min-width: 112px;
  border-color: var(--ink);
}

.section-heading {
  max-width: 780px;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: 34px;
}

.meme-grid figure {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: white;
}

.meme-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.meme-grid figcaption {
  display: none;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 24px 0 42px;
  border-top: 1px solid var(--ink);
  color: var(--soft-ink);
  font-size: 1.05rem;
}

.site-footer span:first-of-type {
  color: var(--ink);
  font-weight: 700;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

@keyframes voice-pop {
  0%,
  15%,
  100% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) rotate(-8deg) scale(0.82);
  }

  23%,
  42% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(2deg) scale(1);
  }

  55% {
    opacity: 0;
    transform: translate3d(24px, -26px, 0) rotate(9deg) scale(1.08);
  }
}

@keyframes voice-drift {
  0%,
  12%,
  100% {
    opacity: 0;
    transform: translate3d(-10px, 18px, 0) rotate(-7deg) scale(0.92);
  }

  20%,
  38% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(1deg) scale(1);
  }

  52% {
    opacity: 0;
    transform: translate3d(18px, -20px, 0) rotate(7deg) scale(1.04);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav,
  .header-actions {
    position: fixed;
    left: 14px;
    right: 14px;
    display: none;
    justify-self: stretch;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
  }

  .site-nav {
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .header-actions {
    top: 282px;
    justify-content: stretch;
    padding: 8px;
  }

  .site-nav a,
  .text-link {
    width: 100%;
  }

  .menu-open .site-nav,
  .menu-open .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }

  .hero,
  .about-section,
  .grid-section,
  .cycle-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-mark {
    justify-self: start;
    width: min(100%, 360px);
  }

  .about-art,
  .phone-art {
    width: min(100%, 360px);
  }

  .night-art {
    order: -1;
  }

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

  .meme-grid figure:nth-child(2) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .brand {
    max-width: calc(100vw - 76px);
    font-size: 1.35rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(5.2rem, 27vw, 8.2rem);
  }

  .hero-line {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .section,
  .test-section {
    width: min(calc(100% - 24px), var(--max));
  }

  .steps li {
    grid-template-columns: 44px 1fr;
  }

  .contract-row > * {
    flex: 1 1 140px;
  }

  .site-footer {
    width: min(calc(100% - 24px), var(--max));
    flex-wrap: wrap;
  }
}

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