/* Rucklings: palette sampled from the locked brand kit (BRAND.md). */
:root {
  --dusk: #072A3A;
  --dusk-2: #0B3547;
  --deep: #051C27;
  --teal: #2EA693;
  --plum: #782553;
  --amber: #F4AD37;
  --cream: #F6DCB5;
  --thread: #D83726;
  --ink: #F3E9D8;
  --muted: #B9C9C6;
  --radius: 22px;
  --head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dusk); color: var(--ink); font: 400 1.125rem/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }
a:focus-visible, .btn:focus-visible { outline: 3px dashed var(--amber); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--deep); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); color: var(--cream); }
h3 { font-size: 1.35rem; color: var(--cream); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.kicker { font: 700 .85rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9rem; }
.lede { font-size: 1.28rem; color: var(--cream); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
/* The stage reproduces object-fit: cover (anchored 78% down) so the painting and the light canvas share one coordinate space. */
.hero__sky { position: absolute; inset: 0; place-self: stretch; pointer-events: none; overflow: hidden; z-index: -2; container-type: size; } /* place-self: grid centring would otherwise shrink this abs-pos box */
.hero__stage { --w: max(100cqw, calc(100cqh * 1672 / 941)); position: absolute; width: var(--w); aspect-ratio: 1672 / 941;
  left: calc((100cqw - var(--w)) * .5); top: calc((100cqh - var(--w) * 941 / 1672) * .78); animation: drift 40s ease-in-out infinite alternate; }
.hero__stage img, .hero__life { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__life { opacity: 0; transition: opacity 1.6s ease; }
.hero__life.is-live { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 45% at 50% 40%, rgba(7,42,58,.55) 0%, rgba(7,42,58,0) 100%),
              linear-gradient(to bottom, rgba(7,42,58,.1) 0%, rgba(7,42,58,0) 60%, var(--dusk) 100%); }
.hero__inner { position: relative; z-index: 1; padding: clamp(72px, 12vh, 140px) 16px 96px; width: min(820px, 100%); }
.hero__mark { margin: 0 auto; width: min(720px, 88vw); filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); animation: settle 1.4s cubic-bezier(.2,1.4,.4,1) both; }
.hero__tag { font: 600 clamp(1.25rem, 1rem + 1.4vw, 1.9rem)/1.3 var(--head); color: var(--cream); margin: 1.1rem 0 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.stitch-pill { display: inline-block; padding: .5rem 1.1rem; border: 2px dashed rgba(244,173,55,.75); border-radius: 999px; background: rgba(5,28,39,.6); font: 600 .95rem/1.3 var(--head); color: var(--cream); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font: 700 1.05rem/1 var(--head); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: var(--deep); box-shadow: 0 0 0 3px var(--deep), 0 0 0 5px rgba(244,173,55,.55), 0 10px 24px rgba(0,0,0,.35); }
.btn--ghost { color: var(--cream); border: 2px dashed rgba(246,220,181,.7); background: rgba(5,28,39,.45); }

/* Bands */
.band { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.band + .band::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(560px, 80%); border-top: 3px dashed rgba(244,173,55,.35); }
.band--story { text-align: left; }
.epigraph { margin: 2.2rem 0 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--plum); background: rgba(120,37,83,.16); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--cream); }
.epigraph p { margin: 0; }

.band--friends { background: radial-gradient(ellipse at 50% 30%, rgba(46,166,147,.16), transparent 60%), var(--dusk); text-align: center; }
.cast { display: block; width: min(1000px, 100%); margin: 1rem auto 2rem; }
.cast img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card { background: var(--dusk-2); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; border: 2px dashed rgba(244,173,55,.28); }
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.card--rook h3 { color: var(--teal); }
.card--bobbin h3 { color: #F07A64; }
.card--thimble h3 { color: var(--amber); }
.card--patch h3 { color: #9BC3E6; }

.band--town { background: linear-gradient(180deg, var(--dusk) 0%, var(--deep) 100%); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 440px 1fr; } }
.town img { border-radius: var(--radius); box-shadow: 0 0 0 3px var(--deep), 0 0 0 6px rgba(244,173,55,.35), 0 24px 48px rgba(0,0,0,.45); }
.places { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.places li { color: var(--muted); padding-left: 1.4rem; position: relative; }
.places li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.places strong { display: block; font-family: var(--head); color: var(--cream); font-size: 1.1rem; }

.band--soon { text-align: center; }
.card--feature { padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.card--feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .9rem; justify-items: start; }
.cue { margin: 3.2rem 0 0; font: 800 clamp(1.6rem, 1rem + 3vw, 2.8rem)/1.1 var(--head); color: var(--cream); }
.cue span { color: var(--amber); display: inline-block; animation: boing 2.6s ease-in-out infinite; }

.foot { padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); text-align: center; background: var(--deep); }
.foot__badge { margin: 0 auto 14px; width: 72px; }
.foot p { margin: .3rem 0; }
.small { font-size: .9rem; color: var(--muted); }

@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.08) translateX(1%); } }
@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(.94) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes boing { 0%, 70%, 100% { transform: none; } 76% { transform: translateY(-8px) scale(1.08, .94); } 84% { transform: translateY(0) scale(.96, 1.05); } 90% { transform: scale(1.02, .98); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.lost__badge { width: 120px; margin: 0 auto 1.4rem; }
.lost__title { font-size: 2.2rem; color: var(--cream); }

/* Hero trailer (placeholder until the trailer is on YouTube) */
.trailer { width: min(640px, 100%); margin: 2.2rem auto 0; scroll-margin-top: 24px; }
.trailer__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--deep);
  box-shadow: 0 0 0 3px var(--deep), 0 0 0 6px rgba(244,173,55,.45), 0 24px 48px rgba(0,0,0,.5); }
.trailer__frame img, .trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.trailer__frame:has(picture)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,28,39,.8), rgba(5,28,39,.15) 55%); }
.trailer__play { position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; z-index: 1;
  background: var(--amber); box-shadow: 0 0 0 4px var(--deep), 0 0 0 7px rgba(244,173,55,.5), 0 12px 30px rgba(0,0,0,.5); }
.trailer__play::before { content: ""; position: absolute; left: 33px; top: 26px; border-left: 26px solid var(--deep); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.trailer__soon { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 1; font: 700 1.05rem/1.2 var(--head); color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* Social icons: solid amber felt buttons (same family as the primary button), so they read as live links. */
.social { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.social a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--deep); background: var(--amber);
  box-shadow: 0 0 0 3px var(--deep), 0 0 0 5px rgba(244,173,55,.55), 0 8px 18px rgba(0,0,0,.35); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.social a:hover { transform: translateY(-3px) scale(1.06); background: #FFC65A; box-shadow: 0 0 0 3px var(--deep), 0 0 0 5px rgba(244,173,55,.9), 0 0 22px rgba(244,173,55,.55), 0 10px 22px rgba(0,0,0,.4); }
.social a:active { transform: translateY(0) scale(.97); }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.foot .social { margin: 0 0 1rem; }
