:root {
  --paper: #f7f1e1;
  --ink: #1f1a14;
  --blue: #2b4c7e;
  --rule: #c9ddf0;
  --red: #c45c4a;
}

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

body {
  font-family: "Patrick Hand", cursive;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  background-image:
    linear-gradient(90deg, rgba(196, 92, 74, 0.35) 0, rgba(196, 92, 74, 0.35) 2px, transparent 2px),
    repeating-linear-gradient(
      transparent,
      transparent 31px,
      var(--rule) 31px,
      var(--rule) 32px
    );
  background-position: 2.5rem 0, 0 0.5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  font-size: 1.15rem;
}

.nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  max-width: 720px;
  animation: doodle-in 0.8s ease both;
}

.brand {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 8rem);
  line-height: 0.85;
  color: var(--blue);
  margin-bottom: 1rem;
  transform: rotate(-2deg);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 0.12em;
}

.hero h1 {
  font-family: "Caveat", cursive;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  max-width: 14ch;
  margin-bottom: 0.75rem;
  transform: rotate(0.5deg);
}

.sub {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
  width: fit-content;
  filter: url(#wobble);
}

.cta:hover {
  transform: rotate(2deg) scale(1.04);
  background: #fff;
}

.pad {
  display: grid;
  gap: 1.25rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 760px;
}

.note {
  padding: 1.35rem 1.5rem;
  background: #fffdf7;
  border: 2.5px solid var(--ink);
  border-radius: 255px 20px 225px 20px / 20px 225px 20px 255px;
  box-shadow: 4px 5px 0 rgba(31, 26, 20, 0.12);
  transform: rotate(-1deg);
  animation: doodle-in 0.7s ease both;
  filter: url(#wobble);
}

.note.tilted {
  transform: rotate(1.5deg);
  animation-delay: 0.15s;
  border-color: var(--blue);
}

.note h2 {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
  color: var(--blue);
}

.note p {
  font-size: 1.2rem;
  line-height: 1.4;
}

@keyframes doodle-in {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(-3deg);
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
