@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Special+Elite&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --ink: #d4c9b0;
  --ink-dim: #8a7f6a;
  --red: #8b1a1a;
  --red-bright: #b02020;
  --bg: #0d0b09;
  --card-bg: #131109;
  --rule: #2a2418;
  --stamp: #6b1010;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/photo-655_singular_display_fullPicture.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.18) sepia(0.6);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #ede5d0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.9);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: #c8bda0;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 420px;
}
.hero-rule span { flex: 1; height: 1px; background: var(--red); }
.hero-rule i { color: var(--red); font-style: normal; font-size: 1rem; }

.hero-intro {
  font-size: 1.05rem;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── SECTION ── */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ede5d0;
  letter-spacing: 0.02em;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 14px auto 0;
}

/* ── PROFILE CARDS ── */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}

.card:hover { border-color: var(--red); }

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.7) sepia(0.3) brightness(0.85);
  display: block;
  transition: filter 0.35s;
}

.card:hover .card-image {
  filter: grayscale(0.3) sepia(0.2) brightness(0.95);
}

.card-image.portrait {
  object-position: center 15%;
}

.card-body {
  padding: 24px 22px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-stamp {
  font-family: 'Special Elite', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 1px solid var(--stamp);
  display: inline-block;
  padding: 2px 8px;
  align-self: flex-start;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ede5d0;
  line-height: 1.2;
}

.card-dates {
  font-family: 'Special Elite', monospace;
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}

.card-dates .died {
  color: var(--red-bright);
  font-weight: bold;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.65;
  flex: 1;
}

.card-burial {
  font-family: 'Special Elite', monospace;
  font-size: 0.7rem;
  color: #5a5344;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: auto;
  text-transform: uppercase;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.6) sepia(0.4) brightness(0.8);
  display: block;
  transition: filter 0.3s, transform 0.3s;
}

.gallery-grid img:hover {
  filter: grayscale(0.1) sepia(0.15) brightness(1);
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: 40px 24px;
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #3a342a;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .profiles { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { aspect-ratio: 1; }
}
