/* David Southorn — violinist site. Plain CSS, no frameworks, no build step. */

:root {
  --ink: #171310;
  --ink-soft: #2a241d;
  --paper: #faf7f0;
  --paper-dim: #f1ebdf;
  --gold: #b8892e;
  --gold-light: #d9b36a;
  --muted: #6f6455;
  --line: rgba(23, 19, 16, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none;
}
.nav:not(.scrolled) .brand { color: #fff; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; opacity: 0.85;
}
.nav:not(.scrolled) .nav-links a { color: #fff; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--gold-light); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: inherit;
}
.nav:not(.scrolled) .menu-toggle { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  position: relative; color: #fff;
  background: #0d0b08 url("assets/gallery/hero.jpg") center 30% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.88) 0%, rgba(10,8,5,0.35) 45%, rgba(10,8,5,0.25) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 28px 12vh; max-width: 1200px; margin: 0 auto; width: 100%; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(52px, 9vw, 110px); line-height: 1.02; letter-spacing: 0.01em;
}
.hero .roles {
  margin-top: 16px; font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 300; letter-spacing: 0.06em; opacity: 0.92;
}
.hero .roles span { margin: 0 10px; color: var(--gold-light); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 15px 34px; border: 1px solid transparent; transition: all 0.25s ease;
}
.btn-gold { background: var(--gold); color: #14100a; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { margin-bottom: 54px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1;
}
.section-head .eyebrow { color: var(--gold); }
.section-head p.lede {
  margin-top: 14px; font-size: 19px; color: var(--muted); max-width: 640px;
}

.alt { background: var(--ink); color: var(--paper); }
.alt .section-head .eyebrow { color: var(--gold-light); }
.alt .section-head p.lede { color: rgba(250,247,240,0.65); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 64px; }
.about-grid p { margin-bottom: 1.2em; color: #3d362c; font-size: 17.5px; }
.about-grid p strong { color: var(--ink); }
.edu { margin-top: 10px; padding-top: 34px; border-top: 1px solid var(--line); }
.edu h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 12px;
}
.edu ul { list-style: none; }
.edu li { padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 16.5px; }
.edu li:last-child { border-bottom: none; }

/* Positions */
.pos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pos-card {
  border: 1px solid rgba(250,247,240,0.16); padding: 38px 36px;
  background: rgba(250,247,240,0.03); transition: border-color 0.25s ease, transform 0.25s ease;
}
.pos-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.pos-card .role {
  font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--gold-light);
}
.pos-card .org { margin-top: 8px; font-size: 17px; opacity: 0.85; }
a.pos-card { display: block; color: inherit; text-decoration: none; }
.about-full { max-width: 920px; margin: 6px 0 0; color: #3d362c; font-size: 17.5px; }

/* Press */
.quote-block { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-block blockquote {
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 500; font-style: italic; line-height: 1.35;
}
.quote-block cite {
  display: block; margin-top: 22px; font-style: normal;
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.press-note {
  margin-top: 44px; text-align: center; color: var(--muted); font-size: 16px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.press-note strong { color: var(--ink); }

/* Teaching */
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.teach-card {
  background: var(--paper-dim); border: 1px solid var(--line);
  padding: 40px 38px;
}
.teach-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.teach-card p { color: #3d362c; font-size: 16.5px; }

/* Contact */
.contact-box { max-width: 680px; margin: 0 auto; }
.contact-box p { color: var(--muted); margin-bottom: 30px; font-size: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; font: inherit; padding: 14px 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,46,0.15);
}
.field textarea { min-height: 150px; resize: vertical; }

/* Gallery teaser (homepage) */
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teaser-grid img { width: 100%; height: 280px; object-fit: cover; }
.teaser-cta { text-align: center; margin-top: 38px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.video-card {
  background: rgba(250,247,240,0.03);
  border: 1px solid rgba(250,247,240,0.14);
}
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { padding: 22px 24px 26px; }
.video-meta h3 {
  font-family: var(--serif); font-size: 23px; font-weight: 600;
  color: var(--paper); line-height: 1.3;
}
.video-meta p { font-size: 14px; color: rgba(250,247,240,0.55); margin-top: 8px; letter-spacing: 0.04em; }
.video-pending { display: flex; align-items: center; justify-content: center; }
.pending-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #14100b; }
.pending-play {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid rgba(217,179,106,0.7); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px;
}
.pending-inner p { color: rgba(250,247,240,0.55); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }

/* Audio */
.track-list { max-width: 860px; margin: 0 auto; }
.track {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
}
.track:first-child { border-top: 1px solid var(--line); }
.track-play {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  font-size: 17px; padding-left: 3px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.track-play:hover, .track-play.playing { background: var(--gold); color: #fff; }
.track-play.playing { padding-left: 0; }
.track.unavailable .track-play { opacity: 0.3; cursor: default; }
.track.unavailable .track-play:hover { background: transparent; color: var(--gold); }
.track-info { flex: 1; min-width: 0; }
.track-info h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.track-info p { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; margin-top: 4px; }
.track-progress { height: 3px; background: var(--line); margin-top: 12px; }
.track-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s linear; }
.track-time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Screen-reader-only label */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Photos page */
.page-hero {
  background: var(--ink); color: var(--paper);
  padding: 150px 0 70px; text-align: center;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 76px); font-weight: 500; }
.page-hero p { color: rgba(250,247,240,0.6); margin-top: 10px; font-size: 17px; }
.gallery-title {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 500;
  margin: 0 0 26px;
}
.gallery-note { color: var(--muted); font-size: 15px; margin: -8px 0 60px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0 0 90px; }
.gallery.first { padding-top: 70px; }
.gallery figure {
  position: relative; overflow: hidden; background: var(--ink);
}
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px; color: #fff; font-size: 14.5px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery figure:hover figcaption { opacity: 1; }

/* Footer */
footer {
  background: #0f0c09; color: rgba(250,247,240,0.6);
  padding: 54px 0; font-size: 14.5px;
}
.foot-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.foot-brand { font-family: var(--serif); font-size: 22px; color: var(--paper); }
footer nav { display: flex; gap: 22px; }
footer nav a { text-decoration: none; opacity: 0.75; }
footer nav a:hover { opacity: 1; color: var(--gold-light); }
.fine { margin-top: 26px; font-size: 13px; opacity: 0.45; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .about-grid, .pos-grid, .teach-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.tall { grid-row: auto; }
  .video-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid img { height: 190px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(250,247,240,0.98);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12); padding: 8px 0;
  }
  .nav:not(.scrolled) .nav-links { background: rgba(15,12,9,0.97); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 28px; color: var(--ink) !important; }
  .nav:not(.scrolled) .nav-links a { color: var(--paper) !important; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}
