:root {
  --navy: #0b1f3a;
  --navy-2: #16345f;
  --gold: #f2a63b;
  --gold-soft: #fbe3bd;
  --ink: #1b2430;
  --muted: #5d6877;
  --bg: #f7f5f1;
  --card: #ffffff;
  --line: #e7e2d9;
  --green: #00b84a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 75% 85%, rgba(242, 166, 59, .45), transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, .10), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 1.05;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold-soft); }
.lead {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .82);
}
.scroll-cue {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.scroll-cue:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hero-photo {
  width: min(78vw, 360px);
  margin-top: -12px; /* the portrait PNG has empty space above the head */
}
.hero-photo img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }

@media (min-width: 860px) {
  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    padding-top: 72px;
    gap: 40px;
  }
  .hero-text { flex: 1; padding-bottom: 96px; }
  .lead { margin-left: 0; }
  .hero-photo { width: 400px; margin-top: 0; flex-shrink: 0; }
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Quick links */
.links {
  position: relative;
  margin-top: -32px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .links { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11,31,58,.08), 0 14px 32px rgba(11,31,58,.14); }
.link-card .icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef3fb;
  color: var(--navy-2);
}
.link-card.accent .icon { background: #e3f8eb; color: var(--green); }
.link-card svg { width: 22px; height: 22px; }
.link-card strong { display: block; font-weight: 600; }
.link-card span.note { display: block; font-size: 14px; color: var(--muted); }
.link-card .arrow { margin-left: auto; color: var(--muted); }

/* Albums */
.albums-section h2, .gallery-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 48px 0 16px;
}
.albums {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .albums { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .albums { grid-template-columns: repeat(5, 1fr); } }
.album {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
}
.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.album:hover img { transform: scale(1.05); }
.album::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, .85), rgba(11, 31, 58, 0) 55%);
}
.album-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
}
.album-info strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.album-info span { font-size: 13px; color: rgba(255, 255, 255, .8); }

/* Gallery */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 40px;
}
.gallery-head h2 { margin: 8px 0 16px; flex-basis: 100%; }
.back {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--navy-2);
  font-weight: 500;
}
.count { color: var(--muted); font-size: 14px; }
.gallery-head .count { order: 3; margin: -12px 0 16px; }
.gallery {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button {
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery button:hover img { opacity: .88; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 12, 22, .96);
  display: grid;
  place-items: center;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lb-img {
  max-width: 100vw;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
@media (min-width: 700px) { .lb-img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 80px); border-radius: 6px; } }
.lb-btn {
  position: absolute;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) { .lb-prev, .lb-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; } }
.lb-counter {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}
@media (min-width: 700px) { .lb-counter { bottom: 20px; } }

.footer {
  text-align: center;
  padding: 32px 16px 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; font-family: var(--font-head); font-style: italic; }

body.no-scroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
