/* ══════════════════════════════════════════════════
   PAGE HERO — found footage / VHS treatment
═══════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  border-bottom: 1px solid rgba(187,193,135,0.12);
  overflow: hidden;
}

/* VHS tracking band sweeps through on load */
.page-hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.14) 25%,
    rgba(200,255,255,0.24) 50%,
    rgba(255,255,255,0.14) 75%,
    transparent 100%
  );
  top: -3px;
  opacity: 0;
  animation: heroTrack 0.75s ease-in-out 0.2s forwards;
}
@keyframes heroTrack {
  0%   { top: -3px;  opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 0.6; }
  100% { top: 102%;  opacity: 0; }
}

/* All direct children stack above tracking band */
.page-hero > * { position: relative; z-index: 1; }

/* REC indicator — injected by JS */
.page-hero__rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(200,40,40,0.8);
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 0.5s ease 0.35s forwards;
}
.page-hero__rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c82828;
  flex-shrink: 0;
  animation: pageRecBlink 1s step-end 0.35s infinite;
}
@keyframes pageRecBlink { 50% { opacity: 0; } }
@keyframes heroFadeUp { to { opacity: 1; } }

/* Label paragraph — hidden until JS typewriter takes over */
.page-hero > p {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(187,193,135,0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  opacity: 0;
}
.page-hero > p.tw-cursor {
  border-right: 1px solid rgba(187,193,135,0.65);
  animation: twCursorBlink 0.6s step-end infinite;
}
@keyframes twCursorBlink { 50% { border-right-color: transparent; } }
.page-hero > p.tw-done { border-right: none; }

/* Title — hidden, revealed by JS after typewriter */
.page-hero h2 {
  color: #F0EAE0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.page-hero h2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Divider — fades in after title */
.page-hero .divider {
  background: #BBC187;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.page-hero .divider.visible {
  opacity: 0.4;
  transform: scaleX(1);
}

/* ══ Timeline (story page) ══════════════════════ */
.timeline { max-width: 700px; margin: 0 auto; }
.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.timeline__item:last-child { border-bottom: none; }
.timeline__year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  text-align: right;
  padding-top: 8px;
}
.timeline__content h3 { margin-bottom: 8px; font-size: 1.5rem; }
.timeline__content p { color: var(--text-secondary); line-height: 1.8; }
.timeline__tag {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(187,193,135,0.25);
  color: rgba(187,193,135,0.65);
  margin-bottom: 12px;
}

/* ══ Event cards (details page) ════════════════ */
.event-card {
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.event-card:hover { border-color: var(--accent); }
.event-card__time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-card__name { margin-bottom: 20px; font-size: 2rem; }
.event-card__detail { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.event-card__map {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ══ VHS placeholder for coming-soon pages ═════ */
.vhs-placeholder {
  padding: 80px 24px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.vhs-placeholder__code {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 5px;
  color: rgba(187,193,135,0.35);
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: signalBlink 3s step-end infinite;
}
.vhs-placeholder__sub {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(187,193,135,0.2);
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: signalBlink 3s step-end 1.5s infinite;
}
.vhs-placeholder p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
@keyframes signalBlink {
  0%, 100% { opacity: 1; }
  40%, 60%  { opacity: 0.2; }
}

/* ══ Seattle guide ══════════════════════════════ */
.seattle-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0 0;
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
  text-align: center;
}
.seattle-intro strong { color: var(--text-primary); font-weight: 400; }

.loc-section { padding-top: 64px; }

.loc-chapter {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.loc-chapter__num {
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 4px;
  color: rgba(187,193,135,0.35);
}
.loc-chapter__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.loc-card {
  position: relative;
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  overflow: hidden;
}
.loc-card:hover { border-color: var(--accent); }

/* Full-bleed image at top of card */
.loc-card__img {
  display: block;
  width: calc(100% + 56px);
  margin: -28px -28px 22px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(15%) contrast(105%) brightness(0.88) saturate(0.85);
  transition: filter 0.4s ease;
}
.loc-card:hover .loc-card__img {
  filter: grayscale(5%) contrast(103%) brightness(0.95) saturate(0.95);
}

/* Corner bracket decoration */
.loc-card::before,
.loc-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.loc-card::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--accent-sage);
  border-left: 1px solid var(--accent-sage);
}
.loc-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--accent-sage);
  border-right: 1px solid var(--accent-sage);
}
.loc-card:hover::before,
.loc-card:hover::after { opacity: 0.8; }

.loc-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.loc-card__type {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(187,193,135,0.5);
}
.loc-card__hood {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}
.loc-card__name {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--text-primary);
}
.loc-card__desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 20px;
}
.loc-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(84,103,78,0.3);
}
.loc-card__addr {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: rgba(187,193,135,0.6);
}
.loc-card__coords {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: rgba(187,193,135,0.28);
}
.loc-card__map {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(208,101,103,0.3);
  padding: 5px 10px;
  align-self: flex-start;
  transition: border-color 0.2s, background 0.2s;
}
.loc-card__map:hover {
  border-color: var(--accent);
  background: rgba(208,101,103,0.08);
}

/* ══ Registry / Interests ═══════════════════════ */
.wishlist-intro {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 0 0;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.85;
}
.wishlist-intro p + p { margin-top: 16px; }
.wishlist-intro strong { color: var(--text-primary); font-weight: 400; }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.interest-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color 0.2s;
}
.interest-card:hover { border-color: var(--accent); }
.interest-card::before,
.interest-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.interest-card::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--accent-sage);
  border-left: 1px solid var(--accent-sage);
}
.interest-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--accent-sage);
  border-right: 1px solid var(--accent-sage);
}
.interest-card:hover::before,
.interest-card:hover::after { opacity: 0.8; }

.interest-card__icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}
.interest-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.interest-card__desc {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.interest-card__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-rose);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.interest-card__link:hover { border-color: var(--accent-rose); }

.interest-card__eg {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: rgba(187,193,135,0.4);
  text-transform: uppercase;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-section { padding-top: 48px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 20px 56px; }
  .wishlist-intro { padding: 28px 0 0; font-size: 0.95rem; }
  .seattle-intro { padding: 28px 0 0; font-size: 0.95rem; }
  .loc-chapter__label { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .page-hero { padding: 96px 16px 40px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .timeline__year { text-align: left; }
  .event-card { padding: 24px 20px; }
  .loc-grid { grid-template-columns: 1fr; gap: 14px; }
  .loc-card { padding: 20px; }
  .loc-card__img { width: calc(100% + 40px); margin: -20px -20px 18px; }
  .loc-section { padding-top: 36px; }
  .interest-grid { gap: 12px; }
  .interest-card { padding: 20px; }
  .wishlist-intro { padding: 20px 0 0; }
}

/* ══ Light mode overrides ═══════════════════════
   All the rgba(187,193,135,X) sage values were
   tuned for dark backgrounds. Override here for
   legibility on cream.
══════════════════════════════════════════════════ */
[data-theme="light"] .interest-card {
  background: var(--surface);
}
[data-theme="light"] .interest-card__eg {
  color: rgba(84,103,78,0.7);
}
[data-theme="light"] .loc-chapter__num {
  color: rgba(84,103,78,0.6);
}
[data-theme="light"] .loc-card__type {
  color: rgba(84,103,78,0.75);
}
[data-theme="light"] .loc-card__hood {
  color: var(--accent);
  opacity: 0.85;
}
[data-theme="light"] .loc-card__addr {
  color: rgba(84,103,78,0.8);
}
[data-theme="light"] .loc-card__coords {
  color: rgba(84,103,78,0.45);
}
[data-theme="light"] .loc-card__map {
  border-color: rgba(167,59,4,0.4);
}
[data-theme="light"] .timeline__tag {
  color: rgba(84,103,78,0.75);
  border-color: rgba(84,103,78,0.3);
}
[data-theme="light"] .vhs-placeholder__code {
  color: rgba(84,103,78,0.55);
}
[data-theme="light"] .vhs-placeholder__sub {
  color: rgba(84,103,78,0.4);
}
[data-theme="light"] .page-hero > p {
  color: rgba(56,13,13,0.7);
}
[data-theme="light"] .page-hero > p.tw-cursor {
  border-right-color: rgba(56,13,13,0.5);
}
