/* Little Duck Calligraphy — one-page hiatus site
   Soft, editorial wedding aesthetic. Vanilla CSS, no framework. */

:root {
  --cream: #fbf7f1;
  --cream-2: #f4ece1;
  --ink: #3a342e;
  --ink-soft: #6f665c;
  --rose: #b98c87;
  --rose-soft: #d9c0bb;
  --blue: #9fb2bb;
  --gold: #b8975a;
  --line: #e6dccd;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.1em;
}

/* ===== Hero ===== */
.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(auto, 760px) minmax(0, 1fr);
  align-items: stretch;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--cream) 55%, var(--cream-2) 100%);
}

.hero__side { overflow: hidden; }
.hero__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero__side--right img { object-position: center 38%; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7vh 40px 9vh;
}

.hero__logo {
  width: min(440px, 78vw);
  margin: 0 auto 2.4rem;
}

.hiatus-pill {
  display: inline-block;
  margin: 0.4rem 0 1.8rem;
  padding: 0.55em 1.4em;
  border: 1px solid var(--rose-soft);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose);
  background: #fff;
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1em;
}

.hero__sub {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
}

.scroll-cue {
  display: inline-block;
  margin-top: 3rem;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--rose);
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.scroll-cue:hover { transform: translateY(4px); border-color: var(--rose); }

/* ===== Story ===== */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 24px;
}

.story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.story__text { max-width: 48ch; }
.story__text p { color: var(--ink-soft); }
.story__text p:first-of-type { color: var(--ink); }

/* ===== Gallery ===== */
.gallery {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: clamp(3rem, 8vw, 6rem) 24px clamp(4rem, 10vw, 7rem);
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.section-sub { color: var(--ink-soft); }

.collections { max-width: var(--maxw); margin: 0 auto; }

.collection { margin-bottom: clamp(3rem, 7vw, 5rem); }

.collection__head {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.collection__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  margin: 0 0 0.35rem;
}
.collection__credit {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0;
}

/* masonry via CSS columns */
.masonry {
  columns: 3 280px;
  column-gap: 14px;
}
.masonry .tile {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: var(--cream-2);
  cursor: pointer;
  display: block;
  overflow: hidden;
  border-radius: 2px;
}
.masonry .tile img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.masonry .tile img.loaded { opacity: 1; }
.masonry .tile:hover img { transform: scale(1.04); }
.masonry .tile:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 24px;
  background: var(--ink);
  color: #d9d0c5;
}
.footer__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: #fff;
  margin: 0 0 0.4rem;
}
.footer__meta {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin: 0 0 1.6rem;
}
.footer__copy { font-size: 0.78rem; color: #9a9087; margin: 0; line-height: 1.6; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 24, 20, 0.94);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__stage img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__stage figcaption {
  margin-top: 1rem;
  color: #e9e1d6;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 20px; right: 26px; font-size: 2.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 18px; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__side { display: none; }
}

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; text-align: left; }
  .story__media { max-width: 420px; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; }
  .lightbox__nav { font-size: 2.4rem; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
