/* VOICE occasion: a wedding studio's site, tender and calm, photos first
   IDEA a printed wedding album: a full-bleed cover photo, then plates with short captions
   PICTURE the cover photo behind the headline, then a 12-photo mosaic on a deep indigo band
   COLOUR white ground, deep indigo fields, petal pink for actions, soft violet for links
   TYPE Bodoni Moda (headings, wordmark) + Jost (text)
   LAYOUT laptop: photo cover with the headline bottom left, mosaic in three columns;
          phone: cover, headline, buttons, then one photo per row */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f4f3fb;
  --ink: #1b1a38;
  --soft: #55537a;
  --line: #e1dff0;
  --indigo: #2a2670;
  --indigo-deep: #17153f;
  --violet: #5a52c8;
  --petal: #f2c6d4;
  --petal-strong: #f7d8e2;
  --on-dark: #ece9ff;
  --radius: 10px;
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --text: "Jost", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(5vw, 16px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  overflow-wrap: break-word;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--petal);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--indigo-deep); margin: 0 0 .7rem; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .45rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--indigo-deep); font: 500 1.5rem/1 var(--display); }
.nav { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--violet); }
.nav .nav-cta { padding: .5rem 1rem; border-radius: 999px; background: var(--indigo); color: #fff; }
.nav .nav-cta:hover { background: var(--violet); color: #fff; }
@media (max-width: 700px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.3rem; }
}

/* Hero: a full-bleed cover photo when one is set, a plain indigo field when not */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(165deg, var(--indigo-deep) 0%, var(--indigo) 60%, #4a43a6 100%);
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}
.hero.has-photo { min-height: min(86svh, 880px); padding-top: 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 21, 63, .88) 0%, rgba(23, 21, 63, .5) 38%, rgba(23, 21, 63, 0) 66%); }
.hero:not(.has-photo) .hero-shade { display: none; }
.hero-inner { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.8rem); max-width: 13ch; margin-bottom: 1rem; }
.lede { font: italic 400 clamp(1.15rem, 2.3vw, 1.45rem)/1.4 var(--display); max-width: 34ch; margin: 0 0 .6rem; color: #fff; }
.hero-sub { max-width: 46ch; margin: 0 0 1.8rem; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: .9rem 1.5rem; border-radius: 999px;
  font: 500 1rem/1.2 var(--text); text-decoration: none; text-align: center;
}
.btn-petal { background: var(--petal); color: var(--indigo-deep); }
.btn-petal:hover { background: var(--petal-strong); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--violet); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: .25rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p, .section-lede { color: var(--soft); max-width: 58ch; margin: 0; }
.split { display: grid; gap: 1.5rem 4rem; }
.split > * { min-width: 0; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.split-body p { margin: 0 0 1rem; }
.giveback { font: italic 400 1.25rem/1.45 var(--display); color: var(--indigo); }

/* Portfolio: a deep indigo band, photos as album plates */
.portfolio { background: var(--indigo-deep); color: var(--on-dark); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.portfolio h2 { color: #fff; }
.portfolio .section-head p { color: var(--on-dark); opacity: .85; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; grid-auto-flow: dense; }
.mosaic figure { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.mosaic button { display: block; flex: 1 1 auto; position: relative; padding: 0; border: 0; background: #0f0e2c; cursor: zoom-in; border-radius: 6px; overflow: hidden; min-height: 0; }
.mosaic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.mosaic button:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .mosaic img { transition: none; } .mosaic button:hover img { transform: none; } }
.mosaic .is-tall img { aspect-ratio: 4 / 5; }
.mosaic figcaption { font-size: .92rem; color: var(--on-dark); opacity: .8; padding-top: .45rem; }
@media (min-width: 600px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .mosaic .is-tall { grid-row: span 2; }
  .mosaic .is-tall img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 960px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mosaic figure:last-child:not(.is-tall) { grid-column: span 2; }
  .mosaic figure:last-child:not(.is-tall) img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 62%; }
}
.portfolio-cta { margin: clamp(2rem, 4vw, 3rem) 0 0; }

/* Services as a ruled list, not tiles */
.offers { display: grid; gap: 0 3rem; }
@media (min-width: 760px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer { border-top: 1px solid var(--line); padding-block: 1.4rem; min-width: 0; }
.offer p { margin: 0 0 .5rem; color: var(--soft); }
.price { font-weight: 500; color: var(--indigo) !important; margin: 0 !important; }
.note { color: var(--soft); font-size: .95rem; margin: 1.5rem 0 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 3rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.2rem; min-width: 0; }
.steps li::before { content: counter(step); display: block; font: italic 500 2.4rem/1 var(--display); color: var(--violet); margin-bottom: .6rem; }
.steps p { color: var(--soft); margin: 0; }

blockquote { margin: 0 0 2rem; font: 400 1.45rem/1.45 var(--display); color: var(--indigo-deep); }
blockquote footer { margin-top: .5rem; font: 500 .95rem/1.4 var(--text); color: var(--soft); }

details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; color: var(--indigo-deep); }
details p { margin: .6rem 0 0; color: var(--soft); }

/* Booking form */
.book { background: var(--mist); }
.book-form { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); min-width: 0; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
label, legend { font-weight: 500; font-size: .98rem; color: var(--indigo-deep); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: .35rem; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .7rem .85rem; border-radius: 8px; border: 1px solid #c8c5e0; background: #fff; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 400; color: var(--ink); padding: .2rem 0; }
.check input { width: 1.15rem; height: 1.15rem; flex: none; }
.book-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; color: var(--indigo); }
.form-status.is-error { color: #9b1c3a; }

/* Footer */
.site-footer { background: var(--indigo-deep); color: var(--on-dark); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.footer-row p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font: 500 1.35rem/1 var(--display); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { color: var(--petal); }
.footer-small { font-size: .88rem; opacity: .8; }

/* Photo viewer */
.viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); border: 0; background: rgba(15, 14, 44, .96); color: var(--on-dark); }
.viewer[open] { display: flex; flex-direction: column; gap: .75rem; }
.viewer::backdrop { background: rgba(15, 14, 44, .9); }
.viewer figure { margin: 0; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.viewer img { max-width: 100%; max-height: calc(100% - 2.5rem); object-fit: contain; border-radius: 4px; }
.viewer figcaption { text-align: center; font-size: .95rem; }
.viewer-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.viewer-bar button { font: 500 1rem/1 var(--text); padding: .8rem 1.2rem; min-height: 44px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; }
.viewer-bar button:hover { background: rgba(255, 255, 255, .22); }
.viewer-bar [data-viewer="close"] { background: var(--petal); color: var(--indigo-deep); }
