/* Diana Photographer — Wedding Photo & Film Team */

:root {
  --bg: #fbfaf7;
  --header: #f4f2ee;
  --ink: #2a2826;
  --muted: #77716a;
  --line: #e2ddd5;
  --ph: #ebe7e1;
  --error: #a3442f;
  --accent: #ac5d5d;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gap: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.no-scroll,
.no-scroll body { overflow: hidden; }

/* Text links keep their look but get a finger-sized hit area. */
.link-btn,
.footer-mail,
.contact-value,
.nav a { position: relative; }

.link-btn::before,
.footer-mail::before,
.contact-value::before,
.nav a::before {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

main { flex: 1 0 auto; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
}
.skip:focus { left: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  background: var(--header);
  text-align: center;
  padding: 46px 20px 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.brand-avatar {
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 2px 14px rgba(42, 40, 38, 0.12);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 3.3vw, 38px);
  letter-spacing: 0.24em;
  margin-right: -0.24em; /* balance trailing letter-spacing */
  line-height: 1.15;
}

.brand-sub {
  margin-top: 14px;
  margin-right: -0.46em;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.46em;
  color: var(--muted);
  line-height: 1.4;
}

.nav { margin-top: 32px; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(22px, 4.4vw, 60px);
}

.nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  position: absolute;
  top: 22px;
  left: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s, top 0.25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; transition: opacity 0.2s; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Phones: burger in the top right corner, logo on one line; the menu opens full screen. */
@media (max-width: 720px) {
  .site-header { padding: 52px 16px 22px; }
  .brand { display: flex; }
  .brand-avatar { width: 84px; height: 84px; margin-bottom: 16px; }
  .brand-name { font-size: min(26px, 6.3vw); letter-spacing: 0.12em; margin-right: -0.12em; white-space: nowrap; }
  .brand-sub { font-size: 10.5px; letter-spacing: 0.3em; margin-right: -0.3em; margin-top: 10px; white-space: nowrap; }

  .nav-toggle { display: block; top: 8px; left: auto; right: 6px; z-index: 31; }
  .nav-toggle[aria-expanded="true"] { position: fixed; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    margin: 0;
    padding: 84px 24px 40px;
    overflow-y: auto;
    background: var(--bg);
  }
  .nav.is-open { display: block; animation: fade 0.25s ease; }
  .nav ul { flex-direction: column; align-items: center; gap: 2px; }
  .nav a { font-size: 18px; letter-spacing: 0.06em; padding: 9px 0; }
  .nav a::before { inset: 0 -16px; }

  .menu-open,
  .menu-open body { overflow: hidden; }
}

/* ---------- Page intro ---------- */

.page-intro {
  max-width: 760px;
  margin: clamp(56px, 8vw, 96px) auto clamp(40px, 6vw, 72px);
  padding: 0 24px;
  text-align: center;
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin: 22px auto 0;
  max-width: 620px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Photo slots & placeholders ---------- */

.slot {
  position: relative;
  overflow: hidden;
  background: var(--ph);
}

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

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(42, 40, 38, 0.06) 50%, transparent 50.4%),
    var(--ph);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Masonry (Home, wedding galleries) ---------- */

.masonry {
  columns: 3;
  column-gap: var(--gap);
  padding: 0 var(--gap);
}

.masonry figure {
  margin: 0 0 var(--gap);
  break-inside: avoid;
}

.masonry a { display: block; cursor: zoom-in; }

.masonry img { width: 100%; background: var(--ph); }

.home .masonry { padding-top: var(--gap); }

@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 720px) {
  .masonry { padding: 0 12px; }
  .home .masonry { padding-top: 12px; }
}

/* Hover: the photo slowly zooms in while a light veil with like/share slides in from the right. */
.tile { position: relative; overflow: hidden; }

.tile img { transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99); }

.tile-veil {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.tile-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 4px;
  pointer-events: none;
}
.tile-actions button { pointer-events: auto; }

.tile-veil,
.tile-actions {
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (hover: hover) {
  .tile:hover img { transform: scale(1.1); }
  .tile:hover .tile-veil,
  .tile:hover .tile-actions { transform: none; }
}
.tile:focus-within .tile-veil,
.tile:focus-within .tile-actions { transform: none; }

/* Touch screens have no hover: like and share live in the full-screen viewer instead. */
@media (hover: none) {
  .tile-veil,
  .tile-actions { display: none; }
}

.like,
.share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.like svg,
.share svg { width: 21px; height: 21px; transition: transform 0.2s; }
.like:active svg { transform: scale(0.82); }
.like[aria-pressed="true"] { color: var(--accent); }
.like[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Wedding cards (Gallery) & film cards ---------- */

.stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(64px, 7vw, 96px) clamp(28px, 4vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.stories > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - clamp(28px, 4vw, 56px) / 2);
}

.story { text-align: center; }

.story-media {
  display: block;
  aspect-ratio: 3 / 2;
  text-decoration: none;
}
.story-media.ph { display: flex; }

.story-media img { object-position: 50% 35%; transition: transform 0.8s ease; }
.story-media:hover img { transform: scale(1.03); }

.story-loc {
  margin: 24px 0 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-names {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.link-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 0 3px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.link-btn:hover { color: var(--muted); border-color: var(--muted); }

@media (max-width: 720px) {
  .stories { grid-template-columns: 1fr; }
  .stories > :last-child:nth-child(odd) { width: auto; justify-self: stretch; }
}

.films {
  display: grid;
  gap: clamp(72px, 9vw, 120px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.film { text-align: center; scroll-margin-top: 24px; }

.film-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.film-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 18, 0.12);
  transition: background 0.3s;
}
.film-media:hover::after { background: rgba(20, 19, 18, 0.24); }

.play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: transform 0.3s;
}
.play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.film-media:hover .play { transform: scale(1.06); }
.film-media.ph .play { border-color: var(--muted); }
.film-media.ph .play::before { border-left-color: var(--muted); }

@media (max-width: 560px) {
  .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-outline { background: transparent; color: var(--ink); margin-top: 22px; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- Single wedding page ---------- */

.wedding-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.wedding-nav .link-btn { margin-top: 0; }
.wedding-nav .center { text-align: center; flex: 1; }

@media (max-width: 560px) {
  .wedding-nav { flex-direction: column; }
}

.notice { text-align: center; padding: 40px 24px; }

/* ---------- Contact ---------- */

.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.portrait {
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
}

.contact-items {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 24px);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.contact-value:hover { border-bottom-color: var(--ink); }

.form-block {
  margin-top: clamp(80px, 10vw, 120px);
  padding-top: clamp(56px, 7vw, 80px);
  border-top: 1px solid var(--line);
}

/* Desktop: portrait on the left, contacts and the form beside it. */
@media (min-width: 900px) {
  .contact {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .contact .portrait {
    max-width: none;
    position: sticky;
    top: 32px;
  }
  .contact-items { margin-top: 8px; }
  .form-block { margin-top: 56px; padding-top: 48px; }
}

.form-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: 0.16em;
  margin-right: -0.16em;
}

.form {
  margin-top: 44px;
  text-align: left;
  display: grid;
  gap: 30px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.field label .req { color: var(--muted); }

.field input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #b9b2a8;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}
.field input:focus { outline: none; border-bottom-color: var(--ink); }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); }

.field-error {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--error);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { text-align: center; margin-top: 6px; }

.form-status {
  margin: 0;
  text-align: center;
  font-size: 15px;
}
.form-status.is-error { color: var(--error); }

.form-success {
  margin-top: 44px;
  padding: 40px 24px;
  border: 1px solid var(--line);
}
.form-success p { margin: 0; }
.form-success .lead { margin-top: 0; }

/* ---------- About ---------- */

.about-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.about-block + .about-block { margin-top: clamp(96px, 12vw, 150px); }

.about-photo { max-width: 480px; margin: 0 auto; aspect-ratio: 2 / 3; }
.about-photo.wide { max-width: 900px; aspect-ratio: 3 / 2; }

.about-heading {
  margin: 48px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: 0.16em;
  margin-right: -0.16em;
}

.prose {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 17px;
  color: #4a4642;
}
.prose p { margin: 0 0 1.1em; }

.about-cta { margin-top: clamp(80px, 10vw, 120px); text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(96px, 12vw, 150px);
  padding: 64px 20px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
}

.footer-ig {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  text-decoration: none;
  font-size: 16px;
}
.footer-ig:hover span { border-bottom-color: var(--ink); }
.footer-ig span { border-bottom: 1px solid transparent; }

.footer-mail {
  display: inline-block;
  margin-top: 26px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer-mail:hover { border-bottom-color: var(--ink); }

.footer-fine {
  margin: 44px 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
}

/* ---------- Modal: lightbox & film player ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 17, 16, 0.97);
  color: #fff;
  overscroll-behavior: contain;
  animation: fade 0.25s ease;
}

@keyframes fade { from { opacity: 0; } }

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.modal-close svg { width: 22px; height: 22px; }

.film-frame {
  width: min(92vw, calc(84vh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
}
.film-frame iframe,
.film-frame video { width: 100%; height: 100%; border: 0; display: block; }

.film-soon { max-width: 420px; padding: 24px; text-align: center; }
.film-soon .lead { color: #fff; }

.lb-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 80px;
  margin-top: -40px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
.lb-prev svg, .lb-next svg { width: 26px; height: 26px; }

.lb-count {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  opacity: 0.7;
  pointer-events: none; /* spans the full width; must not swallow taps on the arrows */
}

.lb-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}
.lb-actions button { pointer-events: auto; color: #fff; }
.lb-actions .like[aria-pressed="true"] { color: #e8a3a3; }

@media (max-width: 720px) {
  .lb-figure { padding: 56px 0 64px; }
  .lb-prev, .lb-next { top: auto; bottom: 0; height: 56px; margin-top: 0; }
  .lb-prev { left: calc(50% - 100px); }
  .lb-next { right: calc(50% - 100px); }
  .lb-prev svg, .lb-next svg { width: 18px; height: 18px; }
  .lb-count { bottom: 0; line-height: 56px; }
}

/* Light dialog (share) */

.modal-light { background: rgba(42, 40, 38, 0.45); color: var(--ink); }

.modal-box {
  position: relative;
  width: min(92vw, 500px);
  padding: 48px 28px 32px;
  background: var(--bg);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.modal-box .modal-close { top: 4px; right: 4px; color: var(--ink); }
.modal-box .modal-close svg { width: 18px; height: 18px; }

.share-title {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s;
}
.share-links a:hover { background: var(--ph); }
.share-links svg { width: 22px; height: 22px; }

.share-copy { display: flex; margin-top: 22px; }
.share-copy input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
}
.share-copy-btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

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