/* Studio sites (src/site.js): one published studio page served as its own
   site, as plain HTML a search engine can read. The page's <style> block sets
   the studio's colours (--brand*, --brand-ink*) and display face (--display);
   everything else is here. No external requests: fonts are served by the site. */
@font-face { font-family: 'Outfit Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(outfit-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Cormorant Garamond Variable'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(cormorant-garamond-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(instrument-serif-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-display: swap; font-weight: 400; src: url(great-vibes-latin-400-normal.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #ffffff; --ink: #18181b; --ink-body: #3f3f46; --ink-soft: #636366; --line: rgb(0 0 0 / 0.1); --photo: #ececf0;
  --accent: var(--brand, #18181b); --on-accent: var(--brand-ink, #ffffff);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0c; --ink: #f4f4f5; --ink-body: #d4d4d8; --ink-soft: #a1a1aa; --line: rgb(255 255 255 / 0.14); --photo: #1c1c1f;
    --accent: var(--brand-dark, #f4f4f5); --on-accent: var(--brand-dark-ink, #18181b); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; margin: 0; text-wrap: balance; }
.font-classic .display { font-weight: 500; }
.font-editorial .display { font-weight: 400; letter-spacing: -0.01em; }
.font-script .display { font-weight: 400; letter-spacing: 0; line-height: 1.15; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow svg { width: 14px; height: 14px; }
.lede { margin: 14px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.5; max-width: 60ch; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.mark img { max-height: 44px; max-width: 200px; width: auto; height: auto; }
.mark span { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.font-script .mark span { font-size: 1.7rem; font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms; }
.btn:hover { background: var(--line); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

/* Hero */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(360px, 68vh, 680px); border-radius: 24px; overflow: hidden; background: var(--photo); isolation: isolate; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.66), rgb(0 0 0 / 0.1) 55%, transparent); }
.hero .text { position: relative; z-index: 1; padding: clamp(24px, 5vw, 56px); color: #fff; max-width: 860px; }
.hero .display { font-size: clamp(2.6rem, 7.5vw, 5.75rem); color: #fff; text-shadow: 0 1px 16px rgb(0 0 0 / 0.3); }
.font-script .hero .display { font-size: clamp(3.2rem, 9vw, 7rem); }
.hero .eyebrow { color: rgb(255 255 255 / 0.88); }
.hero .lede { color: rgb(255 255 255 / 0.92); }
.hero.plain { min-height: 0; background: none; border-radius: 0; }
.hero.plain::after { display: none; }
.hero.plain .text { color: var(--ink); padding: 48px 0 8px; }
.hero.plain .display { color: var(--ink); text-shadow: none; }
.hero.plain .eyebrow { color: var(--ink-soft); }
.hero.plain .lede { color: var(--ink-body); }

/* Sections */
section { margin: clamp(56px, 8vw, 96px) 0 0; }
.section-title { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 24px; }
.font-classic .section-title { font-weight: 500; }
.font-editorial .section-title, .font-script .section-title { font-weight: 400; }
.font-script .section-title { font-size: clamp(2.2rem, 4.4vw, 3rem); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { display: grid; gap: 12px; text-decoration: none; }
.tile .photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--photo); }
.tile .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover .photo img, .tile:focus-visible .photo img { transform: scale(1.03); }
.tile strong { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.font-classic .tile strong { font-weight: 500; font-size: 1.6rem; }
.font-editorial .tile strong { font-weight: 400; font-size: 1.6rem; }
.font-script .tile strong { font-weight: 400; font-size: 1.9rem; }
.tile .sub { display: block; color: var(--ink-soft); font-size: 0.93rem; margin-top: 2px; }
.tile .team { display: block; color: var(--ink-soft); font-size: 0.82rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.about p { max-width: 64ch; color: var(--ink-body); font-size: 1.08rem; line-height: 1.7; margin: 0 0 16px; white-space: pre-line; }
.closing { text-align: center; padding: clamp(48px, 7vw, 80px) 0 0; border-top: 1px solid var(--line); }
.closing .display { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.closing .lede { margin-inline: auto; color: var(--ink-body); }
.closing .contact { justify-content: center; margin-top: 28px; }

/* One wedding */
.crumbs { margin: 4px 0 8px; font-size: 0.92rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.event-head { padding: 8px 0 36px; }
.event-head .eyebrow { color: var(--ink-soft); }
.event-head .display { font-size: clamp(2.4rem, 6.4vw, 4.75rem); }
.font-script .event-head .display { font-size: clamp(3rem, 8vw, 6rem); }
.event-head .lede { color: var(--ink-body); white-space: pre-line; }

/* Justified rows without script: each photo grows by its aspect ratio (--ar, set per photo in the page's style block). */
.grid { display: flex; flex-wrap: wrap; gap: 6px; }
.grid::after { content: ''; flex-grow: 1000000; }
.grid a { position: relative; display: block; flex-grow: calc(var(--ar, 1.5) * 100); flex-basis: calc(var(--ar, 1.5) * 260px); aspect-ratio: var(--ar, 1.5); overflow: hidden; border-radius: 6px; background: var(--photo); }
.grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .grid a { flex-basis: calc(var(--ar, 1.5) * 150px); border-radius: 4px; } .grid { gap: 4px; } }

.team-list { display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 0; }
.team-list div { border-top: 1px solid var(--line); padding-top: 10px; }
.team-list dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.team-list dd { margin: 4px 0 0; font-size: 1rem; }
.team-list dd a { text-decoration: none; }
.team-list dd a:hover { text-decoration: underline; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(56px, 8vw, 96px); padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.85rem; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .made b { font-weight: 600; color: var(--ink-body); }

/* Phones: the enquiry button stays one thumb away. */
.enquire-bar { display: none; }
@media (max-width: 700px) {
  .top .btn { display: none; }
  .hero { min-height: 72vh; border-radius: 18px; }
  .contact .btn { flex: 1 1 auto; }
  /* Under the cover the bottom bar already offers WhatsApp. */
  .contact.first .btn.primary { display: none; }
  .contact.first:not(:has(.btn:not(.primary))) { display: none; }
  body.has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .enquire-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .enquire-bar .btn { width: 100%; }
}

/* Viewer (site.js): opens a photo full screen; without script the link opens the photo itself. */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.viewer::backdrop { background: #000; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer .bar { display: flex; align-items: center; justify-content: space-between; padding: max(8px, env(safe-area-inset-top)) 12px 8px; font-size: 0.9rem; color: rgb(255 255 255 / 0.8); }
.viewer .stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 0 max(12px, env(safe-area-inset-bottom)); touch-action: pan-y; }
.viewer .stage picture, .viewer .stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer .stage picture { display: contents; }
.viewer button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; }
.viewer button:hover { background: rgb(255 255 255 / 0.22); }
.viewer .prev, .viewer .next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer .prev { left: 12px; } .viewer .next { right: 12px; }
@media (hover: none) { .viewer .prev, .viewer .next { display: none; } }

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