/* Lost Besties Club: shared styles. The look comes from the channel concept page. */
:root {
  color-scheme: dark;
  --bg: #0d0b08; --panel: #17130d; --panel2: #1e1811; --line: rgba(233, 223, 198, 0.14);
  --parch: #ebe1c8; --muted: #a79b85; --faint: #6f6553;
  --gold: #f0b44a; --gold-hi: #f6c66c; --cyan: #5fe3f4; --red: #e0553b;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--parch); font: 400 18px/1.6 var(--body); padding-inline: 20px; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
               background: radial-gradient(900px 520px at 78% -6%, rgba(240, 180, 74, 0.10), transparent 62%), radial-gradient(700px 480px at 6% 22%, rgba(95, 227, 244, 0.05), transparent 60%); }
.wrap { max-width: 1040px; margin: 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #120e08; padding: 10px 14px; font: 600 13px/1 var(--mono); }
.skip:focus { left: 8px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* the mark */
.mark { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 34px 6px; }
.mark .name { font: 800 clamp(20px, 4vw, 30px)/1 var(--display); letter-spacing: 0.22em; text-align: center; }
.mark .name i { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: 0.55em; letter-spacing: 0.1em; color: var(--muted); vertical-align: 0.2em; }
.mark .rule { width: 84px; height: 3px; background: var(--gold); }

/* buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 14px 22px; border-radius: 999px;
       font: 600 14px/1.1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent;
       transition: transform 0.15s ease, background-color 0.15s ease; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn.yt { color: #120e08; background: var(--gold); box-shadow: 0 10px 34px rgba(240, 180, 74, 0.22); }
.btn.yt:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn.tt { color: var(--parch); background: var(--panel2); border-color: var(--cyan); }
.btn.tt:hover { background: #26201a; transform: translateY(-2px); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); gap: 44px; align-items: center; padding-block: 48px 12px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lede { font: 400 italic clamp(20px, 2.4vw, 25px)/1.4 var(--body); color: var(--muted); }
.stack { position: relative; aspect-ratio: 1 / 1.02; max-width: 450px; width: 100%; justify-self: center; }
.stack a { position: absolute; width: 46%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000;
           box-shadow: 0 0 0 1px var(--line), 0 26px 60px rgba(0, 0, 0, 0.65); transition: transform 0.25s ease; }
.stack img { width: 100%; height: 100%; object-fit: cover; }
.stack .c1 { left: 0; top: 13%; transform: rotate(-9deg); }
.stack .c2 { left: 27%; top: 3%; z-index: 2; }
.stack .c3 { right: 0; top: 13%; transform: rotate(9deg); z-index: 3; }
.stack .c1:hover, .stack .c1:focus-visible { transform: rotate(-9deg) translateY(-8px); }
.stack .c2:hover, .stack .c2:focus-visible { transform: translateY(-8px); }
.stack .c3:hover, .stack .c3:focus-visible { transform: rotate(9deg) translateY(-8px); }

section { padding-block: 84px 0; display: grid; gap: 28px; }
section > header { display: grid; gap: 12px; }

/* your call: stamp a claim */
.case { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 44px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 28px; }
.case-pic { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.55); }
.case-pic img { width: 100%; height: 100%; object-fit: cover; }
.slam { position: absolute; left: 50%; top: 27%; transform: translate(-50%, -50%) rotate(-11deg); font: 800 clamp(30px, 6vw, 44px)/1 var(--display); letter-spacing: 0.14em;
        padding: 10px 16px 8px; border: 5px solid; border-radius: 6px; background: rgba(13, 11, 8, 0.72); white-space: nowrap; pointer-events: none; }
.slam { opacity: 0; scale: 2.6; }
.slam.legend { color: var(--gold); } .slam.real { color: var(--cyan); transform: translate(-50%, -50%) rotate(8deg); }
.slam.in { opacity: 1; scale: 1; transition: scale 0.32s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.1s linear; }   /* a transition, so the stamp still lands if a browser skips frames */
.case-pic.hit { animation: hit 0.3s ease 0.14s; }
@keyframes hit { 30% { translate: 0 5px; } 60% { translate: 0 -2px; } }
.case-body { display: grid; gap: 22px; justify-items: start; }
.count { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--faint); }
.claim { font: 500 clamp(27px, 4vw, 46px)/1.15 var(--body); text-wrap: balance; }
/* the aside: one dry line, like a note in the margin of the films. It shows once, on the second stamp. */
.aside { font: 400 italic 21px/1.2 var(--body); color: var(--gold); margin-top: -8px; rotate: -2deg; }
.votes { display: flex; flex-wrap: wrap; gap: 16px; }
.stampbtn { font: 800 clamp(18px, 2.4vw, 22px)/1 var(--display); letter-spacing: 0.16em; padding: 16px 22px 14px; border: 3px solid; border-radius: 6px; background: rgba(13, 11, 8, 0.4);
            transition: transform 0.12s ease, background-color 0.12s ease; }
.stampbtn.legend { color: var(--gold); transform: rotate(-3deg); } .stampbtn.real { color: var(--cyan); transform: rotate(2deg); }
.stampbtn.legend:hover { background: rgba(240, 180, 74, 0.14); transform: rotate(-3deg) scale(1.05); }
.stampbtn.real:hover { background: rgba(95, 227, 244, 0.12); transform: rotate(2deg) scale(1.05); }
.stampbtn:active { scale: 0.94; }
.after { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn.small { min-height: 52px; padding: 12px 22px; }
.textbtn { font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); padding: 12px 4px; }
.textbtn:hover { color: #fff; }
a.textbtn { text-decoration: none; }
a.textbtn::before { content: "\25B6\00A0"; font-size: 0.8em; }
.textbtn.quiet { color: var(--muted); }

/* the long stories: two large, three small. Titles only. */
.longs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
.film { grid-column: span 2; display: grid; gap: 10px; align-content: start; color: inherit; text-decoration: none; }
.film:nth-child(-n+2) { grid-column: span 3; }
.film .pic { overflow: hidden; background: #000; border-radius: 8px; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line); }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.film:hover img { transform: scale(1.04); }
.film .title { font: 500 19px/1.35 var(--body); color: var(--parch); text-wrap: pretty; }
.film:hover .title { color: #fff; }

/* doors: one tile for each place the club meets. Add a tile to add a place. */
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.door { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 104px; padding: 22px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none;
        transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; }
a.door:hover { background: var(--panel2); border-color: rgba(240, 180, 74, 0.6); transform: translateY(-3px); }
.door svg { width: 34px; height: 34px; color: var(--gold); }
.door b { display: block; font: 800 20px/1.1 var(--display); letter-spacing: 0.08em; }
.door small { display: block; padding-top: 6px; font: 400 italic 16px/1.3 var(--body); color: var(--muted); }
.door .go { font: 600 20px/1 var(--mono); color: var(--cyan); }
.door.sealed { border-style: dashed; color: var(--faint); }
.door.sealed svg { color: var(--red); transition: rotate 0.3s ease; }
.door.sealed:hover svg { rotate: -14deg; }
.door.sealed b { color: var(--muted); }

footer { padding-block: 64px 56px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; color: var(--faint); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 30px 8px; }
  .hero-copy { justify-items: center; text-align: center; }
  .cta { justify-content: center; width: 100%; }
  .stack { max-width: 340px; }
  section { padding-block: 64px 0; }
  section > header { justify-items: center; text-align: center; }
  .longs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film, .film:nth-child(-n+2) { grid-column: span 1; } .film:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .case { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .case-pic { width: min(62%, 240px); justify-self: center; }
  .case-body { justify-items: center; text-align: center; }
  .votes, .after { justify-content: center; }
}
@media (max-width: 560px) {
  body { padding-inline: 16px; }
  .hero .btn { width: 100%; }
  .longs { grid-template-columns: 1fr; }
  .film, .film:first-child, .film:nth-child(-n+2) { grid-column: span 1; }
  footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
