/* Miss Karol Dance Academy. Brand red from the logo (#991b1e) on a warm cream canvas.
   Light tokens on :root; dark tokens twice (device setting, and the header toggle). */
:root {
  color-scheme: light;
  --bg: #faf5ec;          /* warm cream, not white */
  --bg-alt: #f1e7d6;
  --card: #fffbf4;
  --ink: #2a1f1c;
  --muted: #5c4f49;
  --line: #ddcfb8;
  --head: #7d1518;        /* headings */
  --link: #991b1e;
  --brand: #991b1e;
  --primary: #991b1e;
  --primary-ink: #ffffff;
  --head-bg: #fffaf2;
  --hero-bg: #8a181b;
  --hero-bg2: #5a0f12;
  --foot-bg: #2b1b19;
  --foot-ink: #efe5d6;
  --foot-link: #f3d9a4;
  --gold: #d8a645;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #171211; --bg-alt: #211917; --card: #261d1b; --ink: #f1e8dc; --muted: #c6b8aa; --line: #3d302c;
    --head: #f6ecdc; --link: #f0c98a; --brand: #e3a15b; --primary: #b3262b; --primary-ink: #ffffff;
    --head-bg: #120e0d; --hero-bg: #5e1013; --hero-bg2: #2c0a0b; --foot-bg: #0f0b0a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171211; --bg-alt: #211917; --card: #261d1b; --ink: #f1e8dc; --muted: #c6b8aa; --line: #3d302c;
  --head: #f6ecdc; --link: #f0c98a; --brand: #e3a15b; --primary: #b3262b; --primary-ink: #ffffff;
  --head-bg: #120e0d; --hero-bg: #5e1013; --hero-bg2: #2c0a0b; --foot-bg: #0f0b0a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--head); font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 .6em; }
h3 { font-size: 23px; margin: .3em 0 .4em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.lead { font-size: 21px; }
.note { color: var(--muted); font-size: 16px; }

/* Header */
header.site { background: var(--head-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 14px; min-height: 80px; }
.brand { display: block; margin-right: auto; padding: 10px 0; }
.brand img { display: block; width: 300px; max-width: 100%; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.theme-btn { display: none; place-items: center; width: 42px; height: 42px; padding: 0; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; order: 3; }
.js .theme-btn { display: grid; }
.theme-btn:hover { background: var(--bg-alt); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
.menu-btn { display: none; font: inherit; font-weight: 600; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; cursor: pointer; order: 2; }
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; }
  .brand img { width: 220px; }
  .js .menu-btn { display: block; }
  .nav { order: 4; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .js .nav:not(.open) { display: none; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
}
@media (max-width: 400px) { .brand img { width: 180px; } .bar { gap: 8px; } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-cream { background: #faf5ec; color: #7d1518; }
.btn-cream:hover { background: #fff; }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: transparent; color: var(--head); border-color: var(--head); }
.btn-outline:hover { background: var(--bg-alt); }

/* Hero */
.hero { padding: 0; color: #fff; background: radial-gradient(120% 90% at 80% 20%, var(--hero-bg), var(--hero-bg2)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(44px, 7vw, 78px); margin: 6px 0 16px; }
.hero .kicker { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f3d9a4; }
.hero-lead { font-size: clamp(19px, 2.2vw, 23px); max-width: 34em; margin: 0; color: #fbefe0; }
.hero-dancer { justify-self: center; width: 100%; max-width: 340px; opacity: .95; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-dancer { grid-row: 1; max-width: 150px; justify-self: start; }
}

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 24px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card > svg { color: var(--brand); }
.card h2 { font-size: 26px; }
.card p:last-child { margin-bottom: 0; }

/* Legacy */
.legacy { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; max-width: 960px; }
.legacy-dancer { width: 220px; }
:root[data-theme="dark"] .legacy-dancer { content: url(/img/dancer-cream.webp); opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .legacy-dancer { content: url(/img/dancer-cream.webp); opacity: .85; } }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 700px) { .legacy { grid-template-columns: 1fr; gap: 20px; } .legacy-dancer { width: 120px; } }

/* Page head */
.page-head { background: radial-gradient(120% 120% at 85% 0%, var(--hero-bg), var(--hero-bg2)); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(36px, 5vw, 54px); }
.page-head p { margin: 10px 0 0; font-size: 20px; color: #fbefe0; }

/* Prose */
.prose h2 { margin-top: 1.4em; font-size: clamp(26px, 3vw, 32px); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }
blockquote { margin: 0 0 1em; padding: 18px 24px; border-left: 4px solid var(--brand); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 21px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; }

/* Call to action band */
.band { background: var(--hero-bg2); color: #fff; }
.band h2 { color: #fff; }
.band p { margin: 0; color: #fbefe0; }
.band-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band .btns { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { display: flex; gap: 14px; margin-bottom: 22px; }
.facts svg { flex: none; color: var(--brand); margin-top: 4px; }
.facts strong { display: block; }

/* Footer */
footer.site { background: var(--foot-bg); color: var(--foot-ink); padding: 56px 0 28px; font-size: 16px; }
footer.site a { color: var(--foot-link); }
footer.site h2 { color: #fff; font-size: 19px; font-family: inherit; margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
.foot-dancer { display: block; width: 56px; margin-bottom: 14px; opacity: .9; }
.fine { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding-top: 18px; color: #d4c8b8; font-size: 15px; }
