/*
 * Shared styles for the new draft pages (home-2027, wedding-services-2027). Standalone: it does not
 * use Webflow's site.css or webflow.js. Mobile first.
 */

/* Fonts are hosted here instead of by Google (latin subset, variable weight). */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url("/assets/fonts/literata-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/literata-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  --ivory: #fbf8f4;
  --sand: #f4ede5;
  --line: #e6dcd1;
  --ink: #2b2724;
  --muted: #6f6660;
  --navy: #1d3557;
  --navy-deep: #172a45;
  /* The lighter brand blue from the logo, for the accent words in page headings. */
  --blue: #2272b6;
  --serif: "Literata", Georgia, serif;
  --sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --section: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section: 120px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 64px;
    --section: 152px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Sideways swipes in photos should not turn into back/forward in the browser. */
  overscroll-behavior-x: none;
  /* No grey box on iPhone when tapping buttons and choices. */
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
}

h3 {
  font-size: 1.3rem;
}

em {
  font-style: italic;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Keep anchored sections clear of the sticky header. */
[id] {
  scroll-margin-top: 88px;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.4s var(--ease);
}

.button:hover {
  background: var(--navy-deep);
}

.button-light {
  background: var(--ivory);
  color: var(--navy);
}

.button-light:hover {
  background: #fff;
}

.text-link {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.4s var(--ease);
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  border-color: var(--ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 var(--gutter);
  /* Nearly opaque instead of a backdrop blur, which the browser would redo on every
     frame while content moves underneath. */
  background: rgb(251 248 244 / 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

.site-header.scrolled {
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
}

.menu-toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* The label changes between Menu and Close with a small roll (site-2027.js);
   the fixed width keeps the button from changing size. */
.menu-label {
  display: inline-block;
  min-width: 3.3em;
  text-align: center;
}

.site-nav {
  position: fixed;
  inset: 68px 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 32px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.4s;
}

.site-nav.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav a:not(.button) {
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
}

.site-nav .nav-button {
  margin-top: 16px;
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a:not(.button) {
    padding: 0;
    font-family: var(--sans);
    font-size: 15px;
  }

  .site-nav a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--line);
  }

  .site-nav .nav-button {
    min-height: 44px;
    margin: 0;
    padding: 0 22px;
  }
}

/* Hero */

.hero {
  display: grid;
  gap: 24px;
  padding: 12px var(--gutter) 56px;
}

.hero-media {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  max-height: 40svh;
  justify-self: center;
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  background: #9b9b9b;
}

/* Home: a taller portrait of Lovina than on the other pages. */
.hero-tall .hero-media {
  max-height: 55svh;
}

@media (min-width: 900px) {
  .hero-tall .hero-media {
    aspect-ratio: 3 / 4;
    max-height: calc(100svh - 110px);
  }
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-text {
  max-width: 34rem;
}

h1 em {
  color: var(--blue);
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 64px;
    min-height: calc(100svh - 140px);
    padding-top: 24px;
    padding-bottom: 72px;
  }

  .hero-text {
    order: -1;
  }

  .hero-media {
    width: 100%;
    max-width: 520px;
    max-height: calc(100svh - 140px);
    justify-self: end;
  }
}


/* Sections */

.section-head {
  padding: 0 var(--gutter);
  margin-bottom: 40px;
}

.section-foot {
  margin-top: 40px;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  .section-head,
  .section-foot {
    text-align: center;
  }
}

/* Gallery rail: swipe on touch screens, a very slow drift on desktop (home-2027.js). */

.gallery {
  padding: var(--section) 0;
}

/* Right after the hero, the hero's own bottom space is enough. */
.hero + .gallery {
  padding-top: 16px;
}

@media (min-width: 900px) {
  .hero + .gallery {
    padding-top: 40px;
  }
}

.rail {
  overflow-x: auto;
  /* A sideways swipe at the start or end of the rail must not make the browser go back a page. */
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.centred .rail-track {
  margin: 0 auto;
}

.rail.drifting {
  scroll-snap-type: none;
}

.rail-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 var(--gutter);
}

.rail figure {
  flex: none;
  width: 72vw;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sand);
  scroll-snap-align: start;
}

.rail figure.tall {
  aspect-ratio: 3 / 4;
}

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

@media (min-width: 900px) {
  .rail-track {
    align-items: center;
    gap: 20px;
  }

  /* On larger screens every photo in a rail has the same size. */
  .rail figure,
  .rail figure.tall {
    width: 375px;
    max-width: none;
    height: 500px;
    aspect-ratio: 3 / 4;
  }
}

/* Reviews */

.reviews {
  position: relative;
  padding: var(--section) 0;
  background: var(--sand);
}

/* Enlarged review photo (site-2027.js): the text fades out softly while the
   photo grows from its place, and comes back the same way. */
.reviews-inner {
  transition:
    opacity 0.7s var(--ease) 0.15s,
    filter 0.7s var(--ease) 0.15s;
}

.reviews.zooming .reviews-inner {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity 0.65s var(--ease),
    filter 0.65s var(--ease);
}

.review img {
  cursor: zoom-in;
}

.photo-zoom-hint {
  grid-area: photo;
  align-self: end;
  justify-self: end;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 6px;
  border-radius: 50%;
  background: rgb(251 248 244 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--navy);
  cursor: zoom-in;
}

.photo-zoom-hint svg {
  width: 13px;
  height: 13px;
}

@media (min-width: 768px) {
  .photo-zoom-hint {
    grid-row: 1 / -1;
    width: 34px;
    height: 34px;
    margin: 12px;
  }

  .photo-zoom-hint svg {
    width: 16px;
    height: 16px;
  }
}

.photo-zoom {
  position: absolute;
  inset: 0;
  z-index: 5;
  /* Vertical scrolling stays with the browser; sideways swipes are handled by site-2027.js. */
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.photo-zoom[hidden] {
  display: none;
}

.photo-zoom-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sand);
  cursor: zoom-out;
  contain: strict;
}

.photo-zoom-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-zoom-close {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: border-color 0.4s var(--ease);
}

.photo-zoom-close:hover,
.photo-zoom-prev:hover,
.photo-zoom-next:hover {
  border-color: var(--ink);
}

.photo-zoom-count {
  position: absolute;
  color: var(--muted);
  font-size: 14px;
  opacity: 0;
}

.photo-zoom-prev,
.photo-zoom-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: border-color 0.4s var(--ease);
}

.photo-zoom-prev:disabled,
.photo-zoom-next:disabled {
  visibility: hidden;
}

/* Touch screens swipe between photos, so the arrows are only shown with a mouse. */
@media (hover: none) {
  .photo-zoom-prev,
  .photo-zoom-next {
    display: none;
  }
}

.review-slider {
  max-width: 1200px;
  margin: 0 auto;
}

/* All reviews share one grid cell and fade into each other, so the section keeps
   the height of the longest review and nothing jumps. */
.review-track {
  display: grid;
  padding: 0 var(--gutter);
  touch-action: pan-y;
}

.review {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 108px 1fr;
  grid-template-areas:
    "photo cap"
    "quote quote"
    "toggle toggle";
  align-content: start;
  align-items: center;
  column-gap: 20px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s var(--ease),
    visibility 0s 0.7s;
}

.review.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s var(--ease) 0.15s,
    visibility 0s;
}

.review img {
  grid-area: photo;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 12px 12px;
}

.review blockquote {
  grid-area: quote;
  align-self: start;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.45;
}

.review blockquote::before {
  content: "“";
  display: block;
  height: 0.55em;
  color: var(--navy);
  font-size: 2.4em;
  line-height: 1;
}

.review .translate-toggle {
  grid-area: toggle;
  justify-self: start;
}

.review figcaption {
  grid-area: cap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.review figcaption span {
  color: var(--muted);
}

@media (min-width: 768px) {
  .review {
    grid-template-columns: minmax(280px, 400px) 1fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      "photo ."
      "photo quote"
      "photo toggle"
      "photo cap"
      "photo .";
    column-gap: 64px;
  }

  .review img {
    grid-row: 1 / -1;
  }

  .review blockquote {
    margin-top: 0;
  }

  .review figcaption {
    margin-top: 24px;
  }
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.review-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}

.review-controls button:hover {
  border-color: var(--ink);
}

.review-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.review-count {
  min-width: 48px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .reviews .section-head {
    margin-bottom: 28px;
  }
}

.reviews .section-foot {
  text-align: center;
}

/* Swedish reviews can be read in English. */

.translate-toggle {
  margin-top: 14px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: 600 13px var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.translate-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* About */

.about {
  display: grid;
  gap: 40px;
  padding: var(--section) var(--gutter);
}

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

/* Slideshows (site-2027.js): photos that slowly fade into each other. Used for Lovina
   at work on Home and the hero on Wedding Services. */
.slideshow {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.slideshow[data-tap] {
  cursor: pointer;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  -webkit-user-drag: none;
}

.slideshow img.active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow img {
    transition: none;
  }
}

.hero-media .slideshow {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: inherit;
}

.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.slide-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(251 248 244 / 0.55);
  box-shadow: 0 0 6px rgb(0 0 0 / 0.25);
  transition:
    background-color 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.slide-dots span.on {
  background: var(--ivory);
  transform: scale(1.3);
}

/* Home, about: the photos of Lovina at work sit in their own rail above the text. */
.about-gallery {
  padding-bottom: 0;
}

.about-solo {
  display: block;
  max-width: 44rem;
  padding-top: 48px;
}

.about-text {
  max-width: 32rem;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p + p {
  margin-top: 16px;
}


@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 96px;
    max-width: 1240px;
    margin: 0 auto;
  }

  .about-media {
    max-width: 480px;
  }
}

/* A thin line that fades out at both ends, with a small diamond in the middle. */
.divider {
  position: relative;
  height: 1px;
  max-width: 1080px;
  margin: 0 var(--gutter) var(--section);
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  overflow: visible;
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--ivory);
  border: 1px solid #cdbfb2;
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (min-width: 1200px) {
  .divider {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Wedding morning */

.morning {
  padding: 0 var(--gutter) var(--section);
}

.morning-intro {
  display: grid;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.morning-text h2 {
  margin-bottom: 24px;
}

.morning-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 18px 18px;
}

@media (min-width: 900px) {
  .morning-intro {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 96px;
  }

  .morning-media {
    max-width: 440px;
    justify-self: end;
  }
}

.steps {
  display: grid;
  gap: 32px;
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.morning .section-foot {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  text-align: left;
}

/* Wedding Services: reassurance */

.reassure {
  display: grid;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

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

/* Right after the hero, the hero's own bottom space is enough. */
.hero + .reassure {
  padding-top: 16px;
}

@media (min-width: 900px) {
  .hero + .reassure {
    padding-top: 40px;
  }
}

.reassure-text h2 {
  margin-bottom: 20px;
}

.reassure-text p {
  max-width: 30rem;
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .reassure {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 96px;
  }

  .reassure-media {
    max-width: 440px;
  }
}

/* Wedding Services: how I work */

.journey {
  padding: var(--section) 0;
  background: var(--sand);
}

.step-no {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.journey h3 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
}

.journey p + p {
  margin-top: 14px;
}

.journey-start {
  display: grid;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}

.journey-start li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.journey-start p {
  color: var(--muted);
}

.journey-rows {
  display: grid;
  gap: 72px;
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 0 var(--gutter);
}

.journey-row {
  display: grid;
  gap: 28px;
}

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

.journey-row:nth-child(2) .journey-media img {
  border-radius: 999px 999px 18px 18px;
}

.journey-text {
  max-width: 32rem;
}

.journey .quote {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
}

@media (min-width: 768px) {
  .journey-start {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (min-width: 900px) {
  .journey-rows {
    gap: 120px;
    margin-top: 120px;
  }

  .journey-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 96px;
  }

  .journey-media {
    max-width: 460px;
  }

  .journey-row:nth-child(even) .journey-media {
    order: 2;
    justify-self: end;
  }
}

/* Wedding Services: reviews without photos */

.quotes {
  padding: var(--section) 0;
}

.quote-grid {
  display: grid;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.quote-grid figure {
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.quote-grid blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
}

.quote-grid blockquote::before {
  content: "“";
  display: block;
  height: 0.6em;
  color: var(--navy);
  font-size: 2.4em;
  line-height: 1;
}

.quote-grid figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  font-size: 15px;
}

.quote-grid figcaption span {
  color: var(--muted);
}

@media (min-width: 900px) {
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
  }
}

/* Wedding Services: questions */

.faq {
  display: grid;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section);
}

.faq-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 18px 18px;
}

.faq-list h2 {
  margin-bottom: 28px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A small round button with a drawn plus. Opening turns the vertical line flat, so the
   plus becomes a minus; is-open is set when the click starts (site-2027.js), so the icon
   moves together with the answer instead of after it. */
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: -3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat;
  transition:
    background-size 0.45s var(--ease),
    border-color 0.45s var(--ease),
    background-color 0.45s var(--ease);
}

.faq summary:hover::after {
  border-color: var(--navy);
}

.faq details[open]:not(.is-closing) summary::after,
.faq details.is-open summary::after {
  background-size:
    12px 1.5px,
    1.5px 0;
  border-color: var(--navy);
}

.faq details.is-closing summary::after {
  background-size:
    12px 1.5px,
    1.5px 12px;
  border-color: var(--line);
}

.faq-answer {
  overflow: hidden;
}

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--muted);
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 96px;
  }

  .faq-media {
    position: sticky;
    top: 100px;
    max-width: 440px;
  }
}

/* Portfolio */

.page-intro {
  max-width: 46rem;
  padding: 48px var(--gutter) 40px;
}

@media (min-width: 768px) {
  .page-intro {
    margin: 0 auto;
    padding-top: 96px;
    padding-bottom: 56px;
    text-align: center;
  }

  .page-intro .lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 34rem;
  }
}

.portfolio {
  padding: 0 var(--gutter) var(--section);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tabs button {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.tabs button span {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 400;
}

.tabs button:hover {
  border-color: var(--ink);
}

.tabs button[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}

.tabs button[aria-selected="true"] span {
  color: rgb(251 248 244 / 0.7);
}

@media (min-width: 768px) {
  .tabs {
    justify-content: center;
    margin-bottom: 48px;
  }
}

.photo-grid {
  --gap: 10px;
  columns: 2;
  column-gap: var(--gap);
  max-width: 1320px;
  margin: 0 auto;
}

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

/* site-2027.js splits the photos into columns that end on the same line. */
.photo-grid.is-balanced[hidden] {
  display: none;
}

.photo-grid.is-balanced {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  columns: auto;
}

.photo-col {
  flex: 1;
  min-width: 0;
}

.is-balanced .open-photo {
  position: relative;
}

.is-balanced .open-photo img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.open-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
}

.open-photo img {
  width: 100%;
  height: auto;
  transition:
    transform 1.2s var(--ease),
    opacity 0.6s var(--ease);
}

.open-photo img.is-loading {
  opacity: 0;
}

.open-photo:hover img {
  transform: scale(1.025);
}

@media (min-width: 768px) {
  .photo-grid {
    --gap: 16px;
    columns: 3;
  }
}

@media (min-width: 1200px) {
  .photo-grid {
    --gap: 20px;
  }
}

/* Photo viewer: the enlarged photo covers the page over a soft veil
   (see .photo-zoom above for the shared parts). */
html.photo-zoom-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.photo-zoom.is-page {
  position: fixed;
  z-index: 50;
  touch-action: none;
}

.photo-zoom-backdrop {
  position: absolute;
  inset: 0;
  /* No backdrop-filter: blurring the page on every frame makes phones stutter. */
  background: rgb(251 248 244 / 0.97);
  cursor: zoom-out;
}

.is-page .photo-zoom-frame img {
  object-position: 50% 30%;
}

/* Contact */

.contact {
  display: grid;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px var(--gutter) var(--section);
}

.contact-direct {
  margin-top: 24px;
  color: var(--muted);
}

.contact-direct a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.contact-form {
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--sand);
}

.contact-form form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  align-items: end;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea,
.booking-other input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  transition: border-color 0.4s var(--ease);
}

.field textarea {
  resize: vertical;
}

/* iPhone gives date fields a fixed width and centred text; keep them like the other fields. */
.field input[type="date"],
.field input[type="time"] {
  display: block;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

.field input[type="date"]::-webkit-date-and-time-value,
.field input[type="time"]::-webkit-date-and-time-value {
  text-align: left;
}

.booking-other {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  overflow: hidden;
}

.booking-other[hidden] {
  display: none;
}

.booking-other label {
  font-size: 14px;
  font-weight: 600;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a39a93;
}

.field input:focus,
.field textarea:focus,
.booking-other input:focus {
  outline: none;
  border-color: var(--navy);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chips label {
  position: relative;
  font-weight: 600;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.chips input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}

.chips input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.photos-label {
  font-size: 14px;
  font-weight: 600;
}

.photos-label span,
.photos-hint {
  color: var(--muted);
  font-weight: 400;
}

.photos-hint {
  margin-top: -4px;
  font-size: 14px;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-list:empty {
  display: none;
}

.photo-list li {
  position: relative;
  width: 76px;
  height: 76px;
}

.photo-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.photo-list button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border: 1px dashed #cdbfb2;
  border-radius: 12px;
  background: var(--ivory);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.photo-drop:hover,
.photo-drop.dragging {
  border-color: var(--navy);
}

.photo-drop span::before {
  content: "+ ";
  color: var(--navy);
}

.photo-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-drop:has(input:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.photo-drop[hidden] {
  display: none;
}

.photos-message {
  font-size: 14px;
  color: var(--muted);
}

.photos-message:empty {
  display: none;
}

.contact-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.contact-form .button:disabled {
  opacity: 0.6;
  cursor: default;
}

.w-form-done,
.w-form-fail {
  display: none;
}

.w-form-done h2 {
  margin-bottom: 12px;
}

.w-form-fail {
  margin-top: 20px;
  color: #8a2f2f;
}

.w-form-fail a {
  color: inherit;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form {
    padding: 40px;
  }
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 96px;
    padding-top: 96px;
  }

  .contact-intro {
    position: sticky;
    top: 120px;
  }
}

.next-steps {
  padding: 0 var(--gutter) var(--section);
}

.next-steps .steps {
  margin-top: 0;
}

.next-steps .section-foot {
  text-align: center;
}

/* Closing call to action */

.closing {
  padding: var(--section) var(--gutter);
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
}

.closing-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.closing p {
  margin: 20px 0 36px;
  opacity: 0.85;
}

.closing .closing-note a {
  text-underline-offset: 5px;
}

.closing .closing-note {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-style: italic;
}

/* Footer */

.site-footer {
  padding: 72px var(--gutter) 32px;
  background: var(--navy-deep);
  color: rgb(251 248 244 / 0.8);
  font-size: 15px;
}

.footer-inner {
  display: grid;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ivory);
}

.footer-brand img {
  margin-bottom: 16px;
}

.copyright {
  max-width: 1240px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgb(251 248 244 / 0.15);
  font-size: 13px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

/* Changing page: the browser keeps the old page until the new one is ready, then
   crossfades once. The header stays in place. (Chrome, Edge and Safari 18.2+.) */

@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reveal on scroll: slow fade and a short rise, once. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  /* Its own graphics layer from the start, so the fade never waits for one. */
  will-change: opacity, transform;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.js .reveal.done {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 404 */

.not-found {
  min-height: 60vh;
}

.not-found .button {
  margin-top: 20px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 32px;
}

.not-found-links a {
  text-underline-offset: 6px;
  text-decoration-color: var(--line);
}
