/* ==========================================================
   Washington Rachmaninoff Musicians Association
   Light, elegant, classical — nonprofit arts organization
   ========================================================== */

/* --- Palette & tokens --- */
:root {
  --ivory: #FAF8F3;
  --paper: #FFFFFF;
  --ink: #1C2B45;
  --gold: #B08D3E;
  --gold-deep: #8C6D2A;
  --midnight: #152238;
  --line: #E6E0D4;
  --muted: #5B6678;
  --content-max: 1080px;

  /* Override PaperMod theme variables (light) */
  --theme: var(--ivory);
  --entry: var(--paper);
  --primary: var(--ink);
  --secondary: var(--muted);
  --tertiary: #EFEBE2;
  --content: var(--ink);
  --border: var(--line);
  --gap: 24px;
  --radius: 4px;
  --main-width: 1080px;
}

/* --- Base typography --- */
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .serif, .logo a {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.post-content {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--ink);
}

.post-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 16px; }
.post-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.post-content a { color: var(--gold-deep); box-shadow: none; text-decoration: underline; text-decoration-color: rgba(176,141,62,.4); text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold); }

/* Elegant centered rule instead of plain hr */
.post-content hr {
  border: none;
  height: 2px;
  width: 64px;
  margin: 56px auto;
  background: var(--gold);
}

/* --- Header / navigation --- */
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--content-max); }
.logo a { font-weight: 700; font-size: 20px; color: var(--ink); }
#menu a { color: var(--ink); font-weight: 600; font-size: 15px; }
#menu a:hover { color: var(--gold-deep); }
#menu .active { color: var(--gold-deep); font-weight: 700; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 32px 16px;
}
.footer a { color: var(--gold-deep); }

/* --- Kicker / section headings --- */
.kicker {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.gold-rule { width: 56px; height: 2px; background: var(--gold); margin: 14px auto 18px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-head h2, .page-hero h1 { margin: 0 0 6px; }
.page-hero { text-align: center; padding: 40px 0 8px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.page-plain { max-width: var(--content-max); margin: 0 auto; }
.center-cta { text-align: center; margin-top: 36px; }

/* --- Buttons --- */
.cta-button, .btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  background: transparent;
  border-radius: 2px;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.cta-button:hover, .btn:hover { background: var(--gold); color: #fff; }
.btn-solid, .hero-section .cta-button { background: var(--gold); color: #fff; }
.btn-solid:hover, .hero-section .cta-button:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* --- Hero (homepage) --- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  padding: clamp(4rem, 12vw, 8rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
  overflow: hidden;
  border-radius: 0;
  margin: 0 0 8px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(21,34,56,.68), rgba(21,34,56,.76));
  z-index: 1;
}
.hero-overlay-content, .hero-section > * { position: relative; z-index: 2; }
.hero-section h1, .hero-section h2 {
  color: #fff;
  border: none;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 18px;
}
.hero-section p {
  color: #E8E6E0;
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E4C97C;
  margin-bottom: 16px;
}
.hero-section .cta-button { margin: 6px 8px; }
.hero-ghost { background: transparent !important; border-color: rgba(255,255,255,.75) !important; color: #fff !important; }
.hero-ghost:hover { background: rgba(255,255,255,.14) !important; }

/* Light page hero (inner pages) */
.page-hero-light {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1rem 1rem;
}
.page-hero-light h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 10px; border: none; }
.page-hero-light p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* --- Feature cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(21,34,56,.09); }
.feature-card h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--ink); }
.feature-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* --- Annual Highlights (homepage block) --- */
.hl-home {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  margin: 0 calc(50% - 50vw) 48px;   /* full-bleed */
}
.hl-home > * { max-width: var(--content-max); margin-left: auto; margin-right: auto; }
.hl-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}
.hl-text h3 { font-size: 1.5rem; margin: 0 0 12px; }
.hl-text p { color: var(--muted); margin: 0 0 22px; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-row figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--tertiary); }
.photo-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.photo-row figure:hover img { transform: scale(1.05); }

/* --- YouTube facade --- */
.yt-lite {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--midnight);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(21,34,56,.16);
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lite::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(21,34,56,.28);
  pointer-events: none;
}
.yt-lite.yt-active::after { display: none; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(176,141,62,.94);
  z-index: 2;
  transition: transform .2s, background .2s;
}
.yt-play::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.yt-lite:hover .yt-play { transform: translate(-50%, -50%) scale(1.07); background: var(--gold-deep); }
.yt-play-muted { background: rgba(91,102,120,.85); }
.yt-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  color: #fff; font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(21,34,56,.85));
  z-index: 2;
}
.yt-placeholder { cursor: default; }

/* --- Galleries --- */
.gallery-grid, .events-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.gallery-item, .event-photo { margin: 0; }
.gallery-item img, .event-photo img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  background: var(--tertiary);
  transition: opacity .2s;
}
.gallery-item a:hover img { opacity: .88; }
.gallery-item figcaption, .event-photo figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 2px 0;
  text-align: center;
}

/* --- Year cards (highlights archive) --- */
.year-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin: 40px 0; }
.year-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.year-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(21,34,56,.11); }
.year-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--tertiary); }
.year-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.year-card-body { padding: 24px 26px 28px; }
.year-card-body h2 { font-size: 1.35rem; margin: 2px 0 10px; }
.year-card-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.faux-link { color: var(--gold-deep); font-weight: 600; font-size: 0.9rem; }

/* --- Team section --- */
.team-section { margin: 32px 0; }
.team-member {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.team-portrait { width: 100%; border-radius: var(--radius); display: block; }
.team-info h3 { margin: 0 0 4px; }
.team-title { color: var(--gold-deep); font-weight: 600; margin: 0 0 12px; font-size: 0.95rem; }

/* --- Dark quote strip (About / homepage) --- */
.quote-strip {
  background: var(--midnight);
  color: #E8E6E0;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  margin: 48px calc(50% - 50vw);
}
.quote-strip h2, .quote-strip h3 {
  color: #fff;
  border: none;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  max-width: 760px;
  margin: 0 auto 14px;
}
.quote-strip p { color: #B9C0CE; max-width: 640px; margin: 0 auto 24px; }
.quote-strip .kicker { color: #E4C97C; }

/* --- Contact form --- */
.post-content form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
}
.post-content form label { font-weight: 600; font-size: 0.92rem; }
.post-content form input,
.post-content form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ivory);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}
.post-content form input:focus,
.post-content form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,62,.15);
}
.post-content form button {
  padding: 12px 32px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.post-content form button:hover { background: var(--gold-deep); }

/* --- PaperMod post cards (News) --- */
.post-entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-entry:active { transform: none; }
.entry-header h2 { color: var(--ink); }

/* Hide PaperMod's default title block on pages that render their own hero */
article.post-single:has(.page-hero-light) > .post-header,
article.post-single:has(.hero-section) > .post-header {
  display: none;
}
/* --- Responsive --- */
@media (max-width: 880px) {
  .hl-grid { grid-template-columns: 1fr; gap: 26px; }
  .photo-row { grid-template-columns: repeat(2, 1fr); }
  .team-member { grid-template-columns: 1fr; }
  .team-portrait { max-width: 280px; }
}
@media (max-width: 520px) {
  .gallery-grid, .events-gallery { grid-template-columns: 1fr; }
}

/* --- Logo emblem in header --- */
.logo a { display: flex; align-items: center; gap: 12px; }
.logo a img { border-radius: 50%; }

/* --- Team cards (no photos) --- */
.team-cards .feature-card { text-align: left; }
.team-cards .feature-card h3 { margin-bottom: 2px; }
.team-cards .team-title { margin: 0 0 10px; }
