:root {
  --bg: #f6f1e8;
  --bg-deep: #ebe4d6;
  --surface: #fffdf8;
  --ink: #1f2a24;
  --ink-soft: #4a5c52;
  --accent: #3d6b4f;
  --accent-light: #5a8f6e;
  --gold: #b8860b;
  --terracotta: #a85a3a;
  --shadow: 0 12px 40px rgba(31, 42, 36, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-light); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 0.75rem 1rem; background: var(--accent); color: white;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 42, 36, 0.06);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; height: var(--header-h);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: none; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  background: none; border: none; padding: 0.5rem; cursor: pointer;
  min-width: 2.75rem; min-height: 2.75rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0 1.25rem 1rem; background: var(--bg);
  border-bottom: 1px solid rgba(31, 42, 36, 0.06);
}
.mobile-menu a {
  padding: 0.75rem 0; color: var(--ink); text-decoration: none; font-weight: 500;
  min-height: 2.75rem; display: flex; align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 42, 36, 0.15) 0%,
    rgba(31, 42, 36, 0.45) 55%,
    rgba(31, 42, 36, 0.82) 100%
  );
}
.hero-content {
  position: relative; z-index: 1; max-width: 680px; color: #fff;
  animation: fadeUp 0.9s ease-out both;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 600; opacity: 0.9; margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 600; line-height: 1.08; margin: 0 0 1rem;
}
.hero-lead { font-size: 1.15rem; opacity: 0.92; margin: 0 0 1.75rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.35rem; border-radius: 999px; min-height: 2.75rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(61, 107, 79, 0.35); }
.btn-primary:hover { background: var(--accent-light); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1200px; margin: -2rem auto 0; padding: 0 1.25rem;
  position: relative; z-index: 2;
}
.stat {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(31, 42, 36, 0.05);
}
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 700; color: var(--accent);
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 479px) {
  .stats { grid-template-columns: 1fr; margin-top: -1rem; }
  .stat { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
}

/* Albums */
.albums, .story { max-width: 1200px; margin: 0 auto; padding: 4rem 1.25rem; }
.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}
.section-head p { color: var(--ink-soft); margin: 0; max-width: 50ch; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem;
}
.filter {
  border: 1px solid rgba(31, 42, 36, 0.12);
  background: var(--surface); color: var(--ink-soft);
  padding: 0.55rem 1rem; border-radius: 999px;
  min-height: 2.75rem;
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}
.album-card {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; border: none; padding: 0; text-align: left;
  cursor: pointer; box-shadow: 0 4px 20px rgba(31, 42, 36, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit; color: inherit;
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.album-card.featured { grid-column: span 1; }
@media (min-width: 900px) {
  .album-card.featured:first-of-type { grid-column: span 2; }
  .album-card.featured:first-of-type .album-card-cover { aspect-ratio: 21/9; }
}

.album-card-cover {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-deep);
}
.album-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.album-card:hover .album-card-cover img { transform: scale(1.05); }
.album-card-count {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem;
  border-radius: 999px; backdrop-filter: blur(4px);
}
.album-card-body { padding: 1.1rem 1.25rem 1.35rem; }
.album-card-cat {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--terracotta); font-weight: 600; margin-bottom: 0.35rem;
}
.album-card-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin: 0 0 0.4rem;
}
.album-card-desc {
  font-size: 0.9rem; color: var(--ink-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Story */
.story { padding-top: 2rem; }
.story-grid {
  display: grid; gap: 2.5rem; align-items: center;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; padding: 2.5rem; }
}
.story-copy h2 {
  font-family: var(--font-display); font-size: 2rem; margin: 0 0 1rem;
}
.story-copy p { color: var(--ink-soft); margin: 0 0 1rem; }
.story-sign { font-style: italic; color: var(--ink) !important; margin-top: 1.5rem !important; }
.story-images { display: grid; gap: 1rem; }
.story-images figure { margin: 0; }
.story-images img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-images figcaption {
  font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.5rem; text-align: center;
}

/* Footer */
.site-footer {
  text-align: center; padding: 2.5rem 1.25rem 3rem;
  color: var(--ink-soft); font-size: 0.9rem;
  border-top: 1px solid rgba(31, 42, 36, 0.08);
}
.site-footer p { margin: 0; }

/* Album dialog */
.album-dialog {
  width: min(1100px, 96vw); max-height: 92vh;
  border: none; border-radius: var(--radius-lg);
  padding: 0; background: var(--surface);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.album-dialog::backdrop { background: rgba(31, 42, 36, 0.55); backdrop-filter: blur(4px); }
.album-dialog-inner { display: flex; flex-direction: column; max-height: 92vh; }
.album-dialog-head {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(31, 42, 36, 0.08);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.album-dialog-head h2 {
  font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.25rem;
}
.album-dialog-head p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.photo-grid {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 0.65rem;
}
.photo-thumb {
  border: none; padding: 0; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: var(--bg-deep); aspect-ratio: 1;
  transition: transform 0.15s, box-shadow 0.15s;
}
.photo-thumb:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.icon-btn {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: none; background: var(--bg-deep); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--accent); color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 95vw; max-height: 90vh; text-align: center; }
.lightbox-figure img {
  max-width: 95vw; max-height: 82vh; object-fit: contain;
  border-radius: 8px;
}
.lightbox-figure figcaption { color: rgba(255,255,255,0.7); margin-top: 0.75rem; font-size: 0.9rem; }
.lightbox .icon-btn {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff;
}
.lightbox .icon-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}