/* Moth & Peony: a florist that keeps late hours. Indigo dusk, blush petals, soft round shapes. */

:root {
  --night: #12122e;
  --dusk: #1d1d4a;
  --blush: #f6cfdc;
  --teal: #8fd9d2;
  --gold: #f3c77a;
  --cream: #fbf4ec;
  --muted: #c3c1e0;

  --bg: var(--night);
  --fg: var(--cream);
  --accent: var(--blush);
  --accent-ink: #2a1230;
  --focus: var(--gold);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --slot-line: rgba(255, 255, 255, .55);
  --slot-pill: rgba(18, 18, 46, .82);

  --display: "Playfair Display", Georgia, serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--body); font-size: 1.0625rem; }

.heading { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.05; max-width: 16ch; }

.button {
  display: inline-block;
  padding: .95rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--blush);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 2rem rgba(246, 207, 220, .35);
  transition: box-shadow .3s;
}
.button:hover { box-shadow: 0 0 3rem rgba(246, 207, 220, .7); }
.link { font-weight: 700; text-underline-offset: .35em; }
.link:hover { color: var(--blush); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}
.wordmark { font-family: var(--display); font-size: 1.6rem; text-decoration: none; }
.wordmark i { color: var(--blush); }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 2.2rem); }
.site-nav a { font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--blush); }
.site-nav__cta { padding: .45rem 1.1rem; border-radius: 999px; background: rgba(18, 18, 46, .7); border: 1px solid var(--blush); }
@media (max-width: 46rem) {
  .site-nav__extra { display: none; }
  .wordmark { font-size: 1.3rem; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem var(--gutter) clamp(5.5rem, 10vh, 7rem);
  --hero-bg: #0d0d26;
}
.hero__shade { background: linear-gradient(180deg, rgba(18, 18, 46, .55) 0%, rgba(18, 18, 46, .1) 20%, rgba(18, 18, 46, .72) 44%, rgba(18, 18, 46, .95) 100%), linear-gradient(90deg, rgba(18, 18, 46, .82) 0%, rgba(18, 18, 46, .55) 40%, rgba(18, 18, 46, 0) 70%); }
@media (max-width: 46rem) { .hero { --hero-focus: 42% 50%; } }

.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 7.6vw, 6.5rem); line-height: 1; }
.hero__lede { max-width: 32rem; margin-top: 1.5rem; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2rem; }

/* ---------- Bouquets ---------- */

.bouquets { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.bouquets__head { display: grid; gap: 1rem; }
.bouquets__head p { max-width: 26rem; color: var(--muted); }
@media (min-width: 56rem) { .bouquets__head { grid-template-columns: 1fr auto; align-items: end; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.filter { padding: .55rem 1.2rem; border: 1px solid #5552a0; border-radius: 999px; background: none; font-weight: 700; cursor: pointer; }
.filter:hover { border-color: var(--blush); }
.filter[aria-pressed="true"] { border-color: var(--blush); background: var(--blush); color: var(--accent-ink); }
.filter-count { margin-top: 1rem; color: var(--muted); }

.posies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem clamp(1rem, 2.5vw, 2rem); margin-top: 2.5rem; }
@media (min-width: 60rem) { .posies { grid-template-columns: repeat(4, 1fr); } }

.posy h3 { margin-top: 1rem; font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.posy p { margin-top: .35rem; color: var(--muted); }
.posy .posy__price { color: var(--gold); font-weight: 700; }

/* Painted blooms stand in for product photographs. */
.bloom {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--c3) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, var(--c1) 0 20%, transparent 21%),
    radial-gradient(circle at 35% 38%, var(--c2) 0 17%, transparent 18%),
    radial-gradient(circle at 65% 38%, var(--c2) 0 17%, transparent 18%),
    radial-gradient(circle at 38% 65%, var(--c2) 0 17%, transparent 18%),
    radial-gradient(circle at 63% 64%, var(--c2) 0 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, var(--c0) 0 46%, var(--dusk) 70%);
}
.bloom::after { inset: .75rem; border-radius: 50%; }
.b1 { --c0: #3b2f6b; --c1: #f6cfdc; --c2: #e39ab8; --c3: #f3c77a; }
.b2 { --c0: #2b3a66; --c1: #fbe3d0; --c2: #f0a48f; --c3: #fff; }
.b3 { --c0: #34305f; --c1: #d9c2f5; --c2: #a98be0; --c3: #fff; }
.b4 { --c0: #3a2f4f; --c1: #f3c77a; --c2: #e98f4a; --c3: #5a3418; }
.b5 { --c0: #2e2c4a; --c1: #efe6d6; --c2: #cdbfa6; --c3: #a98d63; }
.b6 { --c0: #24365a; --c1: #ffffff; --c2: #dfeee6; --c3: #f3c77a; }
.b7 { --c0: #2f2a4c; --c1: #b9a3c9; --c2: #7d93b8; --c3: #efe6d6; }
.b8 { --c0: #2a3560; --c1: #8fd9d2; --c2: #f6cfdc; --c3: #f3c77a; }

/* ---------- Making: stacked by default, pinned when motion is welcome ---------- */

.making { background: var(--dusk); }
.making__stage { display: grid; gap: 2.5rem; padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); }

.posy-art { width: min(100%, 24rem); margin-inline: auto; }
.z1 path { fill: none; stroke: #6fae8c; stroke-width: 5; stroke-linecap: round; }
.z2 ellipse { fill: #4f9a8f; }
.z3 circle { fill: var(--blush); }
.z3 .posy-art__inner { fill: #e39ab8; }
.z3 .posy-art__small { fill: var(--gold); }
.z4 path { fill: var(--cream); }
.z4 .posy-art__ribbon { fill: none; stroke: #b98a94; stroke-width: 6; stroke-linecap: round; }
.zone { transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); transform-origin: 200px 400px; }

.making__steps { display: grid; gap: 2.25rem; margin-top: 2.5rem; }
.making__when { color: var(--teal); font-weight: 700; }
.making__step h3 { margin-top: .3rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; }
.making__step h3 + p { margin-top: .6rem; max-width: 30rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html.js .making { height: 400vh; }
  html.js .making__stage { position: sticky; top: 0; align-items: center; height: 100vh; height: 100svh; padding-block: clamp(2rem, 6vh, 4rem); overflow: hidden; }

  html.js .zone { opacity: 0; transform: scale(.85); }
  html.js .making:not([data-active]) .z1, html.js .making[data-active] .z1,
  html.js .making[data-active="1"] .z2, html.js .making[data-active="2"] .z2, html.js .making[data-active="3"] .z2,
  html.js .making[data-active="2"] .z3, html.js .making[data-active="3"] .z3,
  html.js .making[data-active="3"] .z4 { opacity: 1; transform: none; }

  html.js .making__steps { position: relative; display: block; min-height: 13.5rem; margin-top: 1.5rem; }
  html.js .making__step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(1.5rem); transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
  html.js .making__step.is-active { opacity: 1; transform: none; }

  @media (min-width: 56rem) {
    html.js .making__stage { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
    html.js .posy-art { width: min(100%, 30rem); max-height: 78vh; }
  }
  @media (max-width: 55.99rem) {
    html.js .making__stage { grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
    html.js .posy-art { height: 100%; width: auto; min-height: 0; }
    html.js .making .heading { font-size: 1.9rem; }
  }
}

/* ---------- Order ---------- */

.order { padding-block: clamp(4.5rem, 10vw, 8.5rem); background: var(--cream); color: var(--night); --focus: #6b2f55; }
.order__grid { display: grid; gap: 3rem clamp(2rem, 7vw, 6rem); }
@media (min-width: 58rem) { .order__grid { grid-template-columns: .9fr 1.1fr; } }
.order__text { max-width: 26rem; margin-top: 1.25rem; }

.quote { max-width: 28rem; margin-top: 3rem; padding: 1.75rem; border-radius: 1.75rem; background: #f3e3e6; }
.quote__flag { display: inline-block; padding: .2rem .8rem; border-radius: 999px; background: var(--night); color: var(--cream); font-size: .85rem; font-weight: 700; }
.quote blockquote { margin-top: 1rem; font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.3; }
.quote figcaption { margin-top: .9rem; font-size: .95rem; color: #4a4763; }

.form { display: grid; gap: 1.25rem; }
.form legend, .field label { font-weight: 700; }
.form .button { justify-self: start; background: var(--night); color: var(--cream); box-shadow: none; }
.form .button:hover { background: #6b2f55; box-shadow: none; }

.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .6rem; }
@media (min-width: 40rem) { .dates { grid-template-columns: repeat(8, 1fr); } }
.date { display: grid; justify-items: center; gap: .1rem; padding: .7rem .2rem; border: 2px solid #b9b4cf; border-radius: 1.1rem; background: #fff; font-size: .85rem; cursor: pointer; transition: transform .2s, background-color .2s; }
.date strong { font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1; }
.date:hover { border-color: var(--night); }
.dates input:checked + .date { border-color: var(--night); background: var(--night); color: var(--cream); transform: translateY(-3px); }
.dates input:focus-visible + .date { outline: 2px solid var(--focus); outline-offset: 3px; }
.dates__output { margin-top: .8rem; min-height: 1.6em; color: #4a4763; }

.form__pair { display: grid; gap: 1.25rem; }
@media (min-width: 34rem) { .form__pair { grid-template-columns: 1.4fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.1rem; padding: .7rem 1rem; border: 2px solid #8d88a8; border-radius: 1.1rem; background: #fff; }
.form__status { min-height: 1.6em; font-weight: 700; color: #6b2f55; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 3rem 6.5rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer .wordmark { color: var(--cream); }
.site-footer p { max-width: 38rem; }
.site-footer a:not(.demo-badge) { color: var(--cream); }
