:root {
  --bg: #0e0e0e;
  --bg-elev: #161616;
  --fg: #f1efeb;
  --muted: #9b9893;
  --line: #2a2826;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-content: 1280px;
  --max-text: 680px;
  --pad: clamp(1rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--fg);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { margin: 0 0 1.25em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

/* ────── Header ────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
}
.site-header__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.site-header__toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  color: var(--fg);
}
.site-header__toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.site-nav a:hover { text-decoration: none; border-bottom-color: var(--fg); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--fg); }

/* Social icons live in the same <ul> as text links — keep them visually balanced */
.site-nav__social-item { display: inline-flex; }
.site-nav__social-item:first-of-type { margin-left: 0.5rem; }
.site-nav__social-item + .site-nav__social-item { margin-left: -0.5rem; }
.site-nav__social-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-bottom: 0;
  color: var(--muted);
  transition: color .2s;
}
.site-nav__social-item a:hover { color: var(--fg); border-bottom: 0; }

@media (max-width: 800px) {
  .site-header__toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;          /* fallback */
    height: 100dvh;         /* iOS Safari-safe full-viewport */
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 5rem var(--pad) 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60;            /* sit above the sticky header */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .site-nav a { font-size: 1.25rem; letter-spacing: 0.16em; }
  .site-nav__social-item a { padding: 0.75rem; }
  .site-nav__social-item:first-of-type { margin-left: 0; }
  .site-nav__social-item + .site-nav__social-item { margin-left: 0; }

  body.menu-open { overflow: hidden; }
  body.menu-open .site-nav { transform: translateX(0); }
  /* Keep the toggle button above the open drawer */
  .site-header__toggle { position: relative; z-index: 70; }
  body.menu-open .site-header__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .site-header__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .site-header__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ────── Layout ────── */
.page {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 3.5rem var(--pad);
}
.page--narrow {
  max-width: calc(var(--max-text) + var(--pad) * 2);
}
.page--narrow p,
.page--narrow h2 { max-width: var(--max-text); }

.intro {
  text-align: center;
  margin-bottom: 3rem;
}
.intro__tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.intro__cta {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ────── Gallery — masonry via CSS columns ────── */
.gallery {
  column-count: 3;
  column-gap: 6px;
}
.gallery picture,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 6px;
  break-inside: avoid;
  background: var(--bg-elev);
}
@media (max-width: 1000px) {
  .gallery { column-count: 2; column-gap: 4px; }
  .gallery picture, .gallery img { margin-bottom: 4px; }
}
@media (max-width: 520px) {
  .gallery { column-count: 1; column-gap: 0; }
  .gallery picture, .gallery img { margin-bottom: 4px; }
}

/* ────── Page-specific ────── */
.price-card {
  border: 1px solid var(--line);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 480px;
  text-align: center;
  background: var(--bg-elev);
}
.price-card__price {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin: 1rem 0;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}
.price-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.price-card li:last-child { border-bottom: 0; }

.contact-block { text-align: center; margin: 3rem auto 2rem; }
.contact-fallback {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}
.contact-fallback a { color: var(--fg); }

.contact-form {
  margin: 2.5rem auto;
  max-width: 540px;
  display: grid;
  gap: 1.75rem;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* >=16px keeps iOS Safari from zooming in */
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  border-radius: 0;
  transition: border-color .2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--fg);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); opacity: 0.6; }

.contact-form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Mobile-first: button full-width, status stacked below */
.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-form .btn {
  display: block;
  width: 100%;
  padding: 1.05rem 1.5rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.contact-form .btn:hover,
.contact-form .btn:active {
  background: var(--fg);
  color: var(--bg);
}
.contact-form .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-form__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.3em;
}
.contact-form__status.is-ok { color: var(--fg); }
.contact-form__status.is-err { color: #ff8e8e; }
.contact-form.is-sent { display: none; }

/* Desktop: button inline, status to the side */
@media (min-width: 640px) {
  .contact-form__row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .contact-form .btn { width: auto; padding: 0.95rem 2.5rem; }
  .contact-form__status { text-align: left; }
}

.contact-sent {
  display: none;
  text-align: center;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  max-width: 540px;
}
.contact-sent.is-visible { display: block; }

.contact-block a.btn {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--fg);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 1.5rem 0;
  transition: background .2s, color .2s;
  color: var(--fg);
}
.contact-block a.btn:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.about-image {
  max-width: 360px;
  margin: 0 auto 2rem;
}

/* ────── Essay layout (How it works) ──────
   - Sans body (readable on screen). Serif kept for h1/h2.
   - No italic lede — single body tone, eyes don't have to re-anchor.
   - Short centered accent line below each heading (no top border).
   - Em-dash bullets, side-by-side cards for the For mums/babies pair.
*/
.page--essay { --max-text: 680px; }
.page--essay p,
.page--essay li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
}
.page--essay p { margin: 0 0 1.1rem; }

.page--essay h1 { margin-bottom: 3rem; }
.page--essay h2 {
  text-align: center;
  margin: 5rem auto 2rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.page--essay h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--muted);
  margin: 1rem auto 0;
}
/* First h2 (right after the page H1) sits closer to the title */
.page--essay > h1 + h2 { margin-top: 2.5rem; }

/* Em-dash bullets */
.page--essay ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.page--essay li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.6rem 0;
}
.page--essay li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Paired cards: For mums / For babies */
.essay-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.essay-pair__item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
}
.essay-pair__label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.essay-pair__item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 700px) {
  .essay-pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  text-align: center;
  color: var(--fg);
  margin: 3rem auto;
  padding: 0;
  max-width: 580px;
  position: relative;
}
.pullquote::before,
.pullquote::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--muted);
  margin: 0 auto;
}
.pullquote::before { margin-bottom: 1.75rem; }
.pullquote::after  { margin-top: 1.75rem; }

/* ────── Footer ────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem var(--pad);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer p { margin: 0; }
.site-footer__social { display: flex; gap: 0.75rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
