:root {
  --espresso: #2a211c;
  --espresso-soft: #3c3028;
  --ivory: #f4efe6;
  --ivory-deep: #ebe3d6;
  --cream: #fffcf8;
  --gold: #b8894a;
  --gold-deep: #8d6230;
  --gold-soft: #e7d3ae;
  --ink: #2a211c;
  --muted: #6f5f53;
  --line: #e0d3c3;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(42, 33, 28, 0.1);
  --header: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 100% 120px, rgba(232, 205, 184, 0.45), transparent 60%),
    var(--ivory);
}

img { max-width: 100%; }

button, input { font: inherit; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header);
  padding: calc(12px + env(safe-area-inset-top)) max(7vw, env(safe-area-inset-right)) 12px max(7vw, env(safe-area-inset-left));
  background: rgba(42, 33, 28, 0.96);
  color: var(--cream);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  line-height: 1.05;
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.brand-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
}

.top-dl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 1 auto;
  max-width: 52%;
  text-align: right;
  text-decoration: none;
  background: var(--gold);
  color: #24180f;
  padding: 10px 16px 9px;
  border-radius: 999px;
  line-height: 1.15;
}

.top-dl span { font-weight: 560; font-size: 15px; }

.top-dl small {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.top-dl:active { background: #d7b072; }

.wrap {
  width: min(1180px, calc(100% - 10vw));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  gap: 42px;
  align-items: end;
  padding: 42px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(40px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 38ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--gold-deep);
  font-weight: 560;
  text-underline-offset: 4px;
}

.hero-photo {
  margin: 0;
  background: var(--cream);
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: min(74vh, 820px);
  height: min(74dvh, 820px);
  object-fit: cover;
  object-position: center 18%;
}

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
}

.panel {
  margin: 18px auto 10px;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-head {
  text-align: center;
}

.panel-head h2,
.gallery-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.panel-head p,
.gallery-head p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.panel-head p {
  margin-inline: auto;
}

fieldset {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
  min-inline-size: 0;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 168px;
  padding: 20px 20px 16px;
  background: var(--ivory);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.option:active { transform: scale(0.985); }

.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.option-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.option-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.05;
}

.option-text {
  color: var(--muted);
  max-width: 32ch;
  margin-inline: auto;
}

.option-state {
  margin-top: auto;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.when-on { display: none; }

.option:has(input:checked) {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

.option:has(input:checked) .option-kicker { color: var(--gold-soft); }
.option:has(input:checked) .option-text { color: rgba(255, 252, 248, 0.76); }
.option:has(input:checked) .when-off { display: none; }
.option:has(input:checked) .when-on { display: inline; }

.option:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.album-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  background: var(--gold-deep);
  color: #fffaf3;
  text-align: center;
  text-decoration: none;
  font-weight: 560;
  line-height: 1.25;
  border-radius: 999px;
}

.btn:active { background: #744f22; }

#zip-note {
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}

.status {
  margin: 14px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.gallery-head {
  padding: 34px 0 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 64px;
  align-items: start;
}

.card {
  background: var(--cream);
  padding: 10px 10px 12px;
  box-shadow: 0 10px 28px rgba(42, 33, 28, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:active { transform: scale(0.985); }

.card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.card-open img {
  display: block;
  width: 100%;
  height: auto;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 2px;
}

.card-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-deep);
}

.card-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--espresso);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-footer {
  padding: 28px max(7vw, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(7vw, env(safe-area-inset-left));
  background: var(--espresso);
  color: rgba(255, 252, 248, 0.78);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer strong {
  display: block;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 560;
}

#visor {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  background: #1c1612;
  color: var(--cream);
  overflow: hidden;
}

#visor::backdrop { background: rgba(22, 16, 12, 0.86); }

#visor[open] {
  display: flex;
  flex-direction: column;
}

.visor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.visor-count {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.visor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.visor-actions a,
.visor-actions button,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid rgba(255, 252, 248, 0.28);
  background: transparent;
  color: var(--cream);
  text-decoration: none;
  padding: 8px 14px;
  cursor: pointer;
}

.visor-actions a { background: var(--gold-deep); border-color: var(--gold-deep); }

.visor-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 64px 22px;
}

.visor-stage img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  max-height: calc(100dvh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#visor-prev { left: 10px; }
#visor-next { right: 10px; }

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .option:hover { transform: translateY(-2px); }
  .top-dl:hover { background: #d7b072; }
  .btn:hover { background: #744f22; }
}

@media (max-width: 960px) {
  .wrap { width: min(1180px, calc(100% - 40px)); }
  .hero { gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0 8px;
  }

  .hero-photo { order: -1; }
  .hero-copy { order: 0; }

  .hero-photo img {
    height: min(62vh, 560px);
    height: min(62dvh, 560px);
  }

  .lede { font-size: 16px; margin-top: 14px; }
  .text-link { margin-top: 16px; padding: 8px 0; }

  .options { grid-template-columns: 1fr; }
  .option { min-height: 0; }

  .album-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { width: 100%; }
  #zip-note { max-width: none; }

  .panel { padding: 18px; }
  .gallery-head { padding-top: 26px; }
}

@media (max-width: 720px) {
  .topbar {
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  }

  .brand-kicker { display: none; }
  .brand-name { font-size: 22px; }

  .top-dl {
    align-items: center;
    text-align: center;
    max-width: none;
    padding: 8px 12px;
  }

  .top-label { font-size: 14px; }

  .top-dl small {
    display: block;
    max-width: 14ch;
    white-space: normal;
  }

  .wrap { width: min(1180px, calc(100% - 28px)); }

  .gallery { gap: 10px; padding-bottom: 36px; }

  .card { padding: 6px 6px 8px; }

  .card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 0;
  }

  .card-num { font-size: 16px; }
  .card-dl { width: 100%; }

  .eyebrow { letter-spacing: 0.16em; }

  #visor,
  #visor[open] {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .visor-bar {
    flex-wrap: wrap;
    align-items: center;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  .visor-count { font-size: 16px; }

  .visor-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .visor-actions a,
  .visor-actions button { flex: 1 1 auto; }

  .visor-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 0 8px calc(12px + env(safe-area-inset-bottom));
  }

  .visor-stage img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .nav-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .nav-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: rgba(28, 22, 18, 0.72);
    font-size: 32px;
    line-height: 1;
  }

  .nav-icon { display: block; margin-top: -4px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 20px; }
  .hero h1 { font-size: 38px; }
  .panel-head h2,
  .gallery-head h2 { font-size: 30px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 12px; }
  .hero-photo img {
    height: 72vh;
    height: 72dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .option, .btn, .top-dl { transition: none; }
  .card:active, .option:active { transform: none; }
}
