/* alexcreatesstuff.com: the channel's look on the web. Chalk on a navy night sky, one yellow
   highlight, Patrick Hand for words, Luckiest Guy for stickers and big numbers. */

@font-face { font-family: "Patrick Hand"; src: url("/fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("/fonts/LuckiestGuy-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --sky: #121A33; --deep: #0D1430; --panel: #1A2347; --line: #2F3B6E; --mute: #4B5788;
  --chalk: #F3EEE3; --dim: #A0A8C6; --yellow: #FFD166; --yellow-d: #C99A2E; --ink: #0B1024;
  --a1: #3FE0A0; --a2: #2FC7C9; --a3: #8C7BE0;
  --hand: "Patrick Hand", "Chalkboard SE", "Comic Neue", cursive;
  --chunky: "Luckiest Guy", "Patrick Hand", "Arial Rounded MT Bold", sans-serif;
  --r: 18px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--sky); color: var(--chalk);
  font: 400 1.2rem/1.42 var(--hand); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 36px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--sky); padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---- the sky: aurora and twinkling stars behind the top of every page ---- */
.sky { position: absolute; inset: 0 0 auto; height: min(980px, 115vh); overflow: hidden; pointer-events: none; z-index: 0; }
.sky::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--sky)); }
.aurora {
  position: absolute; left: -35%; right: -35%; top: -12%; height: 72%; opacity: 0.6;
  background:
    radial-gradient(32% 46% at 18% 52%, rgba(63, 224, 160, 0.42), transparent 72%),
    radial-gradient(30% 40% at 44% 30%, rgba(47, 199, 201, 0.32), transparent 72%),
    radial-gradient(34% 48% at 70% 46%, rgba(140, 123, 224, 0.36), transparent 72%),
    radial-gradient(26% 36% at 92% 26%, rgba(63, 224, 160, 0.22), transparent 72%);
  animation: aurora 28s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora.two { opacity: 0.35; top: -4%; animation-duration: 41s; animation-direction: alternate-reverse; transform: scaleX(-1); }
@keyframes aurora { from { transform: translate3d(-6%, 0, 0) skewY(-3deg); } to { transform: translate3d(6%, 2%, 0) skewY(3deg); } }
.stars i {
  position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: var(--chalk);
  opacity: 0.25; animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite alternate;
}
.stars i.spark {
  width: var(--s, 12px); height: var(--s, 12px); border-radius: 0; background: var(--yellow);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
@keyframes twinkle { from { opacity: 0.12; transform: scale(0.7); } to { opacity: 0.95; transform: scale(1); } }

main, .top, .foot { position: relative; z-index: 1; }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; transition: transform 0.25s; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.word { font: 400 1.55rem/1 var(--hand); white-space: nowrap; }
.word b, .y { color: var(--yellow); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 1.15rem; }
.nav a:hover { background: rgba(243, 238, 227, 0.08); }
.nav a[aria-current="page"] { color: var(--yellow); }
.nav .pill { border: 2px solid var(--chalk); padding: 6px 14px; }
.nav .pill:hover { background: var(--chalk); color: var(--sky); }
@media (max-width: 520px) {
  .nav .opt { display: none; }
  .word { font-size: 1.32rem; }
  .brand img { width: 40px; height: 40px; }
  .nav .pill { padding: 5px 12px; font-size: 1.05rem; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.55em 1.15em 0.5em; border-radius: 999px; border: 2px solid var(--chalk);
  color: var(--chalk); background: transparent; text-decoration: none; cursor: pointer;
  font: 400 1.2rem/1 var(--hand); transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); background: rgba(243, 238, 227, 0.08); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-y { background: var(--yellow); border-color: var(--yellow); color: var(--sky); box-shadow: 0 4px 0 var(--yellow-d); }
.btn-y:hover { background: #FFDB85; box-shadow: 0 6px 0 var(--yellow-d); }
.btn-y:active { box-shadow: 0 2px 0 var(--yellow-d); }
.btn-sm { font-size: 1.05rem; padding: 0.45em 0.95em 0.4em; }

/* ---- hero ---- */
.hero { display: grid; gap: 30px; align-items: center; padding-block: 18px 40px; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.kicker { font-size: 1.15rem; color: var(--dim); letter-spacing: 0.04em; }
.kicker b { color: var(--yellow); font-weight: 400; }
.hook {
  position: relative; z-index: 0; font: 400 clamp(2.7rem, 12vw, 5.6rem)/1.06 var(--hand);
  min-height: 2.15em; letter-spacing: 0.005em;
}
.hook .w { position: relative; display: inline-block; transition: color 0.12s; }
.hook .w.on { color: var(--sky); }
.hook .box {
  position: absolute; left: 0; top: 0; z-index: -1; width: 0; height: 0; border-radius: 0.1em;
  background: var(--yellow); transition: transform 0.2s cubic-bezier(.3, .8, .3, 1), width 0.2s, height 0.2s, opacity 0.2s;
}
.lede { font-size: clamp(1.3rem, 4.6vw, 1.6rem); line-height: 1.3; max-width: 30ch; }
.follow { display: flex; flex-wrap: wrap; gap: 10px; }
.proof { color: var(--dim); font-size: 1.08rem; }
.proof b { color: var(--chalk); font-weight: 400; }
.phone-wrap { position: relative; justify-self: center; }
.phone {
  position: relative; margin: 0; width: min(74vw, 330px); aspect-ratio: 9 / 16; border-radius: 36px; padding: 9px;
  background: var(--ink); transform: rotate(2.5deg);
  box-shadow: 0 0 0 2.5px var(--chalk), 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 140px rgba(255, 209, 102, 0.14);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: var(--sky); }
.phone::before {   /* the little camera */
  content: ""; position: absolute; top: 18px; left: 50%; width: 11px; height: 11px; margin-left: -5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px rgba(243, 238, 227, 0.15); z-index: 2;
}
.phone-tag {
  position: absolute; z-index: 3; left: -14px; bottom: 54px; transform: rotate(-6deg);
  font: 400 1.05rem/1 var(--chunky); letter-spacing: 0.03em; color: var(--sky); background: var(--yellow);
  padding: 9px 12px 6px; border-radius: 10px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.hero-mascot { position: absolute; z-index: 3; right: -30px; bottom: -18px; width: 104px; transform: rotate(4deg); pointer-events: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-block: 34px 70px; min-height: min(760px, 86vh); }
  .phone { width: 330px; }
  .hero-mascot { right: -66px; width: 130px; }
}

/* ---- sections ---- */
.sec { padding-block: 34px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 7vw, 2.7rem); }
.more { font-size: 1.15rem; color: var(--yellow); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.small { font-size: 1rem; color: var(--dim); }

/* video cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card a { display: block; text-decoration: none; }
.frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--panel);
  box-shadow: 0 0 0 2px rgba(243, 238, 227, 0.16), 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity 0.25s; }
.frame.playing video { opacity: 1; }
.card a:hover .frame, .card a:focus-visible .frame { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 0 0 2.5px var(--chalk), 0 16px 34px rgba(0, 0, 0, 0.45); }
.badge {
  position: absolute; z-index: 2; bottom: 12px; left: 10px; transform: rotate(-4deg);
  font: 400 0.95rem/1 var(--chunky); letter-spacing: 0.03em; color: var(--sky); background: var(--yellow);
  padding: 7px 9px 4px; border-radius: 8px; border: 2.5px solid var(--ink); transition: opacity 0.2s;
}
.card a:hover .badge, .card a:focus-visible .badge { opacity: 0; }
.watch-on {
  position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px;
  font-size: 1rem; color: var(--chalk); opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
.watch-on span { background: rgba(11, 16, 36, 0.82); padding: 4px 10px 3px; border-radius: 999px; }
.card a:hover .watch-on, .card a:focus-visible .watch-on { opacity: 1; transform: none; }
.card h3 { margin-top: 9px; font-size: 1.12rem; line-height: 1.15; color: var(--chalk); }
.card .sub { font-size: 0.98rem; color: var(--dim); margin-top: 2px; }

/* series */
.series-card {
  position: relative; border-radius: 26px; padding: 24px 18px 22px; overflow: hidden;
  background: linear-gradient(160deg, #24204F 0%, #1A2347 55%, #16304A 100%);
  box-shadow: 0 0 0 2px rgba(243, 238, 227, 0.14);
}
.series-title { font: 400 clamp(2.1rem, 9vw, 3.6rem)/0.92 var(--chunky); letter-spacing: 0.01em; text-transform: uppercase; color: var(--chalk); text-shadow: 0 4px 0 var(--ink); }
.series-title .y { color: var(--yellow); }
.series-title small { display: block; font-size: 0.48em; margin-top: 0.25em; }
.series-card > p { margin: 12px 0 18px; max-width: 46ch; color: var(--dim); }
.rail { list-style: none; margin: 0 -18px; padding: 4px 18px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > li { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 28%; } }
@media (min-width: 980px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; } .series-card { padding: 34px 32px 30px; } }

/* brands teaser */
.collab {
  display: grid; gap: 10px 26px; align-items: center; border-radius: 26px; padding: 22px 20px;
  background: var(--panel); box-shadow: 0 0 0 2px rgba(243, 238, 227, 0.14);
}
.collab img { width: min(62%, 240px); justify-self: center; }
.collab h2 { margin-bottom: 10px; }
.collab p { color: var(--dim); margin-bottom: 18px; max-width: 42ch; }
@media (min-width: 760px) { .collab { grid-template-columns: 260px 1fr; padding: 26px 36px; } .collab img { width: 100%; } }

/* ---- brands page ---- */
.b-hero { display: grid; gap: 16px 30px; align-items: center; padding-block: 18px 30px; }
.b-hero h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1; margin: 6px 0 14px; }
.b-hero .lede { max-width: 36ch; margin-bottom: 20px; }
.b-hero img { width: min(70%, 320px); justify-self: center; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) { .b-hero { grid-template-columns: 1.2fr 0.8fr; padding-block: 30px 40px; } .b-hero img { width: 100%; max-width: 360px; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat, .panel { background: var(--panel); border-radius: var(--r); box-shadow: 0 0 0 1.5px var(--line); }
.stat { padding: 14px 14px 12px; }
.stat .n { font: 400 clamp(2rem, 8vw, 2.6rem)/1 var(--chunky); color: var(--yellow); letter-spacing: 0.01em; }
.stat .l { margin-top: 6px; font-size: 1.02rem; line-height: 1.25; color: var(--dim); }
.stat .l b { color: var(--chalk); font-weight: 400; }
.asof { margin-top: 10px; }

/* who watches: yellow marks the part each line is about, muted blue the rest, every value printed */
.aud { display: grid; gap: 12px; }
@media (min-width: 860px) { .aud { grid-template-columns: 1.15fr 1.15fr 1fr; gap: 16px; } }
.panel { padding: 14px 16px 16px; display: flex; flex-direction: column; }
.panel .hd { font-size: 1.25rem; line-height: 1.1; margin-bottom: 12px; }
.panel .hd b { font: 400 1.5rem/1 var(--chunky); color: var(--yellow); letter-spacing: 0.01em; margin-right: 6px; }
.panel .hd.last { margin: auto 0 0; padding-top: 16px; }
.age .plot { display: grid; grid-template-columns: repeat(7, 1fr); height: 120px; border-bottom: 1.5px solid var(--line); }
.age .c { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.age .c i { display: block; width: 22px; max-width: 70%; background: var(--mute); border-radius: 4px 4px 0 0; }
.age .c.hi i { background: var(--yellow); }
.age .v { font-size: 0.92rem; line-height: 1; color: var(--dim); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.age .c.hi .v { color: var(--chalk); }
.age .xl { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 6px; text-align: center; font-size: 0.85rem; line-height: 1; color: var(--dim); white-space: nowrap; }
.bars { display: grid; gap: 8px; }
.bars .r { display: grid; grid-template-columns: 8.2em 1fr; align-items: center; font-size: 1.02rem; line-height: 1.1; }
.bars .tr { display: flex; align-items: center; gap: 6px; }
.bars .tr i { display: block; height: 12px; background: var(--yellow); border-radius: 0 4px 4px 0; }
.bars .v { color: var(--dim); font-variant-numeric: tabular-nums; }
.meter { display: flex; gap: 3px; height: 16px; }
.meter i { display: block; height: 100%; border-radius: 4px; }
.meter .w { flex: 60.1; background: var(--yellow); }
.meter .m { flex: 39.9; background: var(--mute); }
.ml { display: flex; justify-content: space-between; margin-top: 8px; font-size: 1.02rem; color: var(--dim); }
.ml b { color: var(--chalk); font-weight: 400; }

.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .offers { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.offers li { padding: 18px 18px 16px; }
.offers h3 { font-size: 1.5rem; margin-bottom: 8px; }
.offers h3 .num { font-family: var(--chunky); color: var(--yellow); margin-right: 8px; }
.offers p { color: var(--dim); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 14px 62px; }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 13px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.25rem/1 var(--chunky); padding-top: 4px; color: var(--sky); background: var(--yellow);
}
.steps p { color: var(--chalk); font-size: 1.12rem; line-height: 1.3; }
.note { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); border: 2px dashed var(--line); color: var(--dim); }
.note b { color: var(--chalk); font-weight: 400; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 26px; }
@media (min-width: 760px) { .why { grid-template-columns: 1fr 1fr; } }
.why li { position: relative; padding-left: 26px; }
.why li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); }
.why b { font-weight: 400; color: var(--yellow); }
.why li { color: var(--dim); }
.proof-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
@media (min-width: 860px) { .proof-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* brand assets */
.assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .assets { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .assets { grid-template-columns: repeat(6, 1fr); } }
.asset { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.asset .pic { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--deep); overflow: hidden; }
.asset .pic.check { background-color: #2A3358; background-image: linear-gradient(45deg, #222B4E 25%, transparent 25%, transparent 75%, #222B4E 75%), linear-gradient(45deg, #222B4E 25%, transparent 25%, transparent 75%, #222B4E 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.asset .pic.light { background: var(--chalk); }
.asset .pic img { max-width: 86%; max-height: 86%; object-fit: contain; }
.asset .pic.wide img { max-width: 100%; max-height: 100%; }
.asset h3 { font-size: 1.12rem; }
.asset .small { margin-top: -6px; }
.asset .btn { margin-top: auto; }
.swatches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .swatches { grid-template-columns: repeat(7, 1fr); } }
.swatch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 14px; border: 0; background: var(--panel); box-shadow: 0 0 0 1.5px var(--line); color: var(--chalk); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.swatch i { flex: none; width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px rgba(243, 238, 227, 0.2); }
.swatch span { display: grid; line-height: 1.1; }
.swatch small { color: var(--dim); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.swatch:hover { box-shadow: 0 0 0 2px var(--chalk); }
.fonts { margin-top: 16px; color: var(--dim); }
.fonts b { color: var(--chalk); font-weight: 400; }
.fonts .lg { font-family: var(--chunky); color: var(--yellow); }

.contact { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 40px 30px; }
.contact h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.contact p { max-width: 40ch; color: var(--dim); }
.email-big { font-size: clamp(1.5rem, 6vw, 2.1rem); color: var(--yellow); text-decoration: none; border-bottom: 2px dashed var(--yellow-d); overflow-wrap: anywhere; }
.email-big:hover { border-bottom-style: solid; }
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 120px); opacity: 0; padding: 10px 18px 8px;
  border-radius: 999px; background: var(--yellow); color: var(--sky); font-size: 1.1rem; box-shadow: 0 6px 0 var(--yellow-d);
  transition: transform 0.25s cubic-bezier(.3, .8, .3, 1), opacity 0.2s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---- 404 ---- */
.lost { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: 40px 70px; }
.lost img { width: min(92%, 560px); }
.lost h1 { font-size: clamp(2.6rem, 10vw, 4.4rem); }
.lost p { font-size: 1.4rem; color: var(--dim); }

/* ---- footer ---- */
.foot { margin-top: 30px; }
.foot-art { width: 100%; height: clamp(150px, 26vw, 330px); object-fit: cover; object-position: 50% 60%; }
.foot-row { display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: 22px 34px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.foot-links a { text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.foot-links a:hover { background: rgba(243, 238, 227, 0.08); color: var(--yellow); }
.foot .small a { color: var(--dim); }
@media (min-width: 860px) { .foot-row { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; align-items: center; } .foot-links { justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
