:root {
  --teal: #4fb6b4;
  --teal-dark: #2b8c8a;
  --ink: #1b2326;
  --navy: #17323d;
  --paper: #fbf6ec;
  --paper-line: #d9e8ef;
  --paper-margin: #f0a3a3;
  --tape: rgba(255, 226, 120, 0.85);
  --note: #fff8d6;
  --muted: #5d6a6e;
  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.6 Nunito, system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px;
  background: var(--navy);
}
.brand {
  font-family: var(--display); font-size: 28px; color: #fff; text-decoration: none;
  letter-spacing: .5px; text-shadow: 2px 2px 0 var(--teal-dark);
}
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: #e6f3f3; text-decoration: none; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.topbar nav a:hover { color: #fff; text-decoration: underline wavy var(--teal) 2px; text-underline-offset: 5px; }
.topbar nav a.yt { background: #e8423b; color: #fff; padding: 6px 14px; border-radius: 999px; }
.topbar nav a.yt:hover { text-decoration: none; background: #ff554d; }

/* hero */
.hero {
  position: relative;
  background: var(--teal) url("/assets/doodles.svg") 0 0 / 240px 240px;
  padding: 56px 24px 90px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 5.6vw, 76px); line-height: .95; margin: 0 0 18px;
  color: #fff; transform: rotate(-3deg); transform-origin: left;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
.hero p {
  max-width: 470px; margin: 0 0 24px; color: var(--ink); font-weight: 700; font-size: 18px;
  background: rgba(255, 255, 255, .78); padding: 12px 16px; border-radius: 14px;
  border: 3px solid var(--ink);
}
.hero-art { position: relative; justify-self: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-art:focus-visible { outline: 4px dashed var(--ink); outline-offset: 8px; border-radius: 50%; }
.hero-art:active .sticker { transform: rotate(4deg) scale(.97); }
.sticker {
  width: min(380px, 78vw); aspect-ratio: 1; border-radius: 50%;
  background: #fff; padding: 12px;
  border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(4deg); overflow: hidden;
}
.sticker img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bubble {
  position: absolute; top: 4%; left: -6%;
  font-family: var(--hand); font-size: 30px; line-height: 1;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px;
  padding: 8px 16px; transform: rotate(-10deg);
  box-shadow: 4px 4px 0 var(--ink);
  width: max-content; max-width: 230px; text-align: center;
  animation: bob 3s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; right: 14px; bottom: -14px;
  border: 8px solid transparent; border-top: 10px solid var(--ink);
}
@keyframes bob { 50% { transform: rotate(-6deg) translateY(-6px); } }
.bubble.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1), bob 3s ease-in-out .35s infinite; }
@keyframes pop { 0% { transform: rotate(-10deg) scale(.6); } 100% { transform: rotate(-10deg) scale(1); } }
.tear { position: absolute; left: 0; bottom: -1px; width: 100%; height: 50px; fill: var(--paper); }

/* buttons */
.btn {
  display: inline-block; cursor: pointer;
  font: 400 20px var(--display); letter-spacing: .5px; text-decoration: none;
  color: #fff; background: var(--ink);
  padding: 10px 22px; border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--teal-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--teal-dark); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--teal-dark); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-light:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* section headings */
main { max-width: 1000px; margin: 0 auto; padding: 24px 20px 72px; }
.scribble {
  font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 48px);
  margin: 0 0 20px; display: inline-block; transform: rotate(-2deg);
  background: linear-gradient(transparent 62%, rgba(79, 182, 180, .45) 62%);
  padding: 0 6px;
}

/* latest video board */
.latest { text-align: center; margin-bottom: 72px; }
.board {
  position: relative; text-align: left;
  background: #fff; border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 16px; transform: rotate(-.6deg);
}
.tape {
  position: absolute; top: -18px; width: 120px; height: 34px; background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.tape-l { left: 30px; transform: rotate(-8deg); }
.tape-r { right: 30px; transform: rotate(7deg); }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: var(--navy) url("/assets/doodles.svg") 0 0 / 180px;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-loading, .player-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #fff; font-family: var(--hand); font-size: 26px; padding: 20px;
}
.player-fallback a { color: #fff; }
.board-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 4px 4px;
}
.board-foot h3 { margin: 0; font-size: 21px; font-weight: 800; flex: 1 1 320px; }
.board-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* more recent videos */
.more-title { font: 400 26px/1.1 var(--display); margin: 44px 0 18px; }
.more {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.more:empty, .more-title:has(+ .more:empty) { display: none; }
.more a {
  display: block; text-align: left; text-decoration: none; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 12px;
  padding: 7px 7px 10px; box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(var(--r, 0deg)); transition: transform .15s, box-shadow .15s;
}
.more li:nth-child(odd) a { --r: -1.2deg; }
.more li:nth-child(even) a { --r: 1.2deg; }
.more a:hover, .more a:focus-visible { transform: rotate(0deg) translate(-2px, -3px); box-shadow: 7px 8px 0 var(--ink); }
.more img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 2px solid var(--ink); border-radius: 7px; background: var(--navy);
}
.more span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 9px; font-weight: 800; font-size: 15px; line-height: 1.3;
}

/* social stickers */
.socials { text-align: center; margin-bottom: 72px; }
.stickers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px;
}
.stickers a {
  display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none;
  color: #fff; background: var(--c, var(--ink));
  border: 3px solid var(--ink); border-radius: 16px;
  padding: 12px 16px; box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(var(--r, 0deg));
  transition: transform .15s, box-shadow .15s;
}
.stickers a:hover, .stickers a:focus-visible {
  transform: rotate(0deg) translate(-2px, -3px); box-shadow: 7px 8px 0 var(--ink);
}
.stickers b { display: block; font: 400 21px/1.1 var(--display); letter-spacing: .3px; }
.stickers small { display: block; font-family: var(--hand); font-size: 18px; opacity: .9; }
.stickers .ico { width: 34px; height: 34px; flex: none; }
.stickers .s-yt { --c: #e8302a; --r: -2.5deg; }
.stickers .s-dc { --c: #5865f2; --r: 1.5deg; }
.stickers .s-ig { --c: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); background: var(--c); --r: -1deg; }
.stickers .s-tt { --c: #111; --r: 2deg; box-shadow: 5px 5px 0 #25f4ee, -3px -3px 0 #fe2c55; }
.stickers .s-tt:hover { box-shadow: 7px 8px 0 #25f4ee, -3px -3px 0 #fe2c55; }
.stickers .s-x { --c: #1c1c1c; --r: -1.5deg; }
.stickers .s-steam { --c: #1b2838; --r: 1deg; }
.stickers .s-mal { --c: #2e51a2; --r: -2deg; }
.stickers li:nth-child(7) { grid-column: 2; }

.ico {
  display: inline-block; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* contact notebook */
.note {
  position: relative; max-width: 760px; margin: 0 auto;
  background:
    linear-gradient(90deg, transparent 54px, var(--paper-margin) 54px, var(--paper-margin) 56px, transparent 56px),
    repeating-linear-gradient(#fff 0 31px, var(--paper-line) 31px 32px);
  border: 4px solid var(--ink); border-radius: 6px 18px 18px 6px;
  box-shadow: 10px 10px 0 var(--teal-dark);
  padding: 34px 32px 30px 76px; transform: rotate(.5deg);
}
.note-intro { font-family: var(--hand); font-size: 22px; line-height: 32px; margin: 0 0 18px; }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 800; font-size: 15px; }
input, select, textarea {
  font: 600 17px Nunito, system-ui, sans-serif; color: var(--ink);
  background: var(--note); border: 3px solid var(--ink); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.status { margin: 0; font-family: var(--hand); font-size: 22px; }
.status.ok { color: #1f7a4d; }
.status.err { color: #b3261e; }
.alt { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

/* footer */
.foot {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 26px 20px; background: var(--navy); color: #cfe3e3; font-weight: 700; font-size: 15px;
}
.foot { align-items: center; }
.foot-icons { display: flex; gap: 16px; }
.foot-icons a { color: #cfe3e3; display: grid; }
.foot-icons a:hover { color: var(--teal); }
.foot-icons .ico { width: 22px; height: 22px; }

/* phones */
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }
  .topbar nav { gap: 12px; }
  .topbar nav a:not(.yt) { display: none; }
  .hero { padding: 36px 16px 80px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .sticker { width: min(240px, 66vw); }
  .bubble { font-size: 22px; left: -10%; max-width: 170px; }
  main { padding: 16px 16px 56px; }
  .board { padding: 10px; box-shadow: 6px 6px 0 var(--ink); }
  .more { grid-template-columns: 1fr; gap: 14px; }
  .more a { display: flex; align-items: center; gap: 12px; padding: 7px; }
  .more li:nth-child(odd) a { --r: -.6deg; }
  .more li:nth-child(even) a { --r: .6deg; }
  .more img { width: 44%; flex: none; }
  .more span { margin-top: 0; font-size: 14px; -webkit-line-clamp: 3; }
  .more-title { margin-top: 36px; }
  .tape { width: 84px; height: 28px; }
  .note { padding: 26px 18px 24px 40px; box-shadow: 6px 6px 0 var(--teal-dark);
    background:
      linear-gradient(90deg, transparent 24px, var(--paper-margin) 24px, var(--paper-margin) 26px, transparent 26px),
      repeating-linear-gradient(#fff 0 31px, var(--paper-line) 31px 32px); }
  .row { grid-template-columns: 1fr; }
  .stickers { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .stickers a { padding: 10px 10px; gap: 8px; }
  .stickers b { font-size: 17px; }
  .stickers small { font-size: 15px; }
  .stickers .ico { width: 26px; height: 26px; }
  .stickers li:nth-child(7) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble, .bubble.pop { animation: none; }
}

/* 404 page */
.lost { background: var(--teal); }
.lost-hero { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 20px; box-sizing: border-box; }
.lost-card {
  max-width: 620px; text-align: center; background: var(--paper);
  border: 4px solid var(--ink); border-radius: 20px; box-shadow: 10px 10px 0 var(--ink);
  padding: 32px 28px 36px; transform: rotate(-1.5deg);
}
.lost .lost-card .lost-code {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; font: 400 22px/1.2 var(--display);
  color: #fff; background: #e8423b; border: 3px solid var(--ink); border-radius: 999px; transform: rotate(3deg);
}
.lost .lost-card h1 {
  transform: none; font-size: clamp(34px, 7vw, 56px); margin-bottom: 14px;
  color: var(--ink); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--teal);
}
.lost .lost-card p:not(.lost-code) { max-width: none; margin: 0 auto 24px; background: none; border: 0; padding: 0; }
