/* ABOUTME: Styles for the PLMD single-page site. */
/* ABOUTME: Responsive layout with clean typography, section-based design. */

/* ── Reset & Base ──────────────────────────────────── */

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

:root {
  --color-bg: #fef6f0;
  --color-bg-alt: #e8f0e4;
  --color-text: #3b3332;
  --color-text-muted: #6b5f5a;
  --color-accent: #d4897c;
  --color-accent-hover: #b56b5e;
  --color-border: #ddc8be;
  --font-body: 'Nunito', 'Helvetica Neue', sans-serif;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --max-width: 800px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Layout ────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ── Navigation ────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 248, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.25rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

/* ── Hero ──────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Schedule ──────────────────────────────────────── */

.schedule {
  margin-top: 1.5rem;
}

.schedule-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule-item:first-child {
  padding-top: 0;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item dt {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.schedule-item dd {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Info Sections ────────────────────────────────── */

#lisainfo h3 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

#lisainfo h3:first-of-type {
  margin-top: 0;
}

.info-hint {
  margin-top: 2rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ── Audio Player ──────────────────────────────────── */

.listen-top {
  display: flex;
  align-items: center;
}

.listen-text {
  flex: 0 0 auto;
}

.listen-icon {
  width: 300px;
  max-width: 100%;
  height: auto;
  transform: rotate(-6deg);
  opacity: 0.2;
  flex-shrink: 0;
  margin: 0 auto;
}

.countdown {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-unit {
  text-align: center;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.audio-player {
  margin-top: 2rem;
}

.audio-player audio {
  width: 100%;
  border-radius: 8px;
}

/* ── Map ───────────────────────────────────────────── */

.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

#map {
  width: 100%;
  height: 400px;
}

.numbered-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}

.numbered-pin span {
  transform: rotate(45deg);
}

.popup-image {
  width: 100%;
  border-radius: 4px;
  margin-top: 0.4rem;
  display: block;
}


/* ── Footer ────────────────────────────────────────── */

.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.85rem;
}

/* ── Mobile ────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(253, 248, 246, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero {
    min-height: 50vh;
  }

  .section {
    padding: 3.5rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  #map {
    height: 280px;
  }

  .listen-top {
    flex-direction: column;
    text-align: center;
  }

  .listen-icon {
    width: 200px;
  }
}
