/* Theme: the single place for shared values */
:root {
  --deep: #08256b;      /* ink, footer, order bar */
  --river: #0f6fc6;     /* links, selected state */
  --splash: #dcf0fb;    /* tinted surface */
  --paper: #f5fbfe;     /* page background */
  --leaf: #1f7a33;      /* the order action */
  --marigold: #f0a202;  /* wedding accent */
  --line: #c3dff0;
  --muted: #47608f;
  --error: #b3261e;

  --display: 'Baloo 2', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem;
  --radius: .75rem;
  --wide: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 1.0625rem/1.55 var(--body); color: var(--deep); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, legend { font-family: var(--display); line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; }
p { margin: 0; max-width: 62ch; }
a { color: var(--river); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: .4rem var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.brand img { width: auto; height: 3.75rem; }
.top nav { display: flex; gap: clamp(.75rem, 3vw, 1.75rem); }
.top nav a { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--deep); text-decoration: none; padding: .4rem 0; }
.top nav a:hover { color: var(--river); }

/* Hero: headline, one line, one action */
.hero { max-width: var(--wide); margin: 0 auto; padding: var(--s5) var(--gutter) var(--s3); }
.lead { margin-top: var(--s2); font-size: 1.15rem; color: var(--muted); }
.cta { display: inline-block; margin-top: var(--s3); text-decoration: none; }
.tagline { font: italic 600 1.1rem var(--display); text-align: center; margin-top: var(--s2); color: var(--river); max-width: none; }

/* Form controls */
label { font-weight: 600; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .6rem .75rem; font: inherit; font-weight: 400; color: inherit;
  background: #fff; border: 1.5px solid var(--muted); border-radius: .5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.shelf fieldset legend { font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip, .pick { position: relative; }
.chip input, .pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: .35rem .9rem; border: 1.5px solid var(--muted); border-radius: 2rem; background: #fff; cursor: pointer; }
.chip:has(:checked) span { background: var(--deep); border-color: var(--deep); color: #fff; }
.chip:has(:focus-visible) span, .pick:has(:focus-visible) { outline: 3px solid var(--marigold); outline-offset: 2px; }
.check { display: flex; gap: .6rem; align-items: baseline; font-weight: 400; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--deep); flex: none; translate: 0 .15rem; }

/* Category jump links */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); max-width: var(--wide); margin: 0 auto; padding: var(--s3) var(--gutter) var(--s4); }
.cats a { display: grid; justify-items: center; gap: .5rem; text-align: center; font: 600 1.1rem/1.15 var(--display); color: var(--deep); text-decoration: none; }
.cats img, .shelf header img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--river); }
.cats img { width: min(100%, 9rem); }
.cats a:hover img { box-shadow: 0 0 0 4px var(--marigold); }

/* Product sections */
.shelf { display: grid; gap: var(--s3); max-width: var(--wide); margin: 0 auto; padding: var(--s4) var(--gutter); border-top: 2px solid var(--line); }
.shelf header { display: flex; align-items: center; gap: var(--s2); }
.shelf header img { width: 5.5rem; flex: none; }
.shelf header p { color: var(--muted); margin-top: .25rem; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 var(--s4); }
.row { display: flex; align-items: center; gap: var(--s2); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.row img { width: 2.2rem; height: 5rem; object-fit: cover; border-radius: .3rem; }
.row label { flex: 1; }
.row small { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.row input { width: 6rem; margin: 0; text-align: right; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem var(--s2); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: var(--s2); }
.pick { display: grid; gap: .4rem; text-align: center; padding: .4rem .4rem .6rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .45rem; }
.pick:has(:checked) { border-color: var(--deep); box-shadow: 0 0 0 2px var(--deep); }

.details { background: linear-gradient(var(--splash), var(--paper)); max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s2); }
.promo { font: 600 1.2rem/1.25 var(--display); padding: .75rem var(--s2); border-left: .4rem solid var(--marigold); background: #fff; border-radius: 0 .5rem .5rem 0; max-width: none; }

/* Order bar */
.bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem var(--s2);
  padding: .75rem var(--gutter); background: var(--deep); color: #fff; }
.bar p.error { color: #ffd9a0; font-weight: 600; }
.bar button, .cta { font: 800 1.15rem var(--display); color: #fff; background: var(--leaf); border: 2px solid #fff; border-radius: 2rem; padding: .55rem 1.4rem; cursor: pointer; }
.bar button:hover, .cta:hover { background: #17642a; }

/* Footer */
footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--s4);
  padding: var(--s5) max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))) var(--s4); background: var(--deep); color: #e6f2fb; }
footer h2 { font-size: 1.5rem; margin-bottom: var(--s2); color: #fff; }
footer p + p { margin-top: var(--s2); }
footer a { color: #fff; }
footer address { font-style: normal; margin-bottom: var(--s2); }
footer .tagline { grid-column: 1 / -1; color: #9fd3f2; }
.noscript { padding: var(--s2) var(--gutter); background: var(--marigold); max-width: none; }

@media (max-width: 40rem) {
  .brand img { height: 2.6rem; }
  .hero { padding-top: var(--s4); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .shelf header img { width: 4rem; }
  .bar { padding-block: .5rem; font-size: .95rem; }
  .bar button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
