:root {
  --paper: #fbf4dc;
  --paper-deep: #efe3bc;
  --ink: #143f24;
  --soft-ink: #456044;
  --lime: #c7ef18;
  --green: #118843;
  --coral: #ff735d;
  --blue: #5fb8ff;
  --line: rgba(20, 63, 36, 0.2);
  --shadow: rgba(20, 63, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 63, 36, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 63, 36, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(199, 239, 24, 0.4), transparent 22rem),
    radial-gradient(circle at 85% 12%, rgba(255, 115, 93, 0.18), transparent 18rem),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  font-family: "Patrick Hand", ui-rounded, "Comic Sans MS", cursive;
  font-size: 20px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(12deg, rgba(20, 63, 36, 0.04) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(97deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 9px);
  z-index: 1;
}

a {
  color: inherit;
}

.doodle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 36px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  text-decoration: none;
  transform: rotate(-2deg);
}

.brand img {
  width: clamp(42px, 6vw, 58px);
  aspect-ratio: 1;
  border: 2px solid rgba(20, 63, 36, 0.78);
  background: #e6f58a;
  box-shadow: 4px 5px 0 rgba(20, 63, 36, 0.18);
  object-fit: cover;
}

.brand span {
  display: inline-block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

nav a {
  border: 2px solid var(--ink);
  border-radius: 5px 2px 7px 3px / 4px 7px 3px 6px;
  background: rgba(251, 244, 220, 0.72);
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 7px 14px 8px;
  text-decoration: none;
  font-size: 1.05rem;
  transform: rotate(var(--nav-turn));
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

nav a:nth-child(1) {
  --nav-turn: -1.6deg;
}

nav a:nth-child(2) {
  --nav-turn: 1.2deg;
}

nav a:nth-child(3) {
  --nav-turn: -0.8deg;
}

nav a:hover {
  background: #fff8dc;
  box-shadow: 1px 2px 0 var(--shadow);
  transform: translate(2px, 2px) rotate(calc(var(--nav-turn) - 1deg));
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(320px, 450px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 74px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 62px) clamp(18px, 4vw, 36px) 70px;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: clamp(1.05rem, 2.2vw, 1.36rem);
  letter-spacing: 0;
  transform: rotate(-1deg);
}

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

h1 {
  margin-bottom: 22px;
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  max-width: 100%;
  font-size: clamp(3.8rem, 6.5vw, 5.9rem);
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0.035em 0.035em 0 rgba(199, 239, 24, 0.72);
  transform: rotate(-2deg);
}

h1 span {
  display: block;
  color: var(--green);
  font-size: 0.94em;
}

.lede {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--soft-ink);
  font-size: clamp(1.25rem, 2.6vw, 1.58rem);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-right: 6px;
}

.primary-link,
.secondary-link,
.shop-note a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 3px solid var(--ink);
  border-radius: 6px 3px 9px 4px / 5px 10px 4px 8px;
  padding: 13px 22px 15px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 5px 6px 0 var(--ink);
  transform: rotate(var(--button-turn, -0.8deg));
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-link {
  background: var(--lime);
  --button-turn: -1deg;
}

.secondary-link {
  background: #fff7d3;
  box-shadow: 4px 5px 0 rgba(20, 63, 36, 0.58);
  --button-turn: 1.1deg;
}

.shop-note a {
  --button-turn: -0.6deg;
}

.primary-link:hover,
.secondary-link:hover,
.shop-note a:hover {
  transform: translate(4px, 4px) rotate(calc(var(--button-turn, -0.8deg) - 1deg));
  box-shadow: 1px 2px 0 var(--ink);
}

.shop-board {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 34px;
  border: 4px solid rgba(20, 63, 36, 0.2);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.5), transparent 40%),
    #fff9dd;
  box-shadow: 18px 20px 0 rgba(17, 136, 67, 0.12);
  transform: rotate(1.4deg);
  overflow: hidden;
}

.shop-board::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(20, 63, 36, 0.16);
  pointer-events: none;
}

.board-kicker,
.board-title,
.board-tags,
.shop-board small {
  position: relative;
  z-index: 2;
}

.board-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: clamp(1.25rem, 3vw, 2rem);
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.board-title {
  max-width: 520px;
  margin: 0;
  color: var(--green);
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0.025em 0.025em 0 rgba(20, 63, 36, 0.12);
}

.board-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin-top: 28px;
}

.board-tags span {
  border: 2px solid var(--ink);
  border-radius: 5px 2px 7px 3px / 4px 7px 3px 6px;
  background: rgba(199, 239, 24, 0.5);
  padding: 7px 12px 9px;
  color: var(--ink);
  font-size: 1.05rem;
  transform: rotate(var(--tag-turn));
}

.board-tags span:nth-child(1) {
  --tag-turn: -2deg;
}

.board-tags span:nth-child(2) {
  --tag-turn: 1.5deg;
}

.board-tags span:nth-child(3) {
  --tag-turn: -1deg;
}

.shop-board small {
  display: block;
  margin-top: 22px;
  color: rgba(20, 63, 36, 0.7);
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: 1rem;
}

.board-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.board-stars span {
  position: absolute;
  width: 112px;
  aspect-ratio: 1;
  background: var(--lime);
  clip-path: polygon(50% 0, 61% 30%, 92% 15%, 75% 45%, 100% 62%, 67% 64%, 73% 100%, 50% 72%, 26% 100%, 33% 64%, 0 62%, 25% 45%, 8% 15%, 39% 30%);
  opacity: 0.9;
  transform: rotate(var(--turn));
}

.board-stars span:nth-child(1) {
  top: 7%;
  left: 6%;
  --turn: -16deg;
}

.board-stars span:nth-child(2) {
  top: 5%;
  right: 10%;
  width: 136px;
  --turn: 11deg;
}

.board-stars span:nth-child(3) {
  bottom: 8%;
  left: 8%;
  width: 120px;
  --turn: 21deg;
}

.board-stars span:nth-child(4) {
  bottom: 9%;
  right: 6%;
  --turn: -9deg;
}

.shop-note,
.newsletter,
.tiles {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

.shop-note {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  align-items: center;
  gap: 26px;
  padding-block: 34px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.shop-note h2,
.newsletter h2,
.tiles h2 {
  margin-bottom: 8px;
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-note p,
.newsletter p,
.tiles p {
  color: var(--soft-ink);
  line-height: 1.28;
}

.shop-note p {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.shop-note a {
  background: var(--coral);
  white-space: nowrap;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-block: 72px;
}

.tiles article {
  position: relative;
  min-height: 255px;
  border: 3px solid var(--ink);
  background: rgba(255, 248, 220, 0.78);
  box-shadow: 8px 9px 0 rgba(20, 63, 36, 0.16);
  padding: 26px;
  transform: rotate(var(--tilt));
}

.tiles article:nth-child(1) {
  --tilt: -1.6deg;
}

.tiles article:nth-child(2) {
  --tilt: 1.3deg;
  background: rgba(199, 239, 24, 0.24);
}

.tiles article:nth-child(3) {
  --tilt: -0.7deg;
  background: rgba(95, 184, 255, 0.18);
}

.tiles span {
  display: inline-block;
  margin-bottom: 28px;
  border-bottom: 4px solid var(--lime);
  color: var(--green);
  font-family: "Permanent Marker", "Patrick Hand", cursive;
}

.newsletter {
  padding-block: 56px 78px;
}

.newsletter h2 {
  max-width: 900px;
  color: var(--green);
}

.newsletter p {
  max-width: 760px;
  font-size: 1.2rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 36px) 34px;
  border-top: 2px dashed rgba(20, 63, 36, 0.24);
  color: var(--soft-ink);
}

footer span {
  font-family: "Permanent Marker", "Patrick Hand", cursive;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .shop-board {
    min-height: 460px;
  }

  .shop-note {
    grid-template-columns: 1fr;
  }

  .shop-note a {
    width: fit-content;
    white-space: normal;
  }

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

  .tiles article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 13.2vw, 4.15rem);
    line-height: 0.86;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    padding-right: 8px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .shop-board {
    min-height: 410px;
    padding: 24px;
  }

  .board-stars span {
    width: 90px;
  }
}
