@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Bold.woff2") format("woff2"),
       url("fonts/Fredoka-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Regular.woff2") format("woff2"),
       url("fonts/Nunito-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Bold.woff2") format("woff2"),
       url("fonts/Nunito-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("fonts/PermanentMarker-Regular.woff2") format("woff2"),
       url("fonts/PermanentMarker-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4e6c1;
  --ink: #1a1714;
  --navy: #1b365d;
  --teal: #0d6e6a;
  --pink: #c2185b;
  --orange: #c05612;
  --line: rgba(70, 120, 170, 0.22);
  --margin: rgba(196, 64, 64, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  min-height: 100svh;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--margin) 0 2px, transparent 2px),
    repeating-linear-gradient(
      to bottom,
      transparent 0 31px,
      var(--line) 31px 32px
    );
  background-size: 100% 100%, 100% 32px;
  background-position: 22px 0, 0 6px;
  background-attachment: fixed;
}

.page {
  position: relative;
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: calc(1.25rem + env(safe-area-inset-top)) 1.35rem calc(1.4rem + env(safe-area-inset-bottom));
  padding-left: max(2.65rem, calc(28px + 1rem));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.kicker {
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: 1.05rem;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
  transform: rotate(-2deg);
  transform-origin: left center;
  width: fit-content;
}

h1 {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 7.4vw, 2.45rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.msg {
  margin: 0 0 0.75rem;
  max-width: 34rem;
}

.msg:last-of-type { margin-bottom: 1.15rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.2rem;
  background: var(--navy);
  color: #fff8e8;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 3px 0 #0f2240;
  text-align: center;
}

.btn:hover, .btn:focus-visible {
  background: #152a4a;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #0f2240;
}

.countdown {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  color: #4a4338;
}

.cast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  list-style: none;
  padding: 0;
}

.cast li { margin: 0; }

.cast img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
  background: var(--paper);
}

footer {
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: 0.92rem;
  color: #4a4338;
}

noscript p {
  margin: 0.85rem 0 0;
  color: var(--navy);
}

@media (min-width: 480px) {
  body { background-position: 36px 0, 0 6px; }
}
