:root {
  --kd-bg: #ffffff; --kd-surface: #f7f7f5; --kd-text: #222222; --kd-muted: #6b6b6b;
  --kd-accent: #803d7f; --kd-on-accent: #ffffff; --kd-accent-2: #fb9651; --kd-accent-ink: #803d7f;
}

/* Strict small scale: 13 / 15 / 17 / 22 / 30 / display */
:root {
  --f-xs: 0.8125rem;
  --f-s: 0.9375rem;
  --f-m: 1.0625rem;
  --f-l: 1.375rem;
  --f-xl: clamp(1.5rem, 1.1rem + 1.6vw, 1.875rem);
  --f-display: clamp(1.75rem, 1rem + 3.4vw, 3.25rem);
  --hair: 1px solid color-mix(in srgb, var(--kd-text) 16%, transparent);
  --margin: clamp(1.25rem, 5vw, 5rem);
  --sans: "Inter", system-ui, sans-serif;
  --geo: "Jost", "Inter", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kd-bg);
  color: var(--kd-text);
  font-family: var(--sans);
  font-size: var(--f-m);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--geo);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}
h1 { font-size: var(--f-display); }
h2 { font-size: var(--f-xl); }
h3 { font-size: var(--f-l); font-weight: 400; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--kd-accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--kd-accent);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--kd-bg); color: var(--kd-text);
  padding: 0.5rem 1rem; border: var(--hair); z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 82rem; margin: 0 auto; padding: 0 var(--margin); }

/* ---------- Black bands (top strip, CTA, footer) ---------- */
.topbar, .cta, .site-footer {
  --kd-bg: #111111; --kd-surface: #111111; --kd-text: #ffffff; --kd-muted: #b3b3b3; --kd-accent-ink: #fb9651;
  --hair: 1px solid color-mix(in srgb, var(--kd-text) 16%, transparent);
  background: var(--kd-bg); color: var(--kd-text);
}
.topbar :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--kd-accent-2); }

/* ---------- Top strip ---------- */
.topbar { font-size: var(--f-xs); letter-spacing: 0.04em; }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 0 1.5rem;
  min-height: 36px;
}
.topbar a { color: var(--kd-text); text-decoration: none; display: inline-block; padding: 0.45rem 0; }
.topbar a:hover { color: var(--kd-accent-ink); }
.topbar p { margin: 0; color: var(--kd-text); display: none; }
@media (min-width: 48rem) { .topbar p { display: block; } }

/* ---------- Header with tabs ---------- */
.site-header {
  border-bottom: var(--hair);
  background: var(--kd-bg);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1rem; padding-bottom: 0;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--kd-text); padding-bottom: 1rem; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--geo); font-size: var(--f-xs); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--kd-muted); display: none;
}
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.tabs a {
  display: block;
  padding: 0.6rem 0.7rem 0.85rem;
  font-family: var(--geo); font-size: var(--f-s); letter-spacing: 0.08em;
  color: var(--kd-text); text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--kd-accent-ink); }
.tabs a[aria-current="page"] { border-bottom-color: var(--kd-accent); color: var(--kd-accent-ink); }

@media (min-width: 60rem) {
  .site-header .wrap { flex-wrap: nowrap; padding-top: 1.25rem; }
  .brand img { height: 52px; }
  .brand span { display: inline; }
  .tabs { align-self: flex-end; }
}

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: var(--geo); font-size: var(--f-s); letter-spacing: 0.12em;
  background: var(--kd-text); color: var(--kd-bg);
  text-decoration: none; border: 1px solid var(--kd-text);
}
.btn:hover { background: var(--kd-accent); border-color: var(--kd-accent); color: var(--kd-on-accent); }
.link {
  font-family: var(--geo); font-size: var(--f-s); letter-spacing: 0.08em;
  color: var(--kd-accent-ink); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: var(--kd-text); }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3rem, 8vw, 7rem); }
.hero .wrap { display: grid; gap: 2rem; }
.hero-text { align-self: center; }
.name {
  font-family: var(--geo); font-size: var(--f-xs); font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--kd-muted);
  margin-bottom: 1.5rem;
}
.rule {
  display: block; width: 3rem; height: 0; margin: 1.5rem 0;
  border-top: 1px solid var(--kd-accent);
}
.rule::after {
  content: ""; display: block; width: 1rem; margin-top: 3px;
  border-top: 1px solid var(--kd-accent-2);
}
.hero-text p.lede { color: var(--kd-muted); font-size: var(--f-m); max-width: 34ch; }
.frame { margin: 0; border: var(--hair); padding: clamp(0.5rem, 1.2vw, 0.9rem); background: var(--kd-bg); }
.frame .clip { overflow: hidden; }
.hero .frame img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.hero figcaption, .exhibit figcaption {
  font-size: var(--f-xs); color: var(--kd-muted); padding-top: 0.75rem; letter-spacing: 0.02em;
}

@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 5rem); }
  .hero .frame { order: 2; }
  .hero-text { order: 1; }
}

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 20ch; }
.page-head p { color: var(--kd-muted); margin-top: 1.25rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7.5rem) 0; }
.section + .section { border-top: var(--hair); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 40rem; }
.section-head p { color: var(--kd-muted); margin-top: 1rem; }
.surface { background: var(--kd-surface); }
.muted { color: var(--kd-muted); margin-top: 1rem; }
.text h2 + .muted, .split h2 + p { margin-top: 1rem; }
.split h2 { margin-bottom: 1rem; }
.split .frame { margin-top: 0; }

/* Exhibition pair: big image + short text */
.exhibit { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.exhibit .frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.exhibit.wide .frame img { aspect-ratio: 3 / 2; }
@media (min-width: 56rem) {
  .exhibit { grid-template-columns: 7fr 5fr; }
  .exhibit.flip { grid-template-columns: 5fr 7fr; }
  .exhibit.flip > figure { order: 2; }
  .exhibit .text { position: sticky; top: 2rem; }
}

/* Program list: hairline index, not cards */
.index { list-style: none; margin: 0; padding: 0; border-top: var(--hair); }
.index > li { padding: 1.4rem 0; border-bottom: var(--hair); }
.index h3 { margin-bottom: 0.4rem; }
.index p { color: var(--kd-muted); margin: 0; font-size: var(--f-s); }
@media (min-width: 48rem) {
  .index.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); border-top: 0; }
  .index.two > li:nth-child(-n+2) { border-top: var(--hair); }
}

/* Three quiet columns */
.columns { display: grid; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.columns > li { border-top: 1px solid var(--kd-text); padding-top: 1.25rem; }
.columns h3 { margin-bottom: 0.75rem; }
.columns p { color: var(--kd-muted); font-size: var(--f-s); }
@media (min-width: 52rem) {
  .columns { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .columns.two { grid-template-columns: repeat(2, 1fr); }
}
.muted-head { font-size: var(--f-m); font-family: var(--sans); font-weight: 500; margin-bottom: 1.25rem; }
.split > .muted { align-self: end; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: var(--hair); }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem;
  padding: 1.5rem 0; border-bottom: var(--hair);
}
.steps > li::before {
  content: counter(step);
  font-family: var(--geo); font-weight: 300; font-size: var(--f-l); color: var(--kd-accent-ink);
  line-height: 1.2;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--kd-muted); font-size: var(--f-s); margin: 0; }

/* Plain lists with hairlines */
.plain { list-style: none; margin: 0; padding: 0; border-top: var(--hair); }
.plain li { padding: 0.9rem 0; border-bottom: var(--hair); font-family: var(--geo); font-weight: 300; font-size: var(--f-l); line-height: 1.35; }
.plain.small li { font-family: var(--sans); font-weight: 400; font-size: var(--f-m); }

.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.values li { font-family: var(--geo); font-weight: 300; font-size: var(--f-xl); letter-spacing: 0.04em; }

/* Hours table */
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; font-size: var(--f-s); }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: var(--hair); font-weight: 400; }
.hours td { text-align: right; color: var(--kd-muted); }
.hours caption { text-align: left; font-family: var(--geo); font-size: var(--f-l); font-weight: 300; padding-bottom: 0.75rem; }

/* Quote */
.mission {
  margin: 0; padding: 0 0 0 clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--kd-accent);
  font-family: var(--geo); font-weight: 300; font-size: var(--f-l); line-height: 1.5;
}
.mission p { max-width: 48ch; }

/* Staff */
.staff { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--hair); }
.staff li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-bottom: var(--hair); }
.staff .who { font-family: var(--geo); font-size: var(--f-l); font-weight: 300; }
.staff .role { color: var(--kd-muted); font-size: var(--f-s); }

/* FAQ */
.faq { border-top: var(--hair); max-width: 52rem; }
.faq details { border-bottom: var(--hair); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--geo); font-weight: 300; font-size: var(--f-l); line-height: 1; color: var(--kd-accent-ink); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { font-size: var(--f-m); font-family: var(--sans); font-weight: 500; line-height: 1.4; }
.faq summary:hover h3 { color: var(--kd-accent-ink); }
.faq .answer { padding: 0 0 1.5rem; color: var(--kd-muted); font-size: var(--f-s); }

/* Notice (store, small callouts): hairline frame */
.notice {
  border: var(--hair); padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.notice h2 { margin-bottom: 0.75rem; }
.notice p { color: var(--kd-muted); margin-bottom: 0; }
@media (min-width: 48rem) { .notice { grid-template-columns: 1fr auto; } }
.notice .tag {
  font-family: var(--geo); font-size: var(--f-xs); letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--kd-muted); margin-bottom: 1rem;
}

/* Families grid of short entries */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }

/* CTA */
.cta { text-align: left; }
.cta h2 { font-size: var(--f-display); margin-bottom: 1.25rem; max-width: 16ch; }
.cta p { color: var(--kd-text); }
.section.cta { border-top: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--hair); padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: var(--f-s); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img {
  height: 56px; width: auto; margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem; border-radius: 6px; background: var(--kd-on-accent);
}
.site-footer h2 {
  font-size: var(--f-xs); font-family: var(--geo); font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--kd-muted); margin-bottom: 1rem;
}
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer a { color: var(--kd-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--kd-text) 25%, transparent); }
.site-footer a:hover { color: var(--kd-accent-ink); border-bottom-color: var(--kd-accent); }
.site-footer .hours { max-width: 18rem; font-size: var(--f-xs); }
.site-footer .hours th, .site-footer .hours td { padding: 0.3rem 0; }
.fine { margin-top: 3rem; padding-top: 1.5rem; border-top: var(--hair); color: var(--kd-muted); font-size: var(--f-xs); }

/* ---------- Hover/focus transitions only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tabs a, .btn, .link, .site-footer a, .topbar a, .faq summary h3 {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  }
  .frame { transition: border-color 0.4s ease; }
  .frame img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .frame:hover { border-color: color-mix(in srgb, var(--kd-accent) 45%, transparent); }
  .frame:hover .clip img { transform: scale(1.025); }
  .btn:hover { transform: none; }
}
