/* Cape Ann Symphony — Home page (2026)
   Loaded via ?page_css=/2026/css/home.css on home.2026.php.
   Depends on base.css (tokens + .display + .container) and
   components.css (header, footer, .btn primitives). */


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

.home-hero {
  border-bottom: 1px solid var(--rule);
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 56px 32px 72px;
}
.home-hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.home-hero-eyebrow .rule {
  height: 1px; width: 48px; background: var(--ink);
}
.home-hero-eyebrow .eyebrow { color: var(--accent); }

.home-hero h1.home-hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(56px, 6.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-feature-settings: "liga" 1, "dlig" 1;
  font-variant-ligatures: normal;
}
.home-hero-title em {
  font-style: italic;
  color: var(--accent);
}
.home-hero-lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 32px;
  max-width: 540px;
}
.home-hero-cta {
  display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap;
}

.home-hero-media {
  position: relative;
  /* No background, no crop — the PNG is a transparent cutout. */
}
.home-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.home-hero-caption {
  position: absolute;
  bottom: -33px; left: 20px;
  background: var(--bg);
  padding: 8px 14px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--rule);
}

@media (max-width: 1024px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 56px; }
}


/* ============ SEASON AT A GLANCE ============ */

.home-season {
  padding: 88px 0 24px;
}
.home-season-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
}
.home-season-head h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px);
  color: var(--ink);
  margin-top: 12px;
  line-height: 1.1;
  font-feature-settings: "liga" 1, "dlig" 1;
  font-variant-ligatures: normal;
}

.home-concerts {
  display: flex;
  flex-direction: column;
}


/* ============ FEATURED CARD (first concert) ============ */

.home-featured {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  border: 1px solid var(--ink);
  background: var(--bg-elev);
  margin-bottom: 32px;
}
.home-featured-media {
  aspect-ratio: 4 / 3.2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-featured-media img {
  width: 90%; height: 90%;
  object-fit: contain;
  display: block;
}
.home-featured-ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(-45deg, var(--bg-sunken) 0 12px, var(--bg-elev) 12px 24px);
}
.home-featured-body {
  padding: 44px 44px 44px 8px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.home-featured-tags {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 14px;
}
.home-featured-title {
  font-size: 48px;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 0;
}
.home-featured-sub {
  font-size: 20px;
  color: var(--ink-2);
  margin-top: 10px;
  font-style: italic;
  font-family: "Source Serif 4", Georgia, serif;
}
.home-featured-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--ink-2);
}
.home-featured-meta .label {
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.home-featured-actions {
  display: flex; gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .home-featured { grid-template-columns: 1fr; }
  .home-featured-media { aspect-ratio: 16 / 10; }
  .home-featured-body { padding: 32px 28px; }
}


/* ============ ROWS (rest of season) ============ */

.home-row {
  display: grid;
  grid-template-columns: 80px 200px 1fr auto 140px;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background 120ms, padding 120ms;
  color: inherit;
  text-decoration: none;
}
.home-row:hover { background: var(--bg-elev); padding-inline: 12px; }
.home-row:last-child { border-bottom: 1px solid var(--rule); }

.home-row-num {
  font-size: 40px;
  color: var(--ink-4);
  line-height: 1;
}
.home-row-when {
  font-family: "Inter", sans-serif;
}
.home-row-when-main {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.home-row-title {
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
}
.home-row-sub {
  color: var(--ink-3);
  font-size: 15px;
  margin-top: 4px;
  font-style: italic;
  font-family: "Source Serif 4", Georgia, serif;
}
.home-row-program {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.home-row-program li {
  display: inline-flex; gap: 6px; align-items: baseline;
}
.home-row-program .composer { color: var(--ink-2); font-weight: 500; }
.home-row-program .piece { font-style: italic; }

.home-row-price {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.home-row-price .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.home-row-amount {
  font-size: 26px;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1;
}
.home-row-price-note {
  font-size: 12px;
  margin-top: 4px;
}
.home-row-cta {
  display: flex; justify-content: flex-end;
}

@media (max-width: 900px) {
  .home-row {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "num when"
      "num body"
      "num price"
      ".   cta";
    gap: 10px 16px;
  }
  .home-row-num { grid-area: num; font-size: 32px; }
  .home-row-when { grid-area: when; }
  .home-row-body { grid-area: body; }
  .home-row-price { grid-area: price; text-align: left; margin-top: 8px; }
  .home-row-cta { grid-area: cta; justify-content: flex-start; }
}


/* ============ E-TICKET BANNER ============ */

.home-eticket {
  padding: 32px 0 72px;
}
.home-eticket-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.home-eticket-card h3 {
  font-size: 36px;
  margin-top: 12px;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 1.15;
  font-feature-settings: "liga" 1, "dlig" 1;
  font-variant-ligatures: normal;
}
.home-eticket-card p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.5;
}
.home-eticket-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.home-eticket-option {
  padding: 16px 0;
}
.home-eticket-option-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.home-eticket-option-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.home-eticket-option-desc {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.4;
}
.home-eticket-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .home-eticket-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .home-eticket-options { grid-template-columns: 1fr; gap: 14px; }
}


/* ============ 75 YEARS ANNIVERSARY BLOCK ============ */

.home-anniversary {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.home-anniversary-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 640px;
}

/* ===== LEFT — photo rotator, full-bleed to viewport edge → center ===== */
.home-anniversary-photos {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--bg-sunken);
  cursor: zoom-in;
}
.home-anniversary-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.home-anniversary-photo.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Vertical credit — baseline-to-center, ascends up the left edge */
.home-anniversary-credit {
  position: absolute;
  left: 16px;
  bottom: 50%;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transform-origin: left bottom;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

/* ===== LIGHTBOX ===== */
.cas-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 27, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.cas-lightbox.is-open { display: flex; }
.cas-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cas-lightbox__btn {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(243, 234, 218, 0.4);
  color: #F3EADA;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  transition: background 160ms ease, border-color 160ms ease;
}
.cas-lightbox__btn:hover { background: rgba(243, 234, 218, 0.12); border-color: rgba(243, 234, 218, 0.7); }
.cas-lightbox__btn:focus-visible { outline: 2px solid #F3EADA; outline-offset: 3px; }
.cas-lightbox__close { top: 24px; right: 24px; }
.cas-lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.cas-lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .home-anniversary-photo { transition: none; }
}

/* ===== RIGHT — text + stats, with 75 seal off-frame watermark ===== */
.home-anniversary-text {
  position: relative;
  padding: 96px clamp(32px, 6vw, 96px) 96px clamp(48px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.home-anniversary-text::before {
  content: "";
  position: absolute;
  right: -28%;
  top: 50%;
  transform: translateY(-50%);
  width: 120%;
  aspect-ratio: 1 / 1;
  background: url('/2026/images/cas-75.svg') center / contain no-repeat;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}
.home-anniversary h2 {
  margin-top: 12px;
  font-size: clamp(36px, 4vw, 56px);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  font-feature-settings: "liga" 1, "dlig" 1;
  font-variant-ligatures: normal;
}
.home-anniversary-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.home-anniversary-stat-n {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 56px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "liga" 1, "dlig" 1;
  font-variant-ligatures: normal;
}
.home-anniversary-stat-l {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 8px;
  max-width: 180px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .home-anniversary-inner { grid-template-columns: 1fr; min-height: 0; }
  .home-anniversary-text { padding: 56px 24px 64px; }
  .home-anniversary-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}


/* ============ CHIP HELPERS (shared with subscriptions) ============ */
.chip {
  display: inline-flex; align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--bg-sunken);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}
.chip-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}
.label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-4);
}
