:root {
  --bg: #f5f1ea;
  --panel: #fffdf9;
  --text: #2d2a26;
  --muted: #6f665d;
  --accent: #5f4632;
  --accent-soft: #e9ddd0;
  --line: #ded4c8;
  --shadow: 0 12px 32px rgba(44, 34, 24, 0.08);
  --radius: 22px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: radial-gradient(circle at top, #faf7f2, #f1ece4 45%, #ebe4da 100%);
  line-height: 1.7;
}

a { color: var(--accent); }

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 36px 0 28px;
}

.hero-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,239,231,0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-image {
  min-height: 100%;
  background: #ddd;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  padding: 34px 34px 34px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.04;
  margin: 0 0 10px;
  color: #2c2119;
}

.dates {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: 1.08rem;
  margin: 0 0 22px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  transition: 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.section {
  padding: 18px 0 26px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: #31251b;
}

.section-intro {
  color: var(--muted);
  max-width: 70ch;
  margin-top: -4px;
  margin-bottom: 18px;
}

.obituary {
  columns: 2 320px;
  column-gap: 34px;
  font-size: 1.04rem;
}

.obituary p {
  margin-top: 0;
}

.quote {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: #473627;
}

.music-grid {
  display: grid;
  gap: 18px;
}

.track {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #faf6f0);
}

.track-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.track h3 {
  margin: 0;
  font-size: 1.2rem;
}

.track-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: Arial, Helvetica, sans-serif;
}

audio {
  width: 100%;
  margin: 10px 0 12px;
}

.download-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
}

.memory-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.memory {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.memory h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.footer {
  padding: 18px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.small-note {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 0 24px 26px;
  }

  .hero-image {
    max-height: 520px;
  }

  .memory-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 20px), var(--max));
  }

  .panel {
    padding: 20px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-copy p,
  .obituary {
    font-size: 1rem;
  }
}