/* ═══════════════════════════════════════════════════════════════════════════
   KC Art Van Gogh — theme "starry-night"

   Taken from the logo, not invented. The mark is Starry Night: deep navy
   swirls, sunflower gold, the KC skyline in silhouette, a gold rim.

   Navy dominates and carries every call to action. Gold is the sparkle — the
   stars and the sunflowers — so it is spent only on emphasis: the featured
   membership tier, active navigation, hover. That is exactly the ratio in the
   logo.

   The four studio materials keep their own hues, but they are subordinate now:
   they identify an activity and appear nowhere else on a page.

   Token names match library/themes.css so library components drop in unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --surface:      #f6f7fa;
  --surface-2:    #ecEEF5;
  --surface-sunk: #e1e5f0;
  --panel:        #ffffff;
  --veil:         rgba(246,247,250,.90);

  --ink:          #101a3c;
  --ink-muted:    #55608a;
  --border:       #d5dae8;
  --border-strong:#b9c1d8;

  /* navy — the brand, and every action */
  --accent:       #1b2f75;
  --accent-deep:  #12205e;
  --accent-ink:   #ffffff;
  --accent-wash:  #e8ecf8;

  /* gold — the sparkle. Emphasis only, never a whole surface. */
  --gold:         #d9a108;
  --gold-bright:  #f5c518;
  --gold-ink:     #3d2c00;
  --gold-wash:    #fdf4d9;

  /* the four studios */
  --clay:    #b4552d;
  --resin:   #0e7c86;
  --glow:    #7b2d8e;
  --plaster: #5f6480;

  --shadow:      0 1px 2px rgba(16,26,60,.06);
  --shadow-lift: 0 14px 36px -14px rgba(16,26,60,.30);

  --font-display: "Familjen Grotesk", "Trebuchet MS", system-ui, sans-serif;
  --font-prose:   "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui:      "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 1140px;
  --motion: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface:      #0c1128;
    --surface-2:    #121935;
    --surface-sunk: #182043;
    --panel:        #141c3b;
    --veil:         rgba(12,17,40,.80);
    --ink:          #eef1fb;
    --ink-muted:    #9aa5cc;
    --border:       #2a3460;
    --border-strong:#3d4a80;
    --accent:       #8fa8f0;
    --accent-deep:  #aabdf7;
    --accent-ink:   #0c1128;
    --accent-wash:  #1a2450;
    --gold:         #f5c518;
    --gold-bright:  #ffd85c;
    --gold-ink:     #2a1f00;
    --gold-wash:    #2a2410;
    --clay:    #e08a5c;
    --resin:   #4bbfc9;
    --glow:    #cf8ade;
    --plaster: #a5abc9;
    --shadow:      0 1px 2px rgba(0,0,0,.5);
    --shadow-lift: 0 14px 36px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --surface:      #0c1128;
  --surface-2:    #121935;
  --surface-sunk: #182043;
  --panel:        #141c3b;
  --veil:         rgba(12,17,40,.80);
  --ink:          #eef1fb;
  --ink-muted:    #9aa5cc;
  --border:       #2a3460;
  --border-strong:#3d4a80;
  --accent:       #8fa8f0;
  --accent-deep:  #aabdf7;
  --accent-ink:   #0c1128;
  --accent-wash:  #1a2450;
  --gold:         #f5c518;
  --gold-bright:  #ffd85c;
  --gold-ink:     #2a1f00;
  --gold-wash:    #2a2410;
  --clay:    #e08a5c;
  --resin:   #4bbfc9;
  --glow:    #cf8ade;
  --plaster: #a5abc9;
  --shadow:      0 1px 2px rgba(0,0,0,.5);
  --shadow-lift: 0 14px 36px -14px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }

/* ── the backdrop ───────────────────────────────────────────────────────────
   The studio's Starry Night painting, carried across from the old site and
   held still behind the page.

   On the ROOT element, as two background layers: the veil first, the painting
   beneath it. A background on the root propagates to the canvas, so it covers
   the viewport however far the page scrolls, with no stacking context to reason
   about.

   Two fixed `z-index: -1` pseudo-elements would also work and were tried
   first. This is preferred only because it is less machinery: no stacking
   context, no negative z-index, one element, and `body` left alone apart from
   going transparent.

   The veil is the part that matters. This site is dark ink on a light ground
   and the painting is a dark swirl; laid on raw it would put #101a3c body copy
   over midnight blue. So the painting is dimmed to a texture in the light theme
   and allowed much further forward in the dark one, where light text sits over
   it comfortably. Both keep text above 4.5:1 against the painting's own
   brightest and darkest pixels — measured, not assumed.

   `background-attachment: fixed` does not hold still on iOS Safari; the image
   scrolls with the page there. A degradation, not a break. */

html {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--veil), var(--veil)),
    url("/img/starry-1600.webp");
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* A phone needs a third of the pixels and none of the detail. */
@media (max-width: 900px) {
  html {
    background-image:
      linear-gradient(var(--veil), var(--veil)),
      url("/img/starry-800.webp");
  }
}

body {
  margin: 0;
  /* Transparent on purpose. A background here would propagate to the canvas
     instead of the root's and hide the painting completely. */
  background: transparent;
  color: var(--ink);
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.0; letter-spacing: -.033em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.08; }
h3 { font-size: 1.18rem; letter-spacing: -.012em; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.eyebrow-gold { color: var(--gold); }

/* ── buttons ──────────────────────────────────────────────────────────────
   Navy is the action colour everywhere. Gold fill is reserved for the single
   highest-value action on a page — membership — so it never competes.        */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 2px; border: 2px solid var(--accent);
  text-decoration: none; cursor: pointer;
  transition: background var(--motion), color var(--motion), transform var(--motion), border-color var(--motion);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-wash); }
.btn-gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.btn-lg { font-size: 1.02rem; padding: .95rem 1.7rem; }

/* ── header ─────────────────────────────────────────────────────────────── */
/* Translucent so the painting runs under the sticky bar rather than being
   sliced off by it — but WITHOUT backdrop-filter. A blurred sticky bar over a
   fixed backdrop is a known compositing hazard (Safari repaints the whole
   layer, and headless capture shows it stale), and the blur was buying very
   little: 92% opacity reads as glass against a busy swirl on its own. */
header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  position: sticky; top: 0; z-index: 30;
}
.bar { display: flex; align-items: center; gap: 1.25rem; padding-block: .7rem; }
.mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.mark img { width: 46px; height: 46px; }
.mark span { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.03; }
.mark span b { display: block; font-weight: 700; color: var(--accent); }
nav { margin-left: auto; display: flex; align-items: center; gap: 1.35rem; font-family: var(--font-ui); font-size: .92rem; font-weight: 500; }
nav a { text-decoration: none; color: var(--ink-muted); padding-block: .2rem; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
nav a.btn { border-bottom: 2px solid var(--accent); }
nav a.btn:hover { border-bottom-color: var(--accent-deep); }
@media (max-width: 940px) { nav .hide-sm { display: none; } .mark span { font-size: 1rem; } }

/* ── bands ──────────────────────────────────────────────────────────────── */
.band { padding-block: clamp(2.75rem, 6.5vw, 4.5rem); }
/* Alternating bands stay distinguishable but no longer block the backdrop. */
.band-sunk { background: color-mix(in srgb, var(--surface-2) 78%, transparent); }
.band-navy { background: var(--accent-deep); color: #fff; }
.band-navy .eyebrow { color: var(--gold-bright); }
.band-navy p { color: #cfd7f2; }
.band-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; max-width: 58ch; }
.band-head p { color: var(--ink-muted); font-size: 1.05rem; }

/* ── media ──────────────────────────────────────────────────────────────── */
figure { margin: 0; }
.shot { overflow: hidden; border-radius: 3px; background: var(--surface-sunk); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4/3; }
.ratio-3x2 { aspect-ratio: 3/2; }
.ratio-1x1 { aspect-ratio: 1/1; }
.ratio-16x9 { aspect-ratio: 16/9; }
figcaption { font-family: var(--font-ui); font-size: .82rem; color: var(--ink-muted); margin-top: .5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: var(--surface-2); padding-block: 2.5rem 3rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; font-family: var(--font-ui); font-size: .9rem; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.foot a { text-decoration: none; color: var(--ink-muted); }
.foot a:hover { color: var(--ink); }
.foot .about { color: var(--ink-muted); max-width: 32ch; line-height: 1.6; }
.foot .logo-foot { width: 64px; height: 64px; margin-bottom: .8rem; }

.todo {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--gold-wash);
  border: 1px dashed var(--gold); border-radius: 2px;
  padding: .1rem .45rem; white-space: nowrap;
}
:root[data-theme="dark"] .todo, :root:not([data-theme="light"]) .todo { color: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
