/* Hallmark · genre: playful · theme: custom (taste-skill direction: colour-chapters) · posture: drenched · surface: flat flower-colour fields, one per chapter · hero: colour field with a two-ink name · nav: fixed bar that takes each chapter's colour · footer: black closer with credits · signature: a bloom bar you can actually build a bouquet in · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E5 S5 R4 V4 · weakest: H, a colour field with a name could be any florist; the bouquet builder and Connie's own services carry the specifics, and the fields are flower colours, not brand candy */
/* Hallmark · dismissed 80 · the bouquet SVG is the working builder (the product), and the arch is a labelled diagram of a backdrop; photos carry the rest */
/* Hallmark · dismissed 38iii · the pale second ink on Petals appears once, in the hero, as the theme signature */

:root {
  --black: #0d0c0c;
  --paper: #fffdfb;
  --stem: #1d5a2c;
  --bloom: #e2275f;
  --cell: #1c1c1c;
  --rose: #ffa3c4;
  --rose-deep: #8f0f42;
  --mint: #9ae187;
  --lemon: #f3ea7a;
  --sky: #93f1f7;
  --peach: #fbb65c;
  --soft-on-black: #c8c8c8;
  --display: "Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;
  --text: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.3rem + 5vw, 6.5rem);
  --step-hero: clamp(5.25rem, 2rem + 13vw, 13.75rem);
  --margin: max(16px, 3vw, calc((100vw - 1520px) / 2));
  --radius: 999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--black); font-family: var(--text); font-size: var(--step-body); line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: var(--margin); top: -5rem; z-index: 20; background: var(--black); color: var(--paper); padding: 0.75rem 1rem; }
.skip:focus-visible { top: 0.75rem; }

.field { position: relative; padding: calc(var(--bar-h) + 2rem) var(--margin) clamp(2rem, 4vw, 3.5rem); }
.field--rose { background: var(--rose); }
.field--mint { background: var(--mint); }
.field--lemon { background: var(--lemon); }
.field--sky { background: var(--sky); }
.field--peach { background: var(--peach); }
.field--black { background: var(--black); color: var(--paper); }

/* The bar takes the colour and ink of the chapter under it. */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10; height: var(--bar-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--margin);
  background: var(--chapter, var(--rose)); color: var(--black);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.bar[data-ink="light"] { color: var(--paper); }
.bar__mark { font-weight: 500; text-decoration: none; font-size: var(--step-body); }
.bar__nav { display: flex; gap: 1.5rem; margin-left: auto; }
.bar__nav a { text-decoration: none; }
.bar__nav a:hover { text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem;
  border-radius: var(--radius); background: var(--black); color: var(--paper);
  font-weight: 500; text-decoration: none;
  transition: transform 160ms var(--ease);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.bar[data-ink="light"] .btn { background: var(--paper); color: var(--black); }
.btn { white-space: nowrap; }
.btn:focus-visible { outline-color: var(--black); }
.bar[data-ink="light"] .btn:focus-visible, .field--black .btn:focus-visible { outline-color: var(--paper); }

/* Hero */
.hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.hero__h { font-size: var(--step-hero); line-height: 0.86; letter-spacing: -0.03em; margin-top: 6svh; }
.hero__h span { display: block; }
.hero__pale { color: var(--rose-deep); }
.hero__line { grid-row: 3; justify-self: end; width: min(30ch, 100%); font-size: var(--step-lead); line-height: 1.35; margin: 0; }

/* Statement chapters */
.chapter {
  min-height: 92svh; display: grid; gap: 2rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto; align-items: start;
}
.chapter__note { grid-column: 8 / 13; grid-row: 1; max-width: 32ch; font-size: var(--step-lead); line-height: 1.35; }
.chapter__photo { grid-column: 1 / 5; grid-row: 1 / 3; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.chapter__photo--wide { grid-column: 7 / 13; aspect-ratio: 4 / 3; }
.chapter__h { grid-column: 1 / 13; grid-row: 3; font-size: var(--step-head); max-width: 12ch; }
.chapter--mirror .chapter__note { grid-column: 1 / 6; }
.chapter--mirror .chapter__photo { grid-row: 1 / 3; }
.chapter--mirror .chapter__h { justify-self: end; text-align: right; }

/* Bloom bar */
.bloom { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text bouquet" "photo bouquet"; column-gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bloom__text { grid-area: text; }
.bouquet { grid-area: bouquet; }
.bloom h2 { font-size: var(--step-head); margin-bottom: 1.25rem; max-width: 11ch; }
.bloom__text > p { max-width: 38ch; font-size: var(--step-lead); line-height: 1.35; }
.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.picker button, .picker__reset {
  font: inherit; font-weight: 500; min-height: 44px; padding: 0 1.1rem;
  border-radius: var(--radius); border: 2px solid var(--black); background: transparent; color: var(--black); cursor: pointer;
  transition: transform 140ms var(--ease);
}
.picker button:hover { background: var(--black); color: var(--sky); }
.picker button:active, .picker__reset:active { transform: scale(0.95); }
.picker button:disabled, .picker__reset:disabled { opacity: 0.45; cursor: not-allowed; background: transparent; color: var(--black); }
.picker__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.picker__count { margin: 0; font-weight: 500; }
.picker__reset { border-color: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
.bloom__photo { grid-area: photo; align-self: start; margin-top: 2rem; width: min(22rem, 100%); aspect-ratio: 4 / 3; object-fit: cover; }
.bouquet { margin: 0; justify-self: center; width: min(100%, 30rem); }
.bouquet svg { width: 100%; height: auto; display: block; overflow: visible; }
.wrap { fill: var(--black); }
.ribbon { fill: var(--rose); }
.stem__line { stroke: var(--stem); stroke-width: 4; stroke-linecap: round; fill: none; transform-box: fill-box; transform-origin: 50% 100%; animation: grow 520ms var(--ease) both; }
.stem__head { transform-box: fill-box; transform-origin: 50% 50%; animation: pop 420ms 380ms var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Backdrops */
.backdrops { min-height: 100svh; }
.backdrops h2 { font-size: var(--step-head); max-width: 13ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.backdrops__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.arch { width: 100%; max-height: 70svh; }
.arch__panel { fill: var(--rose); }
.arch__blooms circle { fill: var(--bloom); }
.arch__blooms .b2 { fill: var(--paper); }
.arch__floor { fill: var(--black); }
.backdrops__text p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.backdrops__text ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.backdrops__text li { border: 2px solid var(--black); border-radius: var(--radius); padding: 0.4rem 1rem; }
.backdrops__photo { width: min(16rem, 60%); aspect-ratio: 3 / 4; object-fit: cover; }

/* Contact */
.contact { min-height: 80svh; padding-left: 0; padding-right: 0; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--margin) 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { height: 180px; width: auto; flex: none; object-fit: cover; }
.contact h2 { font-size: var(--step-head); margin: clamp(3rem, 7vw, 4.5rem) var(--margin) 2.5rem; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 var(--margin); }
.cell {
  min-height: 96px; display: grid; place-items: center; text-align: center; padding: 1rem;
  border-radius: 24px; background: var(--cell); color: var(--paper); text-decoration: none; font-size: var(--step-lead);
  transition: transform 160ms var(--ease);
}
.cell:hover { transform: translateY(-3px); }
.cell--main { background: var(--rose); color: var(--black); }
.contact__small { margin: 1.25rem var(--margin) 0; color: var(--soft-on-black); font-size: var(--step-body); }
.foot { padding: 3rem var(--margin); color: var(--paper); background: var(--black); }
.foot :focus-visible, .contact :focus-visible { outline-color: var(--paper); }
.credits { font-size: 1rem; color: var(--soft-on-black); max-width: 68ch; }

@media (max-width: 900px) {
  .bar__nav { display: none; }
  .bar__btn { margin-left: auto; }
  .bloom, .backdrops__body { grid-template-columns: minmax(0, 1fr); }
  .bloom { grid-template-areas: "text" "bouquet" "photo"; }
  .bouquet { width: min(100%, 22rem); margin-top: 1.5rem; }
  .chapter__note, .chapter--mirror .chapter__note { grid-column: 1 / 13; }
  .chapter__photo, .chapter__photo--wide, .chapter--mirror .chapter__photo { grid-column: 1 / 9; grid-row: 2; }
  .chapter--mirror .chapter__photo { grid-column: 5 / 13; }
  .chapter--mirror .chapter__h { justify-self: start; text-align: left; }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .bar__mark { font-size: var(--step-small); max-width: 9rem; line-height: 1.2; }
  .hero__h { font-size: 21vw; margin-top: 4svh; }
  .hero__line { justify-self: start; width: 85%; font-size: var(--step-body); }
  .chapter { min-height: 64svh; }
  .chapter__note { font-size: var(--step-body); }
  .strip img { height: 120px; }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cell { min-height: 60px; }
  .contact { min-height: 0; }
  .arch { max-height: 50svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar, .btn, .cell, .picker button, .picker__reset { transition: none; }
  .stem__line, .stem__head { animation: none; }
}

/* QA round 2 */
.bar__mark, .bar__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.bar__nav a { padding-inline: 0.25rem; }
.bar__btn, .picker button, .picker__reset { min-height: 44px; }
.contact__small a, .foot a { display: inline-block; padding-block: 0.7rem; }
.credits ul { list-style: none; margin: 0; padding: 0; }
.credits p { margin-bottom: 0.25rem; }
@media (max-width: 640px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .chapter__note, .chapter--mirror .chapter__note, .chapter__h, .chapter--mirror .chapter__h { grid-column: 1; grid-row: auto; }
  .chapter__photo, .chapter__photo--wide, .chapter--mirror .chapter__photo { grid-column: 1; grid-row: auto; width: 82%; }
  .chapter--mirror .chapter__photo { justify-self: end; }
  .chapter__h { font-size: clamp(2.25rem, 12vw, 3.5rem); overflow-wrap: break-word; }
}

/* QA round 3: survive 200% text zoom */
h1, h2, h3, p, a, li, dt, dd { overflow-wrap: anywhere; }
.bar { flex-wrap: wrap; }
.bar > * { min-width: 0; max-width: 100%; }
.hero__line { max-width: 100%; }
.credits a { min-width: 44px; text-align: center; }
/* QA round 4 */
.bar { position: relative; height: auto; min-height: var(--bar-h); row-gap: 0; }
#top { padding-top: 2rem; }
.chapter > * { min-width: 0; }
.chapter__h { max-width: min(12ch, 100%); }
@media (max-width: 640px) { .chapter { grid-template-columns: minmax(0, 1fr); } }

/* Phone hero photo */
.hero__photo { display: none; }
@media (max-width: 640px) {
  .hero { min-height: auto; grid-template-rows: auto auto auto; row-gap: 1.25rem; padding-bottom: 2.5rem; }
  .hero__photo { display: block; grid-row: 2; justify-self: end; width: 78%; height: auto; max-height: 46svh; object-fit: cover; aspect-ratio: 4 / 3; }
  .hero__h { margin-top: 1svh; }
}
