:root {
  --ground: #DCD3BE;
  --ink: #231F1A;
  --accent: #D1563A;
  --secondary: #3E6B8C;
  --glow: #F2E1B8;
  --paper: #F6EFDD;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(93deg, rgba(35, 31, 26, 0.03) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(-88deg, rgba(35, 31, 26, 0.025) 0 3px, transparent 3px 140px),
    radial-gradient(120% 90% at 20% 0%, rgba(242, 225, 184, 0.55), transparent 60%),
    var(--ground);
  color: var(--ink);
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.6;
}

.hand {
  font-family: 'Amatic SC', 'Comic Sans MS', cursive;
  font-weight: 700;
}

.desk {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 44px) 46px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* wobbly torn paper */
.sheet {
  position: relative;
  background: var(--paper);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  box-shadow: 8px 12px 26px rgba(35, 31, 26, 0.28), 2px 3px 8px rgba(35, 31, 26, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ---------- header ---------- */

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo__mark {
  width: 52px;
  height: 52px;
  flex: none;
  transform: rotate(-6deg);
}

.wordmark {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.sticker-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  transform: rotate(8deg);
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 3px 4px 0 rgba(35, 31, 26, 0.35);
}

.head__num {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 24px;
  color: var(--secondary);
  border: 2px dashed var(--secondary);
  padding: 2px 14px;
  transform: rotate(2deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 26px 0 10px;
}

.hero__star {
  position: absolute;
  top: -34px;
  right: -14px;
  width: clamp(140px, 26vw, 300px);
  height: auto;
  transform: rotate(10deg);
  z-index: 0;
  filter: drop-shadow(6px 8px 0 rgba(35, 31, 26, 0.18));
}

.hero__paper {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 38px clamp(24px, 4vw, 48px) 42px;
  transform: rotate(var(--tilt, 0deg));
}

.kicker {
  margin: 0 0 10px;
  font-size: 26px;
  color: var(--secondary);
  transform: rotate(-1deg);
}

.headline {
  margin: 0 0 18px;
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.headline br { display: block; }

.sub {
  margin: 0 0 26px;
  font-size: 17px;
  max-width: 46ch;
}

.cta {
  display: inline-block;
  padding: 12px 30px;
  background: var(--ink);
  color: var(--glow);
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  border-radius: 165px 12px 155px 12px / 12px 155px 12px 165px;
  box-shadow: 5px 6px 0 rgba(35, 31, 26, 0.3);
  transform: rotate(-1.2deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: rotate(-1.2deg) translateY(2px);
  box-shadow: 2px 3px 0 rgba(35, 31, 26, 0.35);
}

/* tape */
.tape {
  position: absolute;
  width: 92px;
  height: 28px;
  background: rgba(62, 107, 140, 0.32);
  border-left: 2px dashed rgba(62, 107, 140, 0.4);
  border-right: 2px dashed rgba(62, 107, 140, 0.4);
  box-shadow: 0 2px 4px rgba(35, 31, 26, 0.12);
}

.tape--tl { top: -12px; left: 26px; transform: rotate(-24deg); }
.tape--br { bottom: -10px; right: 34px; transform: rotate(-18deg); }
.tape--top { top: -14px; left: 50%; transform: translateX(-50%) rotate(3deg); }

/* stickers */
.sticker {
  position: absolute;
  z-index: 2;
  padding: 4px 18px;
  background: var(--glow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(35, 31, 26, 0.28);
  transition: transform 0.25s ease;
}

.sticker--a {
  top: 66%;
  left: clamp(8px, 58vw, 720px);
  font-size: 26px;
  transform: rotate(-5deg);
}

.sticker--b {
  top: 4px;
  left: 55%;
  font-size: 24px;
  background: var(--accent);
  color: var(--paper);
  transform: rotate(6deg);
}

.hero:hover .sticker--a { transform: rotate(-7deg) translateY(-3px); }
.hero:hover .sticker--b { transform: rotate(4deg) translateY(-2px); }

.sticker--c {
  position: absolute;
  right: 18px;
  bottom: -14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--paper);
  font-size: 26px;
  transform: rotate(-8deg);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
  padding-top: 10px;
}

.card {
  padding: 34px 26px 30px;
  transform: rotate(var(--tilt, 0deg));
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(62, 107, 140, 0.14) 30px 31px),
    var(--paper);
}

.card:hover {
  transform: rotate(var(--tilt, 0deg)) translateY(3px) scale(0.99);
  box-shadow: 3px 4px 12px rgba(35, 31, 26, 0.3);
}

.card--accent { background-color: var(--glow); }

.card__t {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
}

.card__d {
  margin: 0;
  font-size: 15.5px;
}

.card__note {
  margin: 16px 0 0;
  font-size: 24px;
  color: var(--secondary);
  transform: rotate(-2deg);
}

/* ---------- quote ---------- */

.sheet--strip {
  padding: 34px clamp(26px, 5vw, 60px);
  transform: rotate(0.6deg);
  background: var(--ink);
  color: var(--glow);
}

.quote { margin: 0; }

.quote p {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  transform: rotate(-0.5deg);
}

/* ---------- note ---------- */

.note-card {
  display: inline-block;
  position: relative;
  background: var(--paper);
  padding: 20px 30px 22px;
  transform: rotate(-1.4deg);
  border-radius: 18px 220px 16px 240px / 240px 16px 220px 18px;
  box-shadow: 7px 9px 22px rgba(35, 31, 26, 0.25);
}

.note-card__label {
  margin: 0 0 4px;
  font-size: 26px;
  color: var(--accent);
}

.note {
  margin: 0;
  font-size: 17px;
  max-width: 44ch;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px dashed rgba(35, 31, 26, 0.35);
  padding-top: 24px;
}

.foot__brand {
  margin: 0;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
}

.promo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.promo-nav a {
  color: var(--secondary);
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  border-bottom: 2px dotted var(--secondary);
  transition: color 0.15s ease, transform 0.15s ease;
}

.promo-nav a:hover,
.promo-nav a:focus-visible {
  color: var(--accent);
  transform: rotate(-1.5deg) translateY(-1px);
}

/* ---------- sway (paper pieces live a little) ---------- */

@keyframes sway {
  0%   { rotate: -0.7deg; }
  100% { rotate: 0.7deg; }
}

.sway {
  animation: sway 5.5s ease-in-out infinite alternate;
}

.sway--slow { animation-duration: 7.4s; animation-delay: -2.2s; }
.sway--fast { animation-duration: 4.6s; animation-delay: -1.1s; }

/* ---------- reveal ---------- */

[data-reveal].pre {
  opacity: 0;
  transform: rotate(var(--tilt, 0deg)) translateY(30px);
}

[data-reveal].in {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg));
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}

/* mono logo fallback */
.logo--mono { filter: grayscale(1); }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; }
  .hero__star { opacity: 0.9; right: 0; }
  .sticker--a { left: auto; right: 8px; top: auto; bottom: -18px; }
  .sticker--b { left: auto; right: 12px; top: -10px; }
}

@media (max-width: 420px) {
  .desk { gap: 54px; }
  .logo__mark { width: 42px; height: 42px; }
  .wordmark { font-size: 28px; }
  .tape--tl { left: 8px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .sway, .sway--slow, .sway--fast { animation: none; }
  .sheet, .cta, .sticker, .promo-nav a { transition: none; }
  [data-reveal].pre {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
}
