/* Karin Rust — Motherhood is the doorway
   Brand: Deep Ocean #1E344D · Sand #E6D8C3 · Clay #C48E6E · Paper #F5F0E6 · Charcoal #2B2B2B
   Principle: very little text, much white space. Visual poetry, not content marketing. */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

:root {
  --ocean: #1e344d;
  --sand: #e6d8c3;
  --clay: #c48e6e;
  --paper: #f5f0e6;
  --charcoal: #2b2b2b;
  /* light blues — the page stays light; deep ocean is ink and accent, not background */
  --mist: #e3ebf0;
  --mist-soft: #eef3f6;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --measure: 31rem;
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --block: clamp(6rem, 16vh, 12rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 0.88rem + 0.28vw, 1.08rem);
  line-height: 1.8;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- type ---------- */

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

h1 { font-size: clamp(2rem, 1.1rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1rem + 2.2vw, 2.75rem); }
h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 2.4em;
}

p { margin: 0 0 1.5em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.5;
  font-style: italic;
}

/* a line that must breathe alone */
.solo {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  line-height: 1.4;
  max-width: 26rem;
  margin: var(--block) 0;
  text-wrap: balance;
}

.quiet { color: rgba(43, 43, 43, 0.62); }

/* ---------- layout ---------- */

.wrap {
  padding: 0 var(--gutter);
  max-width: 78rem;
  margin: 0 auto;
}

section {
  padding: var(--block) 0;
}

section.tight { padding: calc(var(--block) * 0.55) 0; }

/* was a full deep-blue block, now a light mist of the same hue */
.ocean {
  background: linear-gradient(180deg, var(--mist-soft) 0%, var(--mist) 100%);
  color: var(--charcoal);
}
.ocean h3 { color: var(--clay); }
.ocean h1, .ocean h2, .ocean .lead { color: var(--ocean); }
.ocean .quiet { color: rgba(43, 43, 43, 0.62); }

/* reserved for the rare block that really has to go dark */
.deepbg {
  background: var(--ocean);
  color: var(--paper);
}
.deepbg h3 { color: var(--sand); }
.deepbg .quiet { color: rgba(245, 240, 230, 0.66); }

.sandbg { background: linear-gradient(180deg, #f0e7d8 0%, var(--sand) 100%); }

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.narrow-left { grid-template-columns: 5fr 7fr; }
}

/* ---------- placeholder imagery (until Portugal photos land) ---------- */

.ph {
  position: relative;
  width: 100%;
  background: linear-gradient(170deg, #cfdde6 0%, #e7ddcd 55%, #ecc9ae 100%);
  overflow: hidden;
  isolation: isolate;
}
.ph::after {
  content: attr(data-note);
  position: absolute;
  inset: auto 0 1rem 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(30, 52, 77, 0.4);
}
.ph.soft { background: linear-gradient(200deg, #f3ece0 0%, #e6d8c3 55%, #dcbba1 100%); }
.ph.deep { background: linear-gradient(160deg, #dbe6ed 0%, #bed0dd 60%, #e3d5c4 100%); }
/* real imagery */
.shot {
  width: 100%;
  object-fit: cover;
}
.shot.tall { aspect-ratio: 3 / 4; }
.shot.wide { aspect-ratio: 16 / 9; }
.shot.square { aspect-ratio: 1 / 1; }
.gift .shot { margin-bottom: 1.6rem; }

.ph.tall { aspect-ratio: 3 / 4; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.square { aspect-ratio: 1 / 1; }

.hero {
  min-height: clamp(34rem, 88vh, 58rem);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 10vh, 8rem);
  /* sunrise, not blue hour — the only dark moment on the page.
     Replace with Karin's beach photo when it lands; keep the scrim for legibility. */
  /* two scrims: one from the bottom for the text, one from the top so the
     name lockup and nav stay readable against the bright sky */
  background:
    linear-gradient(to right, rgba(48, 32, 22, 0.58) 0%, rgba(48, 32, 22, 0.34) 30%, rgba(48, 32, 22, 0.06) 52%, rgba(48, 32, 22, 0) 68%),
    linear-gradient(to bottom, rgba(48, 32, 22, 0.30) 0%, rgba(48, 32, 22, 0.08) 16%, rgba(48, 32, 22, 0) 32%),
    url("img/hero-standing.jpg") 68% 52% / cover no-repeat,
    linear-gradient(170deg, #b98d6d 0%, #d7ac8b 60%, #f0d6b6 100%);
  color: var(--paper);
  align-items: center;
  padding-bottom: 0;
  min-height: clamp(38rem, 94vh, 60rem);
}
/* the hero text sits in the open sand to her left */
.hero > .wrap { max-width: 40rem; margin: 0 auto 0 0; }
/* full-bleed image band — the sea between two blocks of text */
.band {
  display: block;
  width: 100%;
  height: clamp(14rem, 34vh, 26rem);
  object-fit: cover;
}
/* sub-pages open light — only the home hero carries the blue */
.hero.light {
  background:
    linear-gradient(to top, rgba(245, 240, 230, 0.94) 0%, rgba(245, 240, 230, 0.62) 55%, rgba(245, 240, 230, 0.35) 100%),
    url("img/coast-wide.jpg") center 55% / cover no-repeat,
    linear-gradient(180deg, #eef3f6 0%, #f2ece1 62%, var(--paper) 100%);
  color: var(--charcoal);
  min-height: clamp(26rem, 62vh, 40rem);
}
.hero.light h1 { color: var(--ocean); }
.hero.light .sub { color: rgba(43, 43, 43, 0.7); }

/* the standing brand line, sits above the hero question */
.brandline {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2.2em;
}
.hero.light .brandline { color: var(--clay); }

/* the hero question is quieter than a headline on purpose — it is a question, not a claim */
.hero h1 {
  max-width: 20ch;
  margin-bottom: 0.8em;
  font-size: clamp(1.3rem, 0.7rem + 1.9vw, 2.3rem);
  text-shadow: 0 1px 24px rgba(48, 32, 22, 0.35);
}
.hero.light h1 { max-width: 26ch; text-shadow: none; }
.hero .sub {
  max-width: 34ch;
  color: rgba(245, 240, 230, 0.86);
  font-size: clamp(1.26rem, 1.14rem + 0.42vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 2.6em;
}

/* ---------- header / nav ---------- */

header.site {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: clamp(1.4rem, 3vw, 2.6rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
header.site .mark img { width: clamp(9rem, 18vw, 13rem); }
nav.site {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
nav.site a {
  text-decoration: none;
  color: rgba(245, 240, 230, 0.8);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--clay);
}
header.site.onlight nav.site a { color: rgba(30, 52, 77, 0.75); }
header.site.onlight nav.site a:hover,
header.site.onlight nav.site a[aria-current="page"] { color: var(--ocean); }

@media (max-width: 40rem) {
  header.site { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15em 2.6em;
  border: 1px solid currentColor;
  transition: background 0.35s ease, color 0.35s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.btn.filled { background: var(--ocean); border-color: var(--ocean); color: var(--paper); }
.btn.filled:hover { background: var(--clay); border-color: var(--clay); }

/* ---------- offers ---------- */

.offer {
  border-top: 1px solid rgba(30, 52, 77, 0.18);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 55rem) {
  .offer { grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
}
.offer .name { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.offer .price {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}
.offer.free { border-top: none; }

/* ---------- freebies ---------- */

.gifts {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .gifts { grid-template-columns: 1fr 1fr; } }
/* three gifts now — they get their own column on wide screens */
@media (min-width: 62rem) { .gifts { grid-template-columns: repeat(3, 1fr); } }
.gift .ph { margin-bottom: 1.6rem; }

form.optin , form.buygate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: var(--measure);
  margin-top: 2rem;
}
form.optin .field , form.buygate .field {
  flex: 1 1 15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
form.optin label , form.buygate label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
}
form.optin input , form.buygate input {
  flex: 0 0 auto;
  width: 100%;
  line-height: 1.2;
  background: #fff;
  border: 1.5px solid var(--ocean);
  border-radius: 2px;
  color: var(--charcoal);
  font: inherit;
  padding: 1em 1.2em;
  -webkit-appearance: none;
  appearance: none;
}
form.optin input::placeholder , form.buygate input::placeholder { color: rgba(43, 43, 43, 0.45); }
form.optin input:focus , form.buygate input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 2px rgba(196, 142, 110, 0.25);
}
form.optin button , form.buygate button {
  align-self: flex-end;
}
form.optin button , form.buygate button {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.15em 2.2em;
}
form.optin button:hover , form.buygate button:hover { background: var(--clay); border-color: var(--clay); }

/* ---------- footer ---------- */

footer.site {
  background: var(--ocean);
  color: rgba(245, 240, 230, 0.72);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  font-size: 0.85rem;
}
footer.site img.mark { width: 12rem; margin-bottom: 2.5rem; }
footer.site a { text-decoration: none; border-bottom: 1px solid rgba(196, 142, 110, 0.6); }
footer.site .rows {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { footer.site .rows { grid-template-columns: 2fr 1fr 1fr; } }
footer.site .fine {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: 0.72rem;
  color: rgba(245, 240, 230, 0.42);
}

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* hero secondary link */
.hero .quiet { margin-top: 1.4rem; font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(245, 240, 230, 0.75); }
.hero .quiet a { color: inherit; text-underline-offset: 0.3em; }
