/* ============================================================
   chaeyoungpiano.com — stylesheet
   Colors and fonts are defined once below; change them here.
   ============================================================ */

:root {
  --bg: #f7f4ee;          /* warm ivory page background */
  --bg-alt: #efeae1;      /* alternating section background */
  --ink: #1c1a17;         /* main text */
  --ink-soft: #5d5850;    /* secondary text */
  --line: #d9d2c5;        /* hairlines */
  --accent: #8a6d3b;      /* muted gold */
  --hero-ink: #f7f4ee;    /* text on the dark hero */
  --hero-bg: #1c1a17;     /* hero fallback when no photo */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1080px;
  --gutter: clamp(16px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Placeholder marker (remove class once real text is in) ---------- */
.ph {
  background: rgba(138, 109, 59, 0.12);
  outline: 1px dashed rgba(138, 109, 59, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--hero-ink);
  transition: color 0.3s;
}
.site-header.scrolled .brand { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hero-ink);
  opacity: 0.85;
  transition: color 0.3s, opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.site-header.scrolled .nav-links a { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--hero-ink);
}
.site-header.scrolled .nav-toggle { color: var(--ink); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--hero-ink);
  background-color: var(--hero-bg);
  /* Put your main photo at images/hero.jpg */
  background-image:
    linear-gradient(180deg, rgba(20, 18, 16, 0.25) 0%, rgba(20, 18, 16, 0.15) 45%, rgba(20, 18, 16, 0.75) 100%),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-inner {
  width: 100%;
  padding-bottom: clamp(56px, 10vh, 120px);
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.85;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 20px 0 0;
  max-width: 34ch;
  opacity: 0.92;
}
.hero-note {
  position: absolute;
  top: 88px;
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vw, 140px) 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin: 0;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-8px);
}

h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: #d8d0c2 url("images/portrait.jpg") center / cover no-repeat;
  position: relative;
}
.portrait-label {
  position: absolute;
  inset: auto 12px 12px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.bio p { margin: 0 0 1.2em; }
.about-grid.no-portrait { grid-template-columns: 1fr; }
.about-grid.no-portrait .portrait { display: none; }
.about-grid.no-portrait .bio { max-width: 760px; }
.facts:not(:has(> div:nth-child(2):not([hidden]))) { grid-template-columns: 1fr; }
.bio .lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  margin-bottom: 1em;
}
.facts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 6px 0; font-size: 15px; display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; line-height: 1.5; }
.facts li em { font-style: normal; color: var(--ink-soft); }
.facts li .yr {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- Performances ---------- */
.perf-group + .perf-group { margin-top: 64px; }
.perf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.perf {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.perf-date {
  font-family: var(--serif);
  line-height: 1.1;
}
.perf-date .d { font-size: 34px; display: block; }
.perf-date .my {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.perf-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 4px;
}
.perf-meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.perf-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.perf-link:hover { background: var(--ink); color: var(--bg); }

.past .perf { grid-template-columns: 110px 1fr; padding: 18px 0; }
.past .perf-date .d { font-size: 15px; font-family: var(--sans); display: inline; color: var(--ink-soft); }
.past .perf-title { font-size: 19px; }

/* ---------- Press ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.quote {
  margin: 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--ink);
}
.quote blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.4;
}
.quote figcaption {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quote figcaption a { color: var(--accent); text-decoration: none; margin-left: 8px; }
.quote figcaption a:hover { text-decoration: underline; }

.articles { margin-top: 72px; }
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  text-decoration: none;
  align-items: baseline;
}
.article-list .outlet {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article-list .headline { font-family: var(--serif); font-size: 20px; line-height: 1.35; }
.article-list .arrow { color: var(--accent); transition: transform 0.2s; }
.article-list a:hover .arrow { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact {
  background: var(--hero-bg);
  color: var(--hero-ink);
}
.contact .section-head::after { background: rgba(247, 244, 238, 0.2); }
.contact .section-head .num { color: #c4a46b; }
.contact h3 { color: rgba(247, 244, 238, 0.6); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.contact-big {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 244, 238, 0.35);
  word-break: break-word;
}
.contact-big:hover { border-bottom-color: currentColor; }
.contact p { margin: 0 0 6px; }
.contact .muted { color: rgba(247, 244, 238, 0.65); font-size: 15px; }
.socials { list-style: none; margin: 0; padding: 0; }
.socials li { padding: 4px 0; }
.socials a { text-decoration: none; border-bottom: 1px solid rgba(247, 244, 238, 0.3); }
.socials a:hover { border-bottom-color: currentColor; }
.contact .ph { background: rgba(196, 164, 107, 0.18); outline-color: rgba(196, 164, 107, 0.6); }

.site-footer {
  background: var(--hero-bg);
  color: rgba(247, 244, 238, 0.45);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(247, 244, 238, 0.12);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .site-header:has(.nav-links.open) { background: var(--bg); }
  .nav-links a { color: var(--ink); display: block; padding: 12px 0; }

  .facts { grid-template-columns: 1fr; gap: 28px; }

  .perf { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .perf-date .d { display: inline; font-size: 24px; margin-right: 8px; }
  .perf-link { justify-self: start; margin-top: 8px; }
  .past .perf { grid-template-columns: 1fr; gap: 2px; }

  .article-list a { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .article-list .outlet { grid-column: 1 / -1; }

  .hero-note { display: none; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
