:root {
  color-scheme: only light;
  --background: #f7f2e8;
  --paper: #fffaf1;
  --ink: #24382e;
  --quiet: #535d52;
  --line: #d8cebb;
  --berry: #874a52;
  --forest: #2e493b;
  --serif: "Playfair Display", Georgia, serif;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.55 "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1, h2 { font: 500 1.65rem/1.12 var(--serif); }
h1 { font-size: clamp(2rem, 6vw, 4.15rem); overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
.flower-visually-hidden, .flower-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.flower-skip { position: absolute; top: 8px; left: 12px; z-index: 2; padding: 10px; background: var(--paper); }
.flower-header {
  width: min(100% - 32px, 1140px);
  min-height: 70px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 14px;
  border-bottom: 1px solid var(--line);
}
.flower-header a { min-height: 44px; display: inline-flex; align-items: center; }
.flower-brand { gap: .22em; font: 500 clamp(1.15rem, 4vw, 1.5rem) var(--serif); text-decoration: none; }
.flower-brand span { color: var(--berry); font-style: italic; }
.flower-shop, .flower-studio, .flower-recipient { width: min(100% - 32px, 1140px); margin: clamp(24px, 5vw, 58px) auto 56px; }
.flower-intro { padding: 0 0 clamp(22px, 4vw, 42px); }
.flower-intro p, .flower-studio-intro p { color: var(--quiet); margin-top: 10px; }
.flower-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.flower-filters button, .flower-button {
  min-height: 44px;
  padding: 8px 13px;
  background: var(--paper);
  border: 1px solid #b8ac98;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
}
.flower-filters button { font-size: .88rem; }
.flower-filters button[aria-pressed="true"], .flower-button.primary { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.flower-button:not(.primary):hover, .flower-filters button[aria-pressed="false"]:hover { background: #eee7d7; }
.flower-button[aria-disabled="true"] { opacity: .72; cursor: default; }
.flower-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: clamp(12px, 2.7vw, 28px); }
.flower-card { min-width: 0; }
.flower-product { display: grid; height: 100%; grid-template-rows: auto 1fr; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.flower-product:hover { border-color: #9c8d76; box-shadow: 0 10px 25px -19px #534332; }
.flower-tile-art, .flower-present-art {
  aspect-ratio: 360 / 410;
  background: radial-gradient(ellipse at 33% 26%, #fffaf0 14%, transparent 67%), linear-gradient(154deg, #f9eee1, #e7dac8);
}
.flower-tile-art { border-radius: 7px 7px 0 0; }
.flower-tile-art svg, .flower-present-art svg { display: block; width: 100%; height: 100%; }
.flower-tile-detail { min-width: 0; padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.flower-tile-detail h2 { font-size: clamp(1.22rem, 2vw, 1.47rem); }
.flower-tile-detail p { color: var(--quiet); font-size: .9rem; }
.flower-tile-action { color: var(--berry); margin-top: auto; padding-top: 5px; font-size: .9rem; font-weight: 800; }
.flower-studio { max-width: 1000px; }
.flower-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; }
.flower-studio-grid { display: grid; grid-template-areas: "intro" "preview" "form"; gap: 22px; }
.flower-studio-intro { grid-area: intro; }
.flower-studio-preview { grid-area: preview; min-width: 0; }
.flower-form { grid-area: form; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(15px, 3vw, 26px); }
.flower-form h2 { margin-bottom: 14px; }
.flower-form label { font-weight: 800; }
.flower-form small, .flower-label-row span { color: var(--quiet); font-size: .86rem; font-weight: 500; }
.flower-label-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.flower-form input, .flower-form textarea { display: block; width: 100%; min-height: 44px; padding: 9px 11px; margin: 4px 0 12px; border: 1px solid #ad9e87; border-radius: 6px; background: #fffdf8; }
.flower-form textarea { resize: vertical; }
.flower-share { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.flower-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.flower-actions .primary { flex: 1 1 auto; }
.flower-error { color: #8c3747; overflow-wrap: anywhere; }
.flower-error:not(:empty), .flower-status:not(:empty) { margin-top: 8px; }
.flower-present-art { border: 1px solid var(--line); border-radius: 48% 48% 5px 5px / 28% 28% 5px 5px; overflow: hidden; width: min(100%, 460px); margin-inline: auto; }
.flower-studio-preview .flower-present-art { width: min(100%, 340px); }
.flower-recipient { max-width: 1000px; }
.flower-presentation { display: grid; grid-template-areas: "title" "art" "details"; gap: 16px; align-items: center; }
.flower-presentation h1 { grid-area: title; text-align: center; }
.flower-presentation .flower-present-art { grid-area: art; align-self: start; }
.flower-gift-details { grid-area: details; text-align: center; min-width: 0; }
.flower-return, .flower-noscript { text-align: center; margin: 20px; }
.flower-return a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { width: min(100% - 24px, 740px); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 9px; background: var(--background); color: var(--ink); padding: 14px; overscroll-behavior: contain; }
dialog::backdrop { background: #24382ec4; }
dialog .flower-present-art { width: min(100%, 320px); }
dialog h1 { font-size: clamp(1.5rem, 4vw, 2.55rem); }
.flower-dialog-top { margin-bottom: 10px; }
@media (min-width: 700px) {
  .flower-studio-grid { grid-template-areas: "intro preview" "form preview"; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: start; gap: 20px clamp(22px, 6vw, 74px); }
  .flower-studio-preview .flower-present-art { width: 100%; }
  .flower-presentation { grid-template-areas: "title title" "art details"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(20px, 5vw, 58px); }
}

.florist-card {
  --florist-shadow: 0 18px 30px -22px #533e2abc, 0 2px 6px #6e52341f;
  width: min(100%, 355px);
  margin: 18px auto;
  color: #34352b;
}
[data-flower-kind="bouquet"] .florist-card { width: min(100%, 405px); }
.florist-card[data-card-state="closed"] { animation: florist-arrive 420ms ease-out both; }
@keyframes florist-arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.florist-paper {
  position: relative;
  perspective: 850px;
  border: 1px solid #d8c5a9;
  border-radius: 4px;
  background: linear-gradient(180deg,#eee0c9,#fff9eb 23%,#fffaf2);
  box-shadow: var(--florist-shadow);
}
.florist-cover {
  display: block;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  border: 0;
  border-radius: 3px;
  color: #624832;
  background:
    repeating-linear-gradient(102deg,#baa37e0b 0 1px,transparent 1px 5px),
    linear-gradient(148deg,#fffdf3,#f3e5cc);
  transform-origin: top center;
  transform-style: preserve-3d;
  box-shadow: inset 0 1px #fffdf8, 0 3px 6px #6b502630;
}
.florist-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg,#fdf4dd,#e8d8bc);
  transform: rotateX(180deg);
  backface-visibility: hidden;
}
.florist-cover-face {
  backface-visibility: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 141px;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid #bda47c;
  border-radius: 2px;
}
.florist-dedication {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 500 clamp(1.2rem, 5vw, 1.65rem)/1.25 var(--serif);
}
.florist-open-label { font-size: .84rem; font-weight: 800; }
.florist-open-label span { padding-inline-start: .3em; }
[data-card-state="opening"] .florist-cover { animation: florist-fold 560ms cubic-bezier(.23,.67,.24,1) both; }
@keyframes florist-fold {
  0% { transform: rotateX(0); }
  100% { transform: rotateX(155deg); box-shadow: 0 10px 16px #6b502646; }
}
.florist-letter {
  min-height: 157px;
  border-top: 3px solid #e0ceb1;
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 22px clamp(13px, 5vw, 32px) 18px;
  text-align: start;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.65;
}
.florist-letter [data-note="signature"] { font-family: var(--serif); font-style: italic; }
.florist-mark { color: #6a5844; letter-spacing: .07em; font-size: .72rem; }
.flower-keepsake { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.flower-share .transport-link { display: inline-block; padding: 9px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .florist-card[data-card-state] .florist-cover, .florist-card[data-card-state] { animation: none; }
}
