/* Deby Dances — shared styles. Layout: centred 1200px bands, cream ground, brown + red accents. */
:root {
  --cream: #FFF8E6;
  --ink: #3B2417;
  --brown: #5A3420;
  --muted: #6B4E3A;
  --sand: #F4D892;
  --line: #EADBB8;
  --accent: #C24A3F;
  --link: #B8433A;
  --link-hover: #8E2F28;
  --teal: #23617E;
  --sage: #94BEBB;
  --peach: #F2B6A3;
  --white: #FFFFFF;
  --display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --body: 'Nunito Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img, video { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
h1, h2 { margin: 0; font-family: var(--display); color: var(--brown); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -1px; }
h2 { font-weight: 600; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
p { margin: 0; }
.accent { color: var(--accent); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.band-white { background: var(--white); }
.stack { display: flex; flex-direction: column; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.nav {
  padding-block: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .logo { display: block; line-height: 0; }
.nav .logo img { display: block; height: 36px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-weight: 700; font-size: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn { padding: 12px 22px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--white);
  text-decoration: none; border: 0; border-radius: 999px;
  padding: 16px 28px; font: inherit; font-weight: 800; font-size: 18px; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { color: var(--white); transform: translateY(-1px); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--white); }
.btn-outline { background: var(--white); color: var(--brown); border: 2px solid var(--brown); }
.btn-outline:hover { color: var(--brown); }
.btn-brown { background: var(--brown); color: var(--white); font-size: 17px; }
.btn-sand { background: var(--sand); color: var(--ink); font-size: 17px; }
.btn-sand:hover { color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  align-self: flex-start; display: inline-block;
  border-radius: 999px; font-weight: 800;
}
.pill-sand { background: var(--sand); color: var(--brown); padding: 6px 16px; font-size: 14px; }
.tag { padding: 4px 12px; font-size: 12px; letter-spacing: .8px; }

/* Hero */
.hero { padding-block: 72px 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; gap: 24px; }
.hero-copy .lede { font-size: 20px; max-width: 520px; }
.hero-media { flex: 1 1 420px; min-width: 0; gap: 16px; }
.media-frame {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 28px; background: var(--sand);
  overflow: hidden; position: relative; z-index: 1;
}
.media-frame video, .media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cue-chip {
  align-self: flex-end; background: var(--white); border-radius: 20px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; margin-top: -48px; margin-right: 16px;
  box-shadow: 0 2px 8px rgba(59, 36, 23, .15); position: relative; z-index: 2;
}
.cue-chip .old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.cue-chip .new { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--accent); }

/* Stats band */
.stats { background: var(--brown); color: var(--cream); }
.stats .wrap {
  padding-block: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; text-align: center;
}
.stats .stat { flex: 1 1 200px; font-weight: 700; }
.stats .num { font-family: var(--display); font-weight: 600; font-size: 40px; color: var(--sand); font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding-block: 88px; gap: 40px; }
.section-head { gap: 12px; }
.section-head h2 { max-width: 640px; }
.section-head p { font-size: 19px; }

/* Cue cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cue-card { background: var(--white); border-radius: 24px; padding: 28px; gap: 16px; }
.cue-play {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%;
  padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
}
.cue-play video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cue-play .hint {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--ink); border-radius: 999px; padding: 6px 12px 6px 8px;
  font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(59, 36, 23, .15);
}
.cue-play.is-playing .hint { display: none; }
.label { font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.term { font-size: 18px; line-height: 1.35; color: var(--muted); }
.cue { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.25; color: var(--brown); }
.pair { gap: 2px; }

/* Videos */
.videos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.videos-head .stack { gap: 8px; }
.videos-head .more { font-weight: 800; font-size: 17px; padding: 10px 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.video-card:hover { color: var(--ink); }
.video-card:hover .thumb img { transform: scale(1.03); }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } }
.thumb .age {
  position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--white);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800;
}
.video-card .title { font-weight: 800; font-size: 18px; line-height: 1.3; }
.video-card .artist { font-size: 15px; line-height: 1.4; color: var(--muted); }
.challenge {
  background: var(--cream); border-radius: 24px; padding: 28px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.challenge .stack { gap: 6px; flex: 1 1 420px; min-width: 0; }
.challenge .tag { background: var(--accent); color: var(--white); }
.challenge .name { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--brown); }

/* Guide */
.guide-section { padding-block: 88px; }
.guide {
  background: var(--sand); border-radius: 32px; padding: clamp(28px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
}
.guide-cover {
  display: block; flex: 1 1 200px; min-width: 0; max-width: 260px; width: 100%; height: auto;
  aspect-ratio: 910 / 1288; border-radius: 16px; background: var(--white);
  box-shadow: 0 6px 18px rgba(59, 36, 23, .18); transform: rotate(-2deg);
}
@media (max-width: 600px) { .guide-cover { max-width: 200px; transform: none; } }
.guide-body { flex: 999 1 420px; min-width: 0; gap: 16px; }
.guide-body h2 { font-size: clamp(30px, 4.5vw, 40px); }
.guide-body p { font-size: 18px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1 1 260px; }
.small-note { font-size: 14px; color: var(--brown); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 800; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 14px;
  background: var(--white); color: var(--ink); width: 100%;
}
.guide .field input { border: 2px solid var(--brown); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 800; font-size: 16px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--brown); }
.form-status.err { color: var(--link-hover); }

/* About */
.about { padding-block: 24px 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.about .media-frame { flex: 1 1 360px; min-width: 0; max-width: 520px; background: var(--sage); }
.about .media-frame img { object-position: 40% center; }
.about .stack { flex: 1 1 460px; min-width: 0; gap: 16px; }
.about p { font-size: 19px; }

/* Club */
.club { background: var(--teal); color: var(--white); }
.club .wrap {
  padding-block: 72px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.club .stack { flex: 1 1 480px; min-width: 0; gap: 12px; }
.club h2 { color: var(--white); font-size: clamp(32px, 4.5vw, 40px); }
.club p { font-size: 19px; max-width: 560px; }
.club .tag { background: var(--sand); color: var(--ink); padding: 6px 14px; font-size: 13px; }
.club-form { flex: 1 1 380px; min-width: 0; max-width: 480px; gap: 10px; }
.club-form .inline-form .field { flex: 1 1 220px; }
.club-form label { color: var(--white); }
.club-form input[type="email"] { border: 0; }
.club-form .form-status.ok { color: var(--sand); }
.club-form .form-status.err { color: #FFD2C8; }
.btn-white { background: var(--white); color: var(--teal); }
.btn-white:hover { color: var(--teal); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); }
.site-footer .wrap {
  padding-block: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.site-footer .logo img { display: block; height: 32px; width: auto; }
.site-footer .tagline { font-size: 15px; color: #E8D9BE; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-weight: 700; font-size: 15px; }
.footer-links a, .site-footer a { color: var(--cream); }
.footer-links a:hover, .site-footer a:hover { color: var(--sand); }

/* Partners page */
.p-hero { padding-block: 72px 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.p-hero .hero-copy { flex: 1 1 520px; gap: 20px; }
.p-hero h1 { font-size: clamp(38px, 6.5vw, 58px); line-height: 1.05; }
.p-hero .lede { max-width: 560px; }
.p-hero .media-frame { flex: 1 1 380px; min-width: 0; aspect-ratio: 1 / 1; max-width: 460px; background: var(--peach); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-tile { background: var(--cream); border-radius: 22px; padding: 24px; gap: 6px; }
.stat-tile .num { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--brown); font-variant-numeric: tabular-nums; }
.stat-tile .what { font-weight: 800; }
.stat-tile .note { font-size: 15px; color: var(--muted); }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.platform { border: 2px solid var(--line); border-radius: 22px; padding: 24px; gap: 8px; }
.platform .kicker { font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.platform .who { font-weight: 800; font-size: 20px; }
.platform .where { color: var(--muted); }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.package { background: var(--white); border-radius: 24px; padding: 28px; gap: 14px; border: 2px solid transparent; }
.package.flagship { border-color: var(--accent); }
.package .name { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.package .desc { color: var(--brown); }
.package .best { font-size: 15px; color: var(--muted); }
.package .ask { margin-top: auto; align-self: flex-start; font-weight: 800; font-size: 17px; padding: 10px 0; }
.kit-section { padding-block: 0 80px; }
.kit {
  background: var(--sand); border-radius: 28px; padding: 36px clamp(24px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.kit .title { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--brown); }
.kit .stack { gap: 6px; color: var(--brown); }
.contact { background: var(--brown); color: var(--cream); }
.contact .wrap { padding-block: 80px; display: flex; flex-wrap: wrap; gap: 48px; }
.contact .intro { flex: 1 1 360px; min-width: 0; gap: 14px; }
.contact h2 { color: var(--cream); }
.contact .intro p { font-size: 19px; color: #F1E3C6; }
.contact .intro a { color: var(--sand); font-weight: 800; font-size: 19px; overflow-wrap: anywhere; }
.contact form { flex: 1 1 460px; min-width: 0; gap: 16px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 16px; }
.contact .row .field { flex: 1 1 200px; }
.contact .field input, .contact .field select, .contact .field textarea { border: 0; background: var(--cream); }
.contact .form-status.ok { color: var(--sand); }
.contact .form-status.err { color: #FFD2C8; }
.contact button { align-self: flex-start; }
.p-footer .wrap { padding-block: 32px; font-size: 15px; gap: 16px; }
.p-footer .ip { color: #E8D9BE; }

@media (max-width: 480px) {
  .hero, .p-hero { padding-block: 48px 48px; }
  .section, .guide-section { padding-block: 64px; }
  .cue-chip { margin-right: 8px; }
}
