:root {
  color-scheme: light;
  --ivory: #f2f0e9;
  --paper: #f7f5ef;
  --ink: #173127;
  --muted: #68736c;
  --line: #d9d8d0;
  --white: #f9faf7;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); }
button, a { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #0e1714;
}

.hero-bg, .hero-shade { position: absolute; inset: 0; }
.hero-bg {
  background-size: cover;
  background-position: center;
  transition: background-image .8s ease;
  transform: scale(1.02);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 14, 13, .91) 0%, rgba(8, 14, 13, .62) 42%, rgba(8, 14, 13, .2) 76%),
    linear-gradient(0deg, rgba(7, 12, 10, .82) 0%, transparent 50%, rgba(8, 13, 13, .45) 100%);
}

.topbar, .hero-layout, .hero-footer { position: relative; z-index: 1; }
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4.6vw, 76px);
  font-family: Arial, sans-serif;
}
.brand { font-size: 18px; letter-spacing: .035em; font-weight: 600; }
.nav-links { display: flex; gap: 38px; font-size: 14px; }
.nav-links a { padding: 10px 0; opacity: .78; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links .active { opacity: 1; border-color: var(--white); }

.hero-layout {
  min-height: calc(100svh - 176px);
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(500px, 1.22fr);
  align-items: center;
  gap: clamp(42px, 8vw, 140px);
  padding: 14px clamp(24px, 4.6vw, 76px) 76px;
}
.eyebrow {
  margin: 0 0 18px;
  font: 10px/1.2 Arial, sans-serif;
  letter-spacing: .24em;
  opacity: .58;
}
.eyebrow.dark { color: var(--muted); }
.hero-copy { max-width: 480px; padding-top: 24px; }
.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 4vw, 66px);
  line-height: 1.1;
  letter-spacing: .06em;
  font-weight: 400;
}
.hero-description { max-width: 390px; margin: 0; font-size: 16px; line-height: 1.9; opacity: .83; }
.small-rule { display: block; width: 54px; height: 1px; margin: 30px 0 22px; background: rgba(255,255,255,.35); }
.hero-meta { display: grid; gap: 13px; font: 13px/1.4 Arial, sans-serif; }
.hero-meta p { margin: 0; }
.hero-meta span { display: inline-block; width: 25px; opacity: .85; }
.hero-meta b { font-weight: 400; }
.hero-meta a { width: fit-content; }

.featured-panel { width: min(100%, 760px); justify-self: end; align-self: center; }
.featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  background: center / cover;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.2);
}
.thumb-row { display: grid; grid-template-columns: 36px 1fr 36px; gap: 16px; align-items: center; margin-top: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumb { aspect-ratio: 1.62 / 1; border-radius: 5px; background: center / cover; border: 1px solid transparent; opacity: .75; }
.thumb.active { opacity: 1; border: 2px solid var(--white); }
.arrow { background: transparent; color: white; font: 42px/1 Arial, sans-serif; padding: 0; opacity: .9; }
.hero-footer {
  position: absolute;
  left: clamp(24px, 4.6vw, 76px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  font: 11px/1 Arial, sans-serif;
  letter-spacing: .04em;
}
.progress-track { width: clamp(90px, 14vw, 230px); height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 1px; background: #fff; }
.play-mark { font-size: 10px; transform: rotate(90deg); }
@keyframes progress { to { width: 100%; } }

main { background: var(--ivory); }
.album-section, .photo-section { padding: 66px clamp(24px, 4.6vw, 76px); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.section-heading h2, .album-intro h2, .lightbox-copy h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: .05em;
}
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: right; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 16px; }
.album-card { display: block; text-align: left; padding: 0; background: transparent; border-bottom: 1px solid var(--line); }
.album-cover { display: block; aspect-ratio: 1.15 / 1; background: center / cover; border-radius: 6px 6px 0 0; filter: saturate(.82); transition: filter .25s, transform .25s; }
.album-card:hover .album-cover { filter: saturate(1); transform: translateY(-3px); }
.album-card.selected { border-color: var(--ink); }
.album-card-copy { display: grid; padding: 15px 8px 14px; }
.album-card-copy strong { margin-bottom: 10px; font-size: 17px; font-weight: 500; }
.album-card-copy small { color: var(--muted); font: 10px/1.7 Arial, sans-serif; }

.photo-section { border-top: 1px solid var(--line); padding-top: 56px; background: var(--paper); }
.album-intro {
  display: grid;
  grid-template-columns: 1fr 1.55fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid #c9cbc3;
}
.album-description { max-width: 560px; margin: 0; color: #49564f; font-size: 13px; line-height: 1.8; }
.album-stats { display: grid; gap: 11px; font: 11px/1.2 Arial, sans-serif; color: #4c5851; }
.album-stats p { margin: 0; white-space: nowrap; }
.photo-wall { columns: 4; column-gap: 14px; }
.photo-card { display: block; width: 100%; margin: 0 0 20px; padding: 0; break-inside: avoid; text-align: left; background: transparent; }
.photo-card img { display: block; width: 100%; object-fit: cover; border-radius: 5px; filter: saturate(.83); transition: filter .25s, opacity .25s; }
.photo-card:hover img { filter: saturate(1); opacity: .92; }
.photo-caption { display: grid; padding: 8px 2px 0; }
.photo-caption strong { font-size: 12px; font-weight: 500; }
.photo-caption small { margin-top: 3px; color: var(--muted); font: 9px/1.4 Arial, sans-serif; }

.lightbox {
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}
.lightbox::backdrop { background: rgba(5, 12, 9, .82); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-columns: 1.6fr .7fr; }
.lightbox-image-wrap { min-height: 520px; background: #101611; display: grid; place-items: center; }
.lightbox-image-wrap img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox-copy { padding: 52px 36px; align-self: end; }
.lightbox-copy p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.lightbox-meta { display: grid; gap: 9px; margin-top: 28px; font: 11px/1.4 Arial, sans-serif; color: var(--muted); }
.lightbox-close { position: fixed; right: 24px; top: 18px; z-index: 2; padding: 5px 12px; color: white; background: transparent; font: 34px/1 Arial, sans-serif; }

/* ---- submit dialog ---- */
.submit-dialog {
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
  overflow: visible;
}
.submit-dialog::backdrop {
  background: rgba(5, 12, 9, .78);
  backdrop-filter: blur(8px);
}
.submit-dialog[open] {
  display: block;
  animation: dialog-in .3s ease;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.submit-dialog-close {
  position: absolute;
  right: -8px;
  top: -8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font: 22px/1 Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: background .15s;
}
.submit-dialog-close:hover { background: #2a4438; }
.submit-dialog-inner {
  padding: 52px clamp(28px, 5vw, 48px) 44px;
}
.submit-dialog-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: .05em;
}
.submit-dialog-inner .small-rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 26px auto;
  background: var(--line);
}
.submit-intro {
  max-width: 380px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.submit-email {
  display: inline-block;
  padding: 18px 36px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  letter-spacing: .03em;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.submit-email:hover { background: #e8e6dd; border-color: #b0aea5; }
.submit-copy-hint {
  display: block;
  margin-top: 10px;
  font: 10px/1 Arial, sans-serif;
  letter-spacing: .08em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .3s;
}
.submit-copy-hint.visible { opacity: .78; }
.submit-note {
  margin: 24px 0 0;
  font: 12px/1.7 Arial, sans-serif;
  color: var(--muted);
}
.submit-note b { color: var(--ink); }

@media (max-width: 1050px) {
  .hero-layout { grid-template-columns: .8fr 1.2fr; gap: 32px; }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-wall { columns: 3; }
  .album-intro { grid-template-columns: 1fr 1.4fr; }
  .album-stats { grid-column: 2; display: flex; gap: 20px; }
}

@media (max-width: 760px) {
  .topbar { height: 70px; padding: 0 20px; }
  .brand { font-size: 14px; }
  .nav-links { gap: 16px; font-size: 11px; }
  .nav-links a:last-child { display: none; }
  .hero { min-height: 100svh; }
  .hero-layout {
    min-height: calc(100svh - 70px);
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 24px;
    padding: 22px 20px 90px;
  }
  .featured-panel { width: 100%; }
  .featured-image { aspect-ratio: 1.35 / 1; border-radius: 12px; }
  .thumb-row { grid-template-columns: 26px 1fr 26px; gap: 7px; margin-top: 10px; }
  .thumbs { gap: 6px; }
  .arrow { font-size: 30px; }
  .hero-copy { padding: 0; max-width: none; }
  .hero-copy .eyebrow, .small-rule { display: none; }
  .hero-copy h1 { margin-bottom: 10px; font-size: 30px; }
  .hero-description { font-size: 12px; line-height: 1.65; }
  .hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 10px; }
  .hero-meta a { width: 100%; }
  .hero-footer { left: 20px; bottom: 24px; }
  .album-section, .photo-section { padding: 48px 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; text-align: left; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .album-cover { aspect-ratio: 1 / 1; }
  .album-card-copy { padding-left: 2px; }
  .album-card-copy strong { font-size: 14px; }
  .album-intro { display: block; }
  .album-description { margin: 16px 0; }
  .album-stats { display: flex; justify-content: space-between; }
  .photo-wall { columns: 2; column-gap: 8px; }
  .photo-card { margin-bottom: 14px; }
  .lightbox[open] { display: block; }
  .lightbox-image-wrap { min-height: 0; }
  .lightbox-copy { padding: 28px 22px; }
  .submit-dialog-inner { padding: 38px 24px 34px; }
  .submit-email { padding: 14px 20px; font-size: 16px; }
  .nav-links a:last-child { display: inline; }
}
.autof-legal { padding: 24px; text-align: center; font-size: 12px; color: #777; }
.autof-legal a { color: inherit; text-decoration: none; }
