/* Clotilde Cooks — shared styles
   Palette pulled from the logo: cream ground, raspberry script, blush scallop. */
:root {
  --cream: #fef9ed;
  --cream-deep: #f8efdd;
  --raspberry: #a8183a;
  --raspberry-dark: #84112c;
  --blush: #f2b9b1;
  --blush-light: #fad4cc;
  --sage: #6f8a5b;
  --wood: #c99a62;
  --ink: #3d2a2e;
  --ink-soft: #6e5a5e;

  --script: "Great Vibes", "Pinyon Script", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;

  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--raspberry); }
a:hover { color: var(--raspberry-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--blush);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--raspberry);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark small {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}
.nav {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--raspberry);
  border-bottom-color: var(--raspberry);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--raspberry);
  color: var(--raspberry);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--blush);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 0.7rem 0; border-bottom: 1px dotted var(--blush); }
  .wordmark small { display: none; }
}

/* ---------- Layout ---------- */
main { display: block; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}
.narrow { max-width: 720px; }

.eyebrow {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin: 0 0 0.5rem;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--raspberry);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.script {
  font-family: var(--script);
  font-weight: 400;
}
h1.script { font-size: clamp(3.4rem, 9vw, 5.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2.script { font-size: clamp(2.8rem, 6vw, 3.8rem); }
h3 { font-size: 1.45rem; }

.center { text-align: center; }

/* Little flourish divider like the one under COOKS */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--raspberry);
  margin: 1.25rem auto 1.75rem;
}
.flourish::before,
.flourish::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.flourish span { font-size: 1.1rem; line-height: 1; }

/* ---------- Scalloped blush band ---------- */
.scallop-band {
  position: relative;
  background: var(--blush-light);
  margin: 2.5rem 0;
}
.scallop-band::before,
.scallop-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background-size: 36px 18px;
  background-repeat: repeat-x;
}
.scallop-band::before {
  top: -18px;
  background-image: radial-gradient(circle at 18px 18px, var(--blush-light) 17px, transparent 18px);
}
.scallop-band::after {
  bottom: -18px;
  background-image: radial-gradient(circle at 18px 0, var(--blush-light) 17px, transparent 18px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--raspberry);
  background: var(--raspberry);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--raspberry-dark); border-color: var(--raspberry-dark); color: var(--cream); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--raspberry); }
.btn.ghost:hover { background: var(--raspberry); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Home hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.hero-logo {
  width: min(560px, 92%);
  margin: 0 auto;
  mix-blend-mode: multiply; /* melts the logo's cream ground into the page */
}
.hero p.lede {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0.5rem auto 2rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--cream);
  border: 1px solid var(--blush);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  outline: 1px solid var(--raspberry);
  outline-offset: -8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(168, 24, 58, 0.45); color: var(--ink); }
.card .icon { font-size: 2rem; margin-bottom: 0.4rem; color: var(--raspberry); font-family: var(--serif); font-variant-emoji: text; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 50% / 42%;
  background: var(--cream);
  box-shadow: 0 0 0 8px var(--blush-light), 0 0 0 9px var(--blush);
  border: 2px solid var(--blush);
  outline: 1.5px solid var(--raspberry);
  outline-offset: -14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1rem;
  padding: 2rem;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.signature {
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--raspberry);
  margin-top: 1rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.facts .num { font-family: var(--script); font-size: 3rem; color: var(--raspberry); line-height: 1.1; }
.facts p { margin: 0; color: var(--ink-soft); }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { max-width: 320px; margin: 0 auto; }
}

/* ---------- Form ---------- */
.form-card {
  background: #fffdf8;
  border: 1px solid var(--blush);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 50px -35px rgba(168, 24, 58, 0.5);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-bottom: 0.4rem;
}
label .opt { color: var(--ink-soft); font-weight: 400; letter-spacing: 0.05em; text-transform: none; font-style: italic; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #e6cfc9;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--raspberry);
  box-shadow: 0 0 0 3px rgba(168, 24, 58, 0.12);
}
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  background: var(--cream);
}
.chips input { width: auto; accent-color: var(--raspberry); }
.chips label:has(input:checked) { background: var(--blush-light); border-color: var(--raspberry); }
.form-note { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }

/* ---------- Drops / coming soon ---------- */
.coming-soon {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.oval {
  position: relative;
  max-width: 640px;
  width: 100%;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--raspberry);
  box-shadow:
    0 0 0 6px var(--cream),
    0 0 0 7px var(--blush),
    0 0 0 22px var(--blush-light),
    0 0 0 23px var(--blush);
}
.oval h1.script { margin-bottom: 0; }
.soon {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin: 0.25rem 0 0;
  padding-left: 0.5em;
}
.notify {
  display: flex;
  gap: 0.6rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}
.notify input { border-radius: 999px; padding-left: 1.2rem; }
.notify .btn { padding: 0.8rem 1.4rem; white-space: nowrap; }
@media (max-width: 520px) {
  .coming-soon { padding: 2.5rem 1.6rem; }
  .oval { border-radius: 40px; box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--blush), 0 0 0 14px var(--blush-light), 0 0 0 15px var(--blush); }
  .notify { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--blush);
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-footer .wordmark { font-size: 2.2rem; display: inline-block; margin-bottom: 0.3rem; }
.site-footer nav { margin: 0.5rem 0 1rem; display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--serif); font-size: 0.85rem; font-weight: 600; }

/* ---------- Coquette details ---------- */
/* Dotted scallop edge, echoing the logo's pink border with tiny raspberry dots */
.scallop-band {
  background:
    radial-gradient(circle, var(--raspberry) 1.3px, transparent 1.8px) 0 6px / 36px 12px repeat-x,
    radial-gradient(circle, var(--raspberry) 1.3px, transparent 1.8px) 0 calc(100% - 6px) / 36px 12px repeat-x,
    var(--blush-light);
}
.scallop-band::before {
  background-image: radial-gradient(circle at 18px 18px, var(--blush-light) 17px, var(--blush) 17.5px, var(--blush) 18px, transparent 18.5px);
}
.scallop-band::after {
  background-image: radial-gradient(circle at 18px 0, var(--blush-light) 17px, var(--blush) 17.5px, var(--blush) 18px, transparent 18.5px);
}

.bow {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 auto 0.5rem;
}
.bow.small { width: 80px; }

/* Flourish line with dot ends, like the one under COOKS */
.flourish::before,
.flourish::after {
  background:
    radial-gradient(circle, currentColor 2px, transparent 2.5px) left center / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) center / calc(100% - 12px) 1px no-repeat;
  height: 6px;
  width: 70px;
}
.flourish::after { transform: scaleX(-1); }

/* Ribbon-edged section title */
.ribbon-title {
  display: inline-block;
  position: relative;
  font-family: var(--serif);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--raspberry);
  padding: 0.45rem 1.5rem 0.45rem 1.9rem;
  margin-bottom: 1rem;
}
.ribbon-title::before,
.ribbon-title::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 14px;
  background: var(--raspberry);
}
.ribbon-title::before { left: -13px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 55% 50%); }
.ribbon-title::after { right: -13px; clip-path: polygon(0 0, 100% 0, 45% 50%, 100% 100%, 0 100%); }

/* Double-rule oval frame used on cards, like the logo's inner ring */
.card { border-radius: 26px; border: 2px solid var(--blush); outline-offset: -9px; }

/* Faint polka-dot paper texture */
body {
  background-image: radial-gradient(circle, rgba(232, 150, 160, 0.16) 1.4px, transparent 1.8px);
  background-size: 28px 28px;
}

::selection { background: var(--blush); color: var(--raspberry-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
legend.legend {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-bottom: 0.5rem;
  padding: 0;
}
.form-success { padding: 0.5rem 0 0; }
.form-card .form-success { padding: 2rem 1rem; }

/* Clip the logo to its scalloped oval so the square cream ground disappears,
   and trim the empty space above/below the oval. */
.hero { padding-top: 1.5rem; }
.hero-logo {
  width: min(520px, 94%, 82vh);
  height: auto;
  mix-blend-mode: normal;
  clip-path: ellipse(48% 38.5% at 50% 50.6%);
  margin: -9% auto -9%;
}
@media (min-width: 560px) {
  .hero-logo { margin: calc(min(520px, 94vw, 82vh) * -0.1) auto; }
}

/* Full name always on one line: the text is ~14.3x its font size wide, so size it
   from the width of its column (container query units) and never let it wrap. */
.about-grid > div:has(.name-title) { container-type: inline-size; }
h1.name-title {
  white-space: nowrap;
  font-size: min(4.2rem, 6.7cqi);
  line-height: 1.25;
}

/* Four values sit in a balanced 2 x 2 grid, one column on phones */
.facts { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; row-gap: 2rem; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Keep everything inside the Drops oval: the curve narrows toward the top and
   bottom, so leave extra room there and keep the email form narrower. */
.oval {
  padding: clamp(3.5rem, 10vw, 5.5rem) 11% clamp(5.5rem, 15vw, 8.5rem);
}
.oval .notify { max-width: min(400px, 74%); }
@media (max-width: 520px) {
  .oval { padding: 3rem 1.5rem 3.25rem; }
  .oval .notify { max-width: none; }
}
@media (min-width: 521px) and (max-width: 680px) {
  .oval .notify { flex-direction: column; max-width: 62%; }
}

/* ---------- Past Bakes ---------- */
.lede-italic { font-style: italic; font-size: 1.35rem; color: var(--ink-soft); }
.bakes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}
.bakes-empty {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 2px solid var(--blush);
  border-radius: 26px;
  outline: 1px solid var(--raspberry);
  outline-offset: -9px;
  background: var(--cream);
}
.bake { margin: 0; text-align: center; }
.bake-photo {
  aspect-ratio: 4 / 5;
  border-radius: 50% / 40%;
  overflow: hidden;
  border: 2px solid var(--blush);
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--raspberry);
  margin: 7px 7px 1.25rem;
  background: var(--blush-light);
}
.bake-photo img { width: 100%; height: 100%; object-fit: cover; }
.bake h3 { margin-bottom: 0.2rem; }
.bake-date { margin: 0 0 0.6rem; font-style: italic; color: var(--ink-soft); }
.bake-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--raspberry);
  border: 1px solid var(--raspberry);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
}
.nav a { white-space: nowrap; }

/* Card icons all match the envelope glyph (~22 x 16px) so the four cards read as a set */
.card .icon { height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.card .icon-img img { height: 21px; width: auto; }
.card .icon-img img.icon-emblem { height: 25px; }

/* About Me photo: fill the whole oval edge to edge (no inset rectangle) and
   frame on the face; the raspberry outline ring sits on top of the photo. */
.portrait:has(img) { padding: 0; background: var(--blush-light); }
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  /* Head sits about 4.5% right of center in the photo: a light 10% zoom gives
     just enough room to shift it to the middle (shift = zoom x offset). */
  transform: translate(-4.9%, 4.5%) scale(1.1);
  transform-origin: 50% 50%;
}
/* Inner raspberry ring drawn above the photo (a plain outline would sit under it). */
.portrait:has(img) { position: relative; outline: none; }
.portrait:has(img)::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid var(--raspberry);
  border-radius: 50% / 42%;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Footer newsletter (Substack) ---------- */
.newsletter { max-width: 460px; margin: 1.25rem auto 1.5rem; }
.newsletter-title {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin: 0 0 0.3rem;
}
.newsletter-text { margin: 0 0 0.25rem; font-style: italic; }
.newsletter .notify { margin-top: 0.75rem; }
.newsletter .form-success { color: var(--raspberry); }
@media (max-width: 520px) { .newsletter .notify { flex-direction: column; } }
