:root {
  --site-header-height: 97px; /* synced by script from .site-header */
  --cream: #fff8f3;
  --cream-dark: #f7ebe3;
  --blush: #f3d4d0;
  --rose: #d4a5a5;
  --rose-deep: #b87a7a;
  --lavender: #e8e0ef;
  --sage: #d5e0d6;
  --ink: #3d2f2f;
  --ink-soft: #6b5555;
  --gold: #c4a574;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(61, 47, 47, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 165, 165, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #fdf0ea;
  box-shadow: 0 4px 16px rgba(184, 122, 122, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover { color: var(--rose-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blush);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

/* Hero — winter snowflake cake is the first cake image on the page */
/* Hero — split layout so the full winter cake stays visible */
.hero {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(243, 212, 208, 0.55), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(232, 224, 239, 0.55), transparent 40%),
    linear-gradient(165deg, #f7ebe3 0%, #fff8f3 45%, #f3e6df 100%);
  padding: clamp(1.75rem, 4vw, 3.25rem) 0;
  border-bottom: 1px solid rgba(212, 165, 165, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

.hero-logo {
  display: block;
  width: clamp(180px, 22vw, 240px);
  height: auto;
  margin: 0 0 1.15rem;
  border-radius: 50%;
  background: #fdf0ea;
  box-shadow: 0 14px 36px rgba(61, 47, 47, 0.12);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.75rem;
}

.hero h1, .hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0 0 0.95rem;
  color: var(--ink);
  line-height: 1;
}

.hero-buttercream {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* optical center with tracking */
  text-transform: uppercase;
  color: var(--ink);
}

.hero-dreams {
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  color: var(--rose-deep);
  letter-spacing: 0.01em;
  margin: -0.05rem 0 0.1rem;
}

.hero-alison {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: clamp(0.72rem, 1.3vw, 0.88rem);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: var(--ink);
}


.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-frame {
  --frame-rose: #b5737a;
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 7px;
  border: 1.5px solid var(--frame-rose);
  box-shadow: inset 0 0 0 1px rgba(181, 115, 122, 0.35);
  background: transparent;
}

.hero-frame picture,
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blush);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-primary:hover { color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(184, 122, 122, 0.45);
}

.btn-ghost:hover { color: var(--ink); background: rgba(243, 212, 208, 0.45); }

/* Intro strip */
.intro {
  padding: 3rem 0 1rem;
  text-align: center;
}

.intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.intro p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Gallery */
.gallery {
  padding: 2rem 0 3.5rem;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 2.5rem;
  position: sticky;
  top: var(--site-header-height);
  z-index: 30;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, var(--cream) 70%, transparent);
}

.chip {
  appearance: none;
  border: 1px solid var(--blush);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.chip:hover, .chip:focus-visible {
  background: var(--blush);
  color: var(--ink);
  outline: none;
}

.category {
  margin-bottom: 3rem;
  /* Clear sticky site-header (~72–97px) + sticky gallery chip bar */
  scroll-margin-top: 200px;
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(212, 165, 165, 0.35);
}

.category-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
  font-weight: 600;
}

.category-count {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(61, 47, 47, 0.12);
}

.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-dark);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-caption {
  display: block;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  min-height: 3.4em;
  line-height: 1.35;
}


/* Flavors */
.flavors-section {
  padding: 2.5rem 0 1rem;
}

#flavors {
  scroll-margin-top: 100px;
}

.flavors-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.flavors-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.flavors-note {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.02rem;
}

.flavors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.flavor-card {
  background: var(--white);
  border-radius: 24px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 224, 239, 0.8);
}

.flavor-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
  font-weight: 600;
  color: var(--rose-deep);
  border-bottom: 1px solid rgba(243, 212, 208, 0.85);
  padding-bottom: 0.45rem;
}

.flavor-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}

.flavor-card li {
  padding: 0.28rem 0;
  color: var(--ink);
  font-size: 1rem;
  border-bottom: 1px solid rgba(243, 212, 208, 0.35);
}

.flavor-card li:last-child {
  border-bottom: none;
}

.flavor-card--pairings {
  grid-column: 1 / -1;
}

.flavor-card--pairings ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.flavor-card--pairings li {
  border-bottom: 1px solid rgba(243, 212, 208, 0.35);
}

@media (max-width: 900px) {
  .flavors-grid {
    grid-template-columns: 1fr;
  }
  .flavor-card--pairings ul {
    grid-template-columns: 1fr;
  }
}

/* About / Contact */
.panel-section {
  padding: 1rem 0 3.5rem;
}

.panel {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 224, 239, 0.8);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.about-panel .about-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.about-panel .about-header h2 {
  margin: 0 0 0.45rem;
}

.about-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-style: italic;
}

.about-layout {
  display: block;
}

.about-photo {
  display: none; /* hidden until Alison provides a portrait */
}

.about-copy {
  max-width: 38rem; /* ~60–70 characters per line */
  margin-inline: auto;
  text-align: left;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.about-copy > p {
  margin: 0 0 1.05rem;
}

.about-signoff {
  margin-top: 1.6rem;
  text-align: center;
}

.about-signoff-label {
  margin: 0 0 0.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.about-signoff-name {
  margin: 0 0 0.35rem;
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--rose-deep);
}

.about-signoff-brand {
  margin: 0;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.placeholder {
  background: linear-gradient(135deg, var(--lavender), var(--cream-dark));
  border: 1px dashed var(--rose);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.placeholder strong {
  display: block;
  color: var(--rose-deep);
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.contact-note {
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.contact-compact {
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.5rem);
}

.contact-compact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.contact-compact h2 {
  margin-bottom: 0.4rem;
}

.contact-compact p {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
}

.contact-list--inline {
  margin: 0;
}

.contact-list--inline li {
  margin-bottom: 0.35rem;
}

.order-panel {
  scroll-margin-top: 100px;
}

#about,
#order,
#contact {
  scroll-margin-top: 100px;
}

.order-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.order-header h2 {
  margin-bottom: 0.4rem;
}

.order-lead {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--ink-soft);
}

.order-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-field legend {
  padding: 0;
  margin-bottom: 0.35rem;
}

.form-field .req {
  color: var(--rose-deep);
}

.form-field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(184, 122, 122, 0.35);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.radio-option input:focus-visible {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(243, 212, 208, 0.85);
}

.form-field input:invalid:not(:placeholder-shown):not(:focus),
.form-field select:invalid:not(:focus) {
  /* avoid aggressive red until submit */
}

.field-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
  color: var(--ink);
}

.radio-option input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--rose-deep);
}

.form-actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
}

.form-error {
  margin: 0.75rem 0 0;
  color: #8a3b3b;
  background: #fdeceb;
  border: 1px solid #e7b4b4;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.order-confirm {
  margin-top: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(243, 212, 208, 0.45), rgba(255, 248, 243, 0.9));
  border: 1px solid rgba(184, 122, 122, 0.28);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.order-confirm-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.order-confirm p {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
}

.order-confirm p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .order-form .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-compact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-logo { display: none; }
}


.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid rgba(212, 165, 165, 0.25);
}

.site-footer .brand-name {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 22, 24, 0.88);
  display: none;
  place-items: center;
  padding: 1.5rem;
}

.lightbox.open { display: grid; }

.lightbox-inner {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
}

.lightbox-inner img {
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-caption {
  color: #f7ebe3;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* Cake first on mobile so it remains the first cake on the page */
  .hero-media { order: 1; }
  .hero-copy { order: 2; text-align: center; max-width: none; margin-inline: auto; }
  .hero-logo { width: 150px; margin-inline: auto; margin-bottom: 0.9rem; }
  .hero-title { align-items: center; text-align: center; }
  .hero-buttercream { letter-spacing: 0.36em; text-indent: 0.36em; font-size: 1.2rem; }
  .hero-dreams { font-size: 2.55rem; }
  .hero-alison { letter-spacing: 0.34em; text-indent: 0.34em; font-size: 0.72rem; }


  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-frame { max-width: 300px; }
}

@media (max-width: 520px) {
  .container { width: min(1120px, calc(100% - 1.5rem)); }
  .grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .card-caption { font-size: 0.78rem; padding: 0.55rem 0.65rem 0.7rem; }
}

/* Hide large hero logo circle on small phones; keep lettering */
@media (max-width: 700px) {
  .hero-logo { display: none !important; }
}
