/* ————————————————————————————————————————————————
   Julia Sturzlbaum — Sopran
   Self-contained stylesheet. Fonts are self-hosted
   (GDPR: no requests to Google). Only external
   requests on the site are the hot-linked photos.
   ———————————————————————————————————————————————— */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-var-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf7f1;
  --bg-raised: #ffffff;
  --ink: #262119;
  --ink-soft: #6c6458;
  --gold: #9a7b2f;
  --gold-soft: #c3a75f;
  --rule: #e4dccc;
  --shadow: 0 18px 40px -18px rgba(38, 33, 25, 0.35);
  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-body: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171410;
    --bg-raised: #201c16;
    --ink: #ece5d8;
    --ink-soft: #a99f8e;
    --gold: #c9a75f;
    --gold-soft: #9a7b2f;
    --rule: #352e24;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ——— header ——— */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.wordmark {
  font-family: var(--serif-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
}
.site-nav a:hover { color: var(--gold); text-decoration: none; }
.lang-switch {
  border: 1px solid var(--rule); border-radius: 2rem;
  padding: 0.25rem 0.85rem !important;
  color: var(--ink) !important;
}
.lang-switch:hover { border-color: var(--gold); }

/* ——— hero ——— */
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
  padding-top: 4.5rem; padding-bottom: 4.5rem;
}
.hero-kicker {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 550; font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.05; letter-spacing: 0.01em;
}
.hero-sub {
  margin-top: 1.4rem; font-size: 1.15rem; color: var(--ink-soft);
  font-style: italic;
}
.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.65rem 1.5rem; border-radius: 2rem;
  font-family: Verdana, Geneva, sans-serif; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { text-decoration: none; background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* ——— portraits (hot-linked, with graceful fallback) ——— */
.portrait { position: relative; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 555 / 720;
  object-fit: cover; object-position: top;
  border-radius: 4px; box-shadow: var(--shadow);
}
.portrait .credit {
  display: block; margin-top: 0.5rem; text-align: right;
  font-size: 0.72rem; color: var(--ink-soft);
  font-family: Verdana, Geneva, sans-serif; letter-spacing: 0.06em;
}
.portrait .fallback {
  display: none; aspect-ratio: 555 / 720;
  border: 1px solid var(--rule); border-radius: 4px;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    var(--bg-raised);
  align-items: center; justify-content: center;
}
.portrait .fallback span {
  font-family: var(--serif-display); font-style: italic;
  font-size: 4rem; color: var(--gold);
}
.portrait.failed img { display: none; }
.portrait.failed .credit { display: none; }
.portrait.failed .fallback { display: flex; }

/* ——— sections ——— */
section { padding: 3.8rem 0; }
section + section { border-top: 1px solid var(--rule); }
.section-title {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 2rem;
}
.section-title::after {
  content: ""; display: block; width: 3.5rem; height: 2px;
  background: var(--gold); margin-top: 0.7rem;
}
.prose { max-width: 46rem; }
.prose p + p { margin-top: 1.1rem; }

.about-grid { display: grid; grid-template-columns: 1fr 0.55fr; gap: 3rem; align-items: start; }

/* ——— season cards ——— */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.card .role {
  font-family: var(--serif-display); font-weight: 650; font-size: 1.25rem;
}
.card .work { font-style: italic; color: var(--ink-soft); }
.card .house {
  margin-top: auto; padding-top: 0.9rem;
  font-family: Verdana, Geneva, sans-serif; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}

/* ——— repertoire ——— */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.rep-col h3 {
  font-family: var(--serif-display); font-weight: 600; font-size: 1.3rem;
  margin-bottom: 1rem; color: var(--gold);
}
.rep-col ul { list-style: none; }
.rep-col li { padding: 0.55rem 0; border-bottom: 1px dotted var(--rule); }
.rep-col li i { color: var(--ink-soft); }

/* ——— press ——— */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
blockquote {
  background: var(--bg-raised); border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 1.6rem 1.8rem;
}
blockquote p {
  font-family: var(--serif-display); font-style: italic;
  font-size: 1.25rem; line-height: 1.5;
}
blockquote cite {
  display: block; margin-top: 1rem; font-style: normal;
  font-family: Verdana, Geneva, sans-serif; font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--ink-soft);
}

/* ——— vita ——— */
.vita { list-style: none; max-width: 46rem; }
.vita li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.2rem;
  padding: 0.8rem 0; border-bottom: 1px dotted var(--rule);
}
.vita .when {
  font-family: Verdana, Geneva, sans-serif; font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--gold); padding-top: 0.35rem;
}

/* ——— contact ——— */
.links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* ——— footer ——— */
.site-footer {
  border-top: 1px solid var(--rule); padding: 2.2rem 0 3rem;
  color: var(--ink-soft); font-size: 0.85rem;
}
.site-footer .credits { margin-top: 0.4rem; font-size: 0.75rem; }

/* ——— responsive ——— */
@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero .portrait { max-width: 420px; }
  .about-grid, .rep-grid, .quotes { grid-template-columns: 1fr; }
  .about-grid .portrait { max-width: 420px; }
  .vita li { grid-template-columns: 1fr; gap: 0.1rem; }
  .site-nav a:not(.lang-switch) { display: none; }
}
