/* Claire Fox Memorial — claire.shuppa.eu */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400&display=swap');

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

:root {
  --cream:        #faf8f5;
  --parchment:    #f4f0ea;
  --warm-white:   #fffdf9;
  --border:       #e2d9ce;
  --text-dark:    #2c2420;
  --text-mid:     #5a4e47;
  --text-light:   #8c7f78;
  --gold:         #a08060;
  --gold-light:   #c4a882;
  --rose:         #c9a0a0;
  --rose-light:   #f0e4e4;
}

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

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Ornament helpers ── */
.ornament {
  display: block;
  text-align: center;
  color: var(--gold-light);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  margin: 1.5rem 0;
  user-select: none;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem auto;
  max-width: 320px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(175deg, #f7f2ec 0%, #ede5d8 60%, #e4d8c8 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(192,160,160,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(160,128,96,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.hero-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem;
}

.hero-photo-ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 3px solid var(--gold-light);
  box-shadow:
    0 0 0 6px rgba(160,128,96,0.12),
    0 8px 32px rgba(44,36,32,0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.candle-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 1.7rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.hero-dates {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.hero-location {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ── Sections ── */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

/* ── Notice ── */
.notice-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-dark);
  text-align: center;
  box-shadow: 0 2px 16px rgba(44,36,32,0.05);
}

/* ── Funeral ── */
.funeral-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 16px rgba(44,36,32,0.05);
}

.funeral-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.funeral-row:last-child {
  border-bottom: none;
}

.funeral-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 1.6rem;
  text-align: center;
}

.funeral-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  font-weight: 400;
  display: block;
  margin-bottom: 0.2rem;
}

.funeral-detail {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.55;
}

/* ── Webstream ── */
.stream-section {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stream-section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.btn-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--text-dark);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.btn-stream:hover,
.btn-stream:focus {
  background: #47392e;
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ── Memorial PDF ── */
.pdf-section {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.pdf-section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.pdf-viewer-wrap {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--parchment);
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-viewer-wrap canvas {
  display: none;
  max-width: 100%;
  height: auto;
}

.pdf-loading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-light);
  font-size: 1rem;
}

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

.pdf-nav-btn {
  background: var(--text-dark);
  color: #fff;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pdf-nav-btn:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: default;
}

.pdf-nav-btn:not(:disabled):hover {
  background: #47392e;
}

.pdf-page-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-mid);
  min-width: 90px;
  text-align: center;
}

.pdf-btn-group {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-download:hover,
.btn-download:focus {
  background: var(--text-dark);
  color: #fff;
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ── Closing line ── */
.closing-section {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.closing-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

/* ── Condolences ── */
.condolences-section {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.condolences-inner {
  max-width: 720px;
  margin: 0 auto;
}

.condolence-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.condolence-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 8px rgba(44,36,32,0.04);
}

.condolence-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.condolence-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.condolence-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Photos placeholder ── */
.photos-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.photos-placeholder {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
  color: var(--text-light);
  font-style: italic;
}

.photos-placeholder p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.photos-placeholder small {
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5rem;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--parchment);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,14,10,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #e8ddd8;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Footer ── */
footer {
  background: #2c2420;
  color: #c4b8b0;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #e8ddd8;
  margin-bottom: 0.4rem;
}

.footer-dates {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #8c7f78;
  margin-bottom: 1.5rem;
}

.footer-family {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #a89890;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-attribution {
  font-size: 0.72rem;
  color: #5a4e47;
  letter-spacing: 0.06em;
}

.footer-attribution a {
  color: #7a6e68;
  text-decoration: none;
}

.footer-attribution a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .hero {
    padding: 4rem 2rem 3rem;
  }

  .hero-photo-ring {
    width: 200px;
    height: 200px;
  }

  .notice-card {
    padding: 2.5rem 3rem;
    font-size: 1.25rem;
  }

  .funeral-card {
    padding: 2rem 2.5rem;
  }
}

@media (min-width: 900px) {
  .condolence-grid {
    grid-template-columns: 1fr 1fr;
  }
}
