:root {
  --bg: #f6f3ee;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(77, 64, 51, 0.12);
  --text: #2b2520;
  --muted: #9e9286;
  --hover: #000;
  --shadow: 0 22px 50px rgba(74, 56, 39, 0.09);
  --radius: 30px;
  --radius-small: 22px;
  --content-width: min(1960px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(228, 215, 201, 0.5), transparent 28%),
    linear-gradient(180deg, #fcf7f0 0%, #f7efe5 100%);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: none;
  overflow: clip;
}

.page-shell-inner {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 70px;
  z-index: 20;
  border-radius: 0;
  background: rgba(255, 252, 248, 0.48);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.brand,
.hero h1,
.story-title h1,
.about-text {
  font-family: "Cormorant Garamond", serif;
}

.brand {
  font-size: clamp(1.45rem, 1.35vw, 2.1rem);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 52px;
  font-size: clamp(0.8rem, 0.72vw, 0.95rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #74685d;
}

.nav-group {
  position: relative;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-work.nav-open > a {
  color: var(--hover);
}

.site-nav a[aria-current="page"],
.page-romance .nav-work > a,
.page-moments .nav-work > a,
.page-places .nav-work > a {
  color: var(--text);
}

.work-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: -28px;
  min-width: 280px;
  display: grid;
  gap: 24px;
  padding: 24px 30px 26px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(77, 64, 51, 0.08);
  box-shadow: 0 16px 30px rgba(50, 37, 26, 0.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.work-dropdown a {
  display: block;
}

.work-dropdown a[aria-current="page"] {
  color: var(--text);
}

.work-dropdown a:hover,
.work-dropdown a:focus-visible {
  color: var(--hover);
}

.nav-work:hover .work-dropdown,
.nav-work:focus-within .work-dropdown,
.nav-work.nav-open .work-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 242, 236, 0.48) 0%, rgba(44, 31, 18, 0.04) 42%, rgba(31, 19, 8, 0.28) 100%);
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 940px;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: absolute;
  right: clamp(40px, 5vw, 110px);
  bottom: clamp(40px, 7vw, 92px);
  z-index: 1;
}

.hero h1,
.story-title h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.hero h1 {
  color: rgba(255, 248, 243, 0.96);
  text-align: right;
}

.story-title h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.work-section {
  padding: 0 78px 64px;
}

.section-spacer {
  height: 225px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.story-card {
  display: block;
}

.story-image-wrap {
  aspect-ratio: 1.02;
  overflow: hidden;
  background: #e8e2da;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.story-card:hover img,
.story-card:focus-visible img {
  transform: scale(1.02);
  filter: saturate(1.03);
}

.story-card span,
.eyebrow {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(0.82rem, 0.78vw, 1.22rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-section {
  border-top: 1px solid var(--line);
  padding: 78px 0 120px;
}

.about-inner {
  max-width: 1320px;
  padding: 0 94px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 420px);
  gap: 56px;
  align-items: start;
}

.about-copy {
  min-width: 0;
}

.about-text {
  margin: 48px 0 78px;
  max-width: 920px;
  font-size: clamp(1.7rem, 2.45vw, 2.8rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #000;
}

.about-contact {
  margin: 0;
  font-size: clamp(0.95rem, 1.05vw, 1.45rem);
  color: var(--muted);
}

.about-portrait {
  margin: 72px 0 0;
  width: min(100%, 360px);
  aspect-ratio: 0.82;
  overflow: hidden;
  background: #e8e1d7;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 78px 34px;
  background: #5a5048;
  color: rgba(255, 248, 241, 0.94);
}

.footer-credit,
.footer-location,
.footer-links {
  margin: 0;
  font-size: clamp(0.75rem, 0.72vw, 0.92rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-location {
  color: rgba(255, 248, 241, 0.72);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 241, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.06);
  color: inherit;
  transition:
    color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: #fffdf9;
  background: rgba(255, 248, 241, 0.14);
  border-color: rgba(255, 248, 241, 0.3);
  transform: translateY(-1px);
}

.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;
}

.story-page {
  padding: 148px 78px 90px;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  font-size: clamp(0.78rem, 0.72vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.back-link::before {
  content: "< ";
}

.story-title {
  padding: 12px 0 86px;
}

.story-title h1 {
  color: var(--text);
}

.couples-list {
  display: grid;
  gap: 52px;
}

.couple-section {
  border-top: 1px solid rgba(77, 64, 51, 0.12);
  padding-top: 26px;
}

.couple-toggle {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 520px);
  gap: 24px;
  align-items: end;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.couple-name {
  align-self: center;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.88vw, 1.2rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.couple-cover {
  position: relative;
  margin: 0;
  background: rgba(255, 252, 247, 0.92);
  overflow: hidden;
  max-width: 520px;
}

.couple-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 252, 247, 0.24);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.couple-cover img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 260ms ease, filter 260ms ease;
}

.couple-toggle:hover .couple-cover::after,
.couple-toggle:focus-visible .couple-cover::after {
  opacity: 1;
}

.couple-toggle:hover .couple-cover img,
.couple-toggle:focus-visible .couple-cover img {
  transform: scale(1.03);
  filter: saturate(1.03);
}

.couple-gallery {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    grid-template-rows 420ms ease,
    opacity 320ms ease,
    transform 420ms ease,
    padding-top 420ms ease;
  padding-top: 0;
}

.couple-gallery > * {
  min-height: 0;
}

.couple-section.is-open .couple-gallery {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  padding-top: 28px;
}

.story-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.couple-gallery .story-gallery-masonry {
  overflow: hidden;
}

.story-frame {
  margin: 0;
  background: rgba(255, 252, 247, 0.92);
}

.story-frame-gallery {
  aspect-ratio: 0.88;
}

.story-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.story-frame-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.story-frame-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 260ms ease, filter 260ms ease;
}

.story-frame-button:hover img,
.story-frame-button:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px 32px;
  background: rgba(18, 14, 10, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(94vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 243, 0.95);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .site-header {
    gap: 16px;
    padding: 22px 20px;
    border-radius: 0;
  }

  .page-shell {
    width: 100%;
    border-radius: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    right: 12px;
    display: none;
    width: min(320px, calc(100vw - 24px));
    max-height: min(70svh, 480px);
    overflow-y: auto;
    padding: 18px 18px 22px;
    border: 1px solid rgba(77, 64, 51, 0.08);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 16px 30px rgba(50, 37, 26, 0.08);
  }

  .site-nav.nav-visible {
    display: grid;
    gap: 22px;
  }

  .nav-group {
    display: grid;
    gap: 16px;
  }

  .work-dropdown {
    position: static;
    min-width: auto;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    gap: 18px;
    display: none;
  }

  .nav-work.nav-open .work-dropdown {
    display: grid;
  }

  .nav-toggle {
    display: block;
    padding: 0;
    font-size: 0.76rem;
    line-height: 1;
  }

  .hero,
  .hero img {
    min-height: 76svh;
  }

  .work-section,
  .story-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-spacer {
    height: 80px;
  }

  .card-grid,
  .story-gallery-masonry {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .couple-toggle {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .story-gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .about-inner {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-text {
    margin: 20px 0 32px;
    max-width: 34rem;
  }

  .about-portrait {
    margin-top: 0;
    max-width: 360px;
  }

  .site-footer {
    padding: 22px 20px 28px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    margin: 0;
  }

  .site-header {
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    gap: 12px;
    padding: 16px 14px;
  }

  .brand {
    font-size: 1.35rem;
    line-height: 1;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.15rem);
    line-height: 0.96;
    letter-spacing: 0.02em;
    text-align: left;
  }

  .story-card span,
  .eyebrow,
  .site-nav {
    letter-spacing: 0.18em;
  }

  .site-nav {
    right: 8px;
    width: calc(100vw - 16px);
    gap: 18px;
    font-size: 0.72rem;
  }

  .work-dropdown {
    gap: 14px;
    padding-left: 12px;
  }

  .hero,
  .hero img {
    min-height: 70svh;
  }

  .work-section {
    padding-bottom: 52px;
  }

  .section-spacer {
    height: 56px;
  }

  .card-grid {
    gap: 24px;
  }

  .story-card span {
    margin-top: 16px;
    font-size: 0.8rem;
  }

  .about-section {
    padding: 56px 0 76px;
  }

  .about-inner {
    padding: 0 16px;
  }

  .about-text {
    margin: 16px 0 24px;
    font-size: clamp(1.45rem, 8vw, 2.05rem);
    line-height: 1.1;
  }

  .about-contact {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .about-portrait {
    width: min(100%, 280px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px 24px;
  }

  .footer-links {
    gap: 18px;
    flex-wrap: wrap;
  }

  .story-page {
    padding: 100px 16px 56px;
  }

  .story-title {
    padding: 8px 0 32px;
  }

  .story-title h1 {
    font-size: clamp(1.7rem, 11vw, 2.5rem);
  }

  .back-link {
    margin-bottom: 20px;
    font-size: 0.72rem;
  }

  .couples-list {
    gap: 36px;
  }

  .couple-section {
    padding-top: 18px;
  }

  .couple-name {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .couple-gallery {
    transition:
      grid-template-rows 360ms ease,
      opacity 260ms ease,
      transform 360ms ease,
      padding-top 360ms ease;
  }

  .couple-section.is-open .couple-gallery {
    padding-top: 20px;
  }

  .story-gallery-masonry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lightbox {
    padding: 52px 12px 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 14px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 14px 12px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav-toggle {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .hero,
  .hero img {
    min-height: 66svh;
  }

  .hero-copy {
    left: 14px;
    right: 14px;
    bottom: 16px;
  }

  .work-section,
  .story-page,
  .about-inner,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}
