/* ─────────────────────────────────────────────────────────
   Sydney Crazy Cake — shared styles
   Warm & artisanal · cream ground · rose + peach + ink
   ───────────────────────────────────────────────────────── */

:root {
  --bg:         #fdf6ee;
  --bg-soft:    #f7ecdd;
  --bg-warm:    #efe1cc;
  --ink:        #2b1d1a;
  --ink-soft:   #5a463f;
  --ink-mute:   #8a7670;
  --rose:       #b94a5e;
  --rose-deep:  #8c3245;
  --peach:      #f0b89d;
  --navy:       #2d4860;
  --rule:       #e4d4be;
  --paper:      #fffaf2;

  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans:  "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

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

h1 { font-size: clamp(48px, 7.2vw, 108px); }
h2 { font-size: clamp(38px, 5.2vw, 76px); }
h3 { font-size: clamp(26px, 3vw, 42px); }
h4 { font-size: clamp(20px, 2vw, 26px); }

.italic { font-style: italic; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
}
.eyebrow-ink { color: var(--ink-mute); }

p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
small { font-size: 13px; color: var(--ink-mute); }

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Nav (sticky) ──────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav-wrap.scrolled { border-bottom-color: var(--rule); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #fff3 0 6px, transparent 7px),
    var(--rose);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.brand b { font-weight: 400; }
.brand i { font-style: italic; color: var(--rose); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--rose);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--rose); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-burger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  width: 40px; height: 40px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 18px var(--pad-x) 24px;
    border-bottom: 1px solid var(--rule);
    gap: 14px;
    align-items: flex-start;
  }
  .nav-burger { display: grid; place-items: center; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rose); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-rose { background: var(--rose); color: var(--paper); }
.btn-rose:hover { background: var(--rose-deep); }

/* ── Sections ──────────────────────────────────────────── */
section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
section.tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .lead { max-width: 720px; }
.section-head .lead p { font-size: 18px; color: var(--ink-soft); margin-top: 18px; }

/* ── Photo cards ──────────────────────────────────────── */
.photo {
  position: relative;
  background-color: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: end center;
  isolation: isolate;
  color: var(--ink);
}
.photo::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  opacity: .85;
  margin-bottom: 16px;
}
.photo.tone-rose {
  background-color: color-mix(in oklab, var(--rose) 18%, var(--bg));
}
.photo.tone-navy {
  background-color: color-mix(in oklab, var(--navy) 15%, var(--bg));
}
.photo.tone-navy::after { color: var(--ink); }
.photo.tone-cream {
  background-color: var(--bg-warm);
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--rule);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(43, 29, 26, 0.25);
}

/* ── Ribbon divider ───────────────────────────────────── */
.ribbon {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--rose);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}
.ribbon::before, .ribbon::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

/* ── Scroll fade-ins ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ── Footer ────────────────────────────────────────────── */
footer.site {
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  padding: 88px 0 32px;
  margin-top: 64px;
}
footer.site h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 18px;
}
footer.site .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
footer.site .brand { color: var(--paper); font-size: 28px; }
footer.site .brand .mark { background: var(--rose); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
footer.site a:hover { color: var(--peach); }
footer.site .colophon {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  footer.site .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ── Page hero (sub-pages) ────────────────────────────── */
.page-hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: clamp(56px, 8vw, 120px); }
.page-hero .eyebrow { margin-bottom: 22px; display: inline-block; }
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin-top: 22px; }

/* ── Utility ───────────────────────────────────────────── */
.center { text-align: center; }
.cluster { display: flex; flex-wrap: wrap; gap: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.flex { display: flex; }
.grid { display: grid; }

/* Subtle decorative dot pattern */
.dot-bg {
  background-image: radial-gradient(circle, color-mix(in oklab, var(--ink) 14%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* Filter chips (gallery/menu) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── Form ──────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  appearance: none;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  color: inherit;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--rose);
  background: var(--bg);
}
.field textarea { min-height: 140px; resize: vertical; }
