/* Let's Build It Wrong website. Colours from the Shorts (lib/look.py) and the channel art (channel/art_text.py). */
:root {
  --ink: #2A1530; --orange: #FF8A1F; --orange-text: #B4530A; --blue: #2F8CFF; --yellow: #F5C431; --green: #4FAE5C;
  --sky: #8ECDF3; --sky-pale: #E4F5FF; --grass: #86C96B; --cream: #FFF6E6; --paper: #FFFFFF; --soft: #4D3B54;
  --radius: 20px; --line: 3px; --drop: 0 6px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* phones: no automatic text enlarging in landscape */
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 Rubik, "Segoe UI", system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--paper); padding: 8px 12px; border: var(--line) solid var(--ink); border-radius: 10px; }
.skip:focus { left: 8px; }

/* buttons: orange with an ink outline and a hard drop, like the pop-up words */
.btn { display: inline-block; font: 800 17px/1 Rubik, system-ui, sans-serif; color: var(--ink); background: var(--orange); border: var(--line) solid var(--ink);
  border-radius: 14px; padding: 14px 20px; text-decoration: none; box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.alt { background: var(--paper); }
.btn.small { padding: 10px 14px; font-size: 15px; box-shadow: 0 4px 0 var(--ink); }

/* hero: the banner's sky and track, then its flat green field carries on as the page */
.hero { position: relative; background: var(--grass); border-bottom: 4px solid var(--ink); }
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { font-weight: 700; text-decoration: none; }
.links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
/* over the banner's clouds the name and links sit on white stickers, so the cloud outlines never run through them (owner, 21 Nov 2026) */
.brand span { white-space: nowrap; }
.yt-top { display: inline-flex; align-items: center; gap: 6px; }
.yt-top .yt-icon { display: none; }
/* phones turned sideways and small tablets (owner's landscape screenshot, 21 Nov 2026): no menu links, and the name may wrap in its pill */
@media (max-width: 900px) {
  .links { display: none; }
  .top { justify-content: space-between; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand span { white-space: normal; line-height: 1.15; }
}
/* phones (owner's screenshot, 21 Nov 2026): the name ran out of its pill. The YouTube button shrinks to a red play icon, the name gets a
   little smaller, and with very large text settings it wraps inside the pill rather than spilling out */
@media (max-width: 520px) {
  .top { gap: 10px; }
  .brand { min-width: 0; flex: 0 1 auto; font-size: 15px; }
  .brand span { white-space: normal; line-height: 1.15; }
  .hero .brand { padding-right: 14px; }
  .yt-top { flex: none; background: #FF4E45; padding: 9px 13px; }
  .yt-top .yt-icon { display: block; }
  .yt-top .yt-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.hero .brand { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 99px; padding: 4px 16px 4px 4px; box-shadow: 0 4px 0 var(--ink); }
.hero .links { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 99px; padding: 9px 20px; box-shadow: 0 4px 0 var(--ink); }
.scene img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: 50% 100%; }
.field { padding: 6px 0 64px; }
.title { margin: 0 0 22px; font: 900 clamp(52px, 10vw, 124px)/.95 Rubik, "Segoe UI Black", system-ui, sans-serif; text-transform: uppercase; color: var(--paper);
  -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; text-shadow: .05em .08em 0 rgba(42, 21, 48, .3);
  transform: rotate(-3deg); transform-origin: 0 50%; }
.title span { display: block; }
.title em { font-style: normal; color: var(--orange); }
.tag { max-width: 640px; margin: 0; font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; line-height: 1.45; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* sections */
main > section { padding: 72px 0; }
main > section.wrap { padding-left: 24px; padding-right: 24px; }
.band { background: var(--sky-pale); border-block: 4px solid var(--ink); }
.kicker { margin: 0 0 6px; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
h2 { margin: 0 0 14px; font: 900 clamp(30px, 4.5vw, 46px)/1.05 Rubik, system-ui, sans-serif; }
h3 { margin: 0 0 6px; font-weight: 800; font-size: 20px; line-height: 1.2; }
.lead { max-width: 680px; margin: 0 0 30px; font-size: 19px; color: var(--soft); }
.card, .steps li, .exp, .kit { background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--drop); }

/* how it works */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { padding: 22px 22px 24px; }
.steps .art { width: 120px; height: 120px; margin: 0 auto 14px; display: grid; place-items: center; }
.steps .art img, .steps .art svg { width: 120px; height: 120px; }
.steps p { margin: 0; color: var(--soft); }
.n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 6px; border: var(--line) solid var(--ink); border-radius: 50%;
  background: var(--orange); font-size: 16px; vertical-align: 2px; }

/* experiments */
.exps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.exp { overflow: hidden; }
.pic { position: relative; aspect-ratio: 5 / 4; border-bottom: var(--line) solid var(--ink); background: var(--sky-pale); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.soon { position: absolute; top: 14px; left: 14px; padding: 6px 10px; background: var(--yellow); border: var(--line) solid var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg); }
.exp.live { display: block; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.exp.live:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 9px 0 var(--ink); }
.exp.live h3::after { content: " →"; }
.soon.try { background: #BDE7A6; }
.exp-body { padding: 16px 18px 20px; }
.exp-body p { margin: 0; color: var(--soft); }

/* topics */
.kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.kit { padding: 16px; }
.kit-top { display: flex; gap: 14px; align-items: flex-start; }
.kit-top img { width: 72px; height: 128px; flex: none; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 10px; }
.count { display: inline-block; margin: 2px 0 8px; padding: 1px 10px; background: var(--k, var(--orange)); border: 2.5px solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 13px; }
.hook { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.4; }
details { margin-top: 12px; border-top: 2px dashed rgba(42, 21, 48, .25); padding-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details ol { margin: 10px 0 0; padding-left: 22px; }
details li { margin: 0 0 10px; }
.tn { font-weight: 600; }
.th { display: block; color: var(--soft); font-size: 14px; line-height: 1.4; }
.out { display: inline-block; margin-left: 8px; padding: 0 8px; background: var(--green); border: 2px solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 12px; vertical-align: 1px; }

/* locked topics and experiments (owner, 21 Nov 2026): a lock and blurred filler until the Short comes out */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details ol { list-style: none; padding-left: 0; }
details li.open, details li.locked { position: relative; padding-left: 26px; }
details li.open .tn { font-weight: 700; color: var(--ink); }
details li.open::before { content: ""; position: absolute; left: 3px; top: 5px; border-left: 12px solid var(--orange); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
details li.locked .lock { position: absolute; left: 0; top: 2px; }
.blurred { filter: blur(5px); user-select: none; -webkit-user-select: none; pointer-events: none; color: var(--soft); }
.thumb-lock { width: 72px; height: 128px; flex: none; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 10px;
  background: repeating-linear-gradient(-45deg, var(--k), var(--k) 10px, var(--cream) 10px, var(--cream) 20px); }
.thumb-lock .lock { width: 34px; height: 34px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 50%; padding: 4px; }
.kit.locked h3 { color: var(--soft); }
.exp.locked .exp-body h3 { color: var(--soft); }
.soon.lockd { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); }
.card-stats { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--soft); }

/* about */
.about-in { display: flex; gap: 36px; align-items: center; }
.about-in img { width: 160px; height: 160px; flex: none; border-radius: 50%; }
.about-in p { max-width: 640px; font-size: 18px; }

/* footer */
.foot { background: var(--ink); color: var(--cream); padding: 28px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot .brand { color: var(--cream); font-size: 16px; }
.foot .brand img { width: 36px; height: 36px; }
.foot p { margin: 0; font-size: 15px; opacity: .85; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, main > section.wrap { padding-left: 16px; padding-right: 16px; }
  .links { display: none; }
  .top { padding-top: 10px; padding-bottom: 10px; justify-content: space-between; }
  .brand { font-size: 16px; }
  .brand img { width: 40px; height: 40px; }
  .scene img { height: 300px; object-position: 20% 100%; }
  .field { padding-bottom: 48px; }
  main > section { padding: 52px 0; }
  .kits { grid-template-columns: 1fr; }
  .about-in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about-in img { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
