/* kayadshead.org — structural stylesheet.
   Working default theme only: the aesthetic pass is a separate workstream.
   Splash = dark-on-light (intentional flip); inner pages = light-on-dark. */

:root {
  --ink-dark: #17140f;        /* splash text on near-white hero */
  --ground-dark: #16130f;     /* inner-page ground */
  --ink-light: #ece7de;       /* inner-page text */
  --muted: #b3aa9c;
  --accent: #c2992f;          /* placeholder brass — to be settled in the aesthetic brief */
  --display: "Georgia", "Times New Roman", serif;   /* placeholder faces likewise */
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 42rem;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; font-family: var(--body); line-height: 1.6; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 0.4rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------------- Home (merged splash) ---------------- */

.home { color: var(--ink-dark); background: #f5f3ef; }

.home-stage { position: relative; min-height: 100vh; min-height: 100dvh; }

.splash-hero { position: absolute; inset: 0; z-index: 0; }
.splash-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, center); /* keeps Kay centered as the crop changes */
}

/* Header overlaid on the hero: dark text on the pale ground */
.home-header { position: relative; z-index: 2; }
.home-header .logo { color: var(--ink-dark); }
.home-header nav a { color: var(--ink-dark); }
.home-header nav a:hover, .home-header nav a:focus-visible { color: var(--accent); }

.home-overlays {
  position: relative; z-index: 1;
  min-height: calc(100vh - 6rem); min-height: calc(100dvh - 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    ". reviews"
    ". ."
    "video .";
  padding: clamp(1rem, 3vw, 2.5rem);
  gap: 1rem;
}
.home-overlays > * { min-width: 0; }

.splash-reviews { grid-area: reviews; justify-self: end; text-align: right; }
.splash-video { grid-area: video; align-self: end; }

/* Rotating press quotes: crossfade, pause on hover, static under reduced motion */
.splash-reviews { max-width: 24rem; display: grid; }
.review {
  grid-area: 1 / 1;   /* all quotes share one cell; pane sizes to the longest */
  margin: 0;
  opacity: 0; transition: opacity 0.9s ease;
  font-family: var(--display); font-style: italic;
}
.review.is-active { opacity: 1; }
.review p { margin: 0 0 0.3rem; font-size: clamp(0.95rem, 1.8vw, 1.15rem); }
.review cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

.splash-video { max-width: min(24rem, 40vw); }
.splash-video video { width: 100%; border: 1px solid rgba(23, 20, 15, 0.25); }
.video-credit { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--ink-dark); opacity: 0.75; }

/* Narrow screens: overlays stack instead of pinning */
@media (max-width: 40rem) {
  .home-overlays {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "reviews" "." "video";
  }
  .splash-reviews { justify-self: start; text-align: left; }
  .splash-video { max-width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  .review { transition: none; }
}

/* Footer on the home page keeps the light ground */
.home-footer { border-top-color: rgba(23, 20, 15, 0.15); color: #5c554a; }
.home-footer a { color: var(--ink-dark); }

/* ---------------- Inner pages ---------------- */

.inner { background: var(--ground-dark); color: var(--ink-light); }
.inner a { color: var(--accent); }
.inner a:hover, .inner a:focus-visible { color: var(--ink-light); }

.site-header {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: baseline; justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}
.site-header .logo { text-decoration: none; color: var(--ink-light); }
.site-header .logo-name { font-size: 1.2rem; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.4rem;
}
.site-header nav a {
  text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem;
}
.site-header nav a[aria-current="page"] { color: var(--ink-light); border-bottom: 1px solid var(--accent); }

.hero { max-height: 55vh; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }

main { max-width: var(--measure); margin: 0 auto; padding: 2rem 1rem 4rem; }

.bio-section, .production { margin: 0 0 3rem; }
.bio-section h2, .production h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 0.2rem; }
.production-meta { margin: 0 0 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

.section-body figure { margin-top: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem; margin-top: 1rem;
}

.video { margin-top: 1rem; aspect-ratio: 16 / 9; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }

.site-footer {
  border-top: 1px solid rgba(236, 231, 222, 0.15);
  max-width: var(--measure); margin: 0 auto;
  padding: 2rem 1rem 3rem;
  font-size: 0.9rem; color: var(--muted);
}
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .related { margin-top: 1.5rem; }
.site-footer .copyright { margin-top: 2rem; font-size: 0.8rem; }

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