/* ============================================================
   Stuart Zobel — style.css  v3
   Cobalt blue. Warm gold. Instrument Serif + DM Sans.
   Mobile-first. WCAG AA throughout.
   ============================================================ */

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

:root {
  --bg:        #1B3A6B;
  --bg2:       #152E57;
  --bg3:       #0F2140;
  --ink:       #F2EDE4;
  --ink2:      #C4BAA8;
  --ink3:      #8FA3BE;
  --accent:    #E8B84B;
  --accent2:   #C99A30;
  --accent-fg: #0F2140;
  --border:    rgba(232,184,75,0.15);
  --border2:   rgba(232,184,75,0.28);
  --serif:     'Instrument Serif', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
}

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

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV — mobile hamburger first
   ============================================================ */

#nav-check { display: none; }

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.25rem;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg3);
  z-index: 100;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-links {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg3);
  padding: 5rem 1.25rem 2rem;
  list-style: none;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  z-index: 99;
}

.nav-links li { border-bottom: 0.5px solid var(--border); }

.nav-links a {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  color: var(--ink2);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--accent); }

#nav-check:checked ~ .site-nav .nav-links { display: flex; }

#nav-check:checked ~ .site-nav .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-check:checked ~ .site-nav .nav-toggle span:nth-child(2) { opacity: 0; }
#nav-check:checked ~ .site-nav .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .site-nav { padding: 1.25rem 2.5rem; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    gap: 2rem;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .nav-links li { border: none; }
  .nav-links a {
    padding: 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink3);
  }
  .nav-links a:hover { color: var(--accent); }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 3.5rem 1.25rem 3rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 44ch;
}

.hero-photo {
  margin-top: 2.5rem;
}

.hero-photo img,
.photo-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  border-radius: 2px;
  display: block;
}

.hero-photo img { object-fit: cover; }

.photo-placeholder {
  background: var(--bg2);
  border: 1px solid var(--border2);
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  aspect-ratio: unset;
  border-radius: 0;
}

@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    padding: 5rem 2.5rem 4rem;
    max-width: 1100px;
  }
  .hero-photo { margin-top: 0; }
}

/* ============================================================
   PIANO KEY DIVIDER
   ============================================================ */

.keys-rule {
  width: 100%;
  overflow: hidden;
  height: 48px;
}

.keys-rule svg { display: block; width: 100%; height: 48px; }

/* ============================================================
   EDITORIAL LIST
   ============================================================ */

.section {
  padding: 3rem 1.25rem 4rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 1.75rem;
}

.editorial-list {
  list-style: none;
  border-top: 0.5px solid var(--border2);
}

.editorial-item {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.editorial-item:hover .item-title { color: var(--accent); }

.item-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.item-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  transition: color 0.15s;
}

.item-desc {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.65;
  max-width: 58ch;
}

.item-arrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .section { padding: 4rem 2.5rem 5rem; }

  .editorial-item {
    display: grid;
    grid-template-columns: 140px 1fr 80px;
    align-items: baseline;
    column-gap: 2rem;
    row-gap: 0.3rem;
    padding: 1.75rem 0;
  }

  .item-tag { padding-top: 0.35rem; }
  .item-desc { grid-column: 2; }
  .item-arrow {
    grid-column: 3;
    justify-self: end;
    align-self: center;
  }
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */

.about-strip {
  background: var(--bg2);
  border-top: 0.5px solid var(--border2);
  padding: 3rem 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.about-strip h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-strip p {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.8;
  max-width: 60ch;
}

@media (min-width: 768px) {
  .about-strip {
    padding: 4rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg3);
  padding: 1.5rem 1.25rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink3);
}

.site-footer a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .site-footer { padding: 2rem 2.5rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--accent2); }

/* ============================================================
   INNER PAGE SHARED
   ============================================================ */

.page-header {
  padding: 3rem 1.25rem 2rem;
  border-bottom: 0.5px solid var(--border);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

.page-header .hero-eyebrow { margin-bottom: 0.75rem; }

.page-header p { font-size: 0.95rem; color: var(--ink2); }

@media (min-width: 768px) {
  .page-header { padding: 4rem 2.5rem 2.5rem; }
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.back-link:hover { text-decoration: underline; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .section, .about-strip { animation: none; opacity: 1; }
}
