:root {
  --green: #1f3d2b;
  --green-2: #2c5239;
  --green-ink: #16301f;
  --cream: #f7f1e3;
  --cream-2: #efe5cf;
  --paper: #fffdf7;
  --gold: #c9a04a;        /* decorative only */
  --gold-ink: #8a6a1f;    /* gold for text: 4.9:1 on cream */
  --berry: #a3262e;       /* from the Grand River Wreath Co. logo */
  --berry-dark: #7e1c23;
  --ink: #2a2118;
  --muted: #5e5446;
  --line: #e2d6bb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 24, .06), 0 6px 18px rgba(42, 33, 24, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-ink); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
  padding: 40px 20px 56px;
  border-bottom: 6px solid var(--berry);
}
.hero::after { /* soft vignette */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 20%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; display: grid; gap: 24px; }
.hero-logo { width: min(240px, 64vw); justify-self: center; filter: drop-shadow(0 10px 28px rgba(0,0,0,.3)); }
.hero-logo svg { display: block; width: 100%; height: auto; }
.hero-logo .name-text { font-family: var(--serif); font-size: 24px; text-align: center; }
.eyebrow { font-family: var(--hand); font-size: 28px; color: var(--gold); margin: 0 0 4px; }
.hero h1 { color: var(--cream); font-size: clamp(36px, 8vw, 62px); max-width: 12ch; }
.tagline { font-size: 19px; max-width: 34ch; margin: 14px 0 6px; color: #e9e1cc; }
.cutoff { font-weight: 600; color: var(--gold); margin: 0 0 24px; }
@media (min-width: 760px) {
  .hero { padding: 64px 32px 80px; }
  .hero-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .hero-logo { order: 2; width: 340px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 700 18px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 16px 28px; transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--green-ink); }
.btn-gold:hover { background: #d6b062; }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-2); }
.btn-green:disabled { background: #7b8a7f; cursor: wait; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Layout ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 48px; }
.section { padding: 32px 0 8px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(26px, 5vw, 34px); }
.step {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 700 17px/1 var(--serif);
  background: var(--berry); color: var(--cream);
}
.lead { color: var(--muted); margin: 4px 0 18px; }
.hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* hand-drawn spruce sprig divider */
.sprig {
  height: 34px; margin: 18px auto 0; max-width: 260px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 34'%3E%3Cpath d='M10 17 H250' stroke='%23c9a04a' stroke-width='1.5' stroke-linecap='round'/%3E%3Cg stroke='%232c5239' stroke-width='2.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M100 17 C112 17 124 17 160 17'/%3E%3Cpath d='M106 17 l-6 -8 M114 17 l-6 -9 M122 17 l-6 -9 M130 17 l-6 -9 M138 17 l-6 -9 M146 17 l-5 -8'/%3E%3Cpath d='M106 17 l-6 8 M114 17 l-6 9 M122 17 l-6 9 M130 17 l-6 9 M138 17 l-6 9 M146 17 l-5 8'/%3E%3C/g%3E%3Ccircle cx='158' cy='13' r='3.4' fill='%239b2335'/%3E%3Ccircle cx='163' cy='19' r='3.4' fill='%239b2335'/%3E%3Ccircle cx='156' cy='21' r='3' fill='%239b2335'/%3E%3C/svg%3E");
}

/* ---------- Product cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-photo { aspect-ratio: 4 / 3; background: var(--cream-2); display: grid; place-items: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo img.illus { width: 62%; height: auto; object-fit: contain; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 24px; }
.card .detail { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.opt-label { display: flex; flex-direction: column; }
.opt-label strong { font-weight: 600; }
.price { font-family: var(--serif); color: var(--gold-ink); font-weight: 700; font-size: 18px; }
.card.soldout { opacity: .6; }
.badge { display: inline-block; align-self: flex-start; background: var(--berry); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button {
  width: 44px; height: 44px; border: 0; background: none; font: 600 22px/1 var(--sans);
  color: var(--green); cursor: pointer; border-radius: 50%;
}
.qty button:disabled { color: #bbb; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.qty.has { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }

/* ---------- Choices ---------- */
.choice-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 640px) { .choice-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 52px; position: relative;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.choice-body::before {
  content: ''; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--muted); background: #fff;
}
.choice-body strong { font-size: 18px; }
.choice-body small { color: var(--muted); font-size: 15px; }
.choice input:checked + .choice-body { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; background: #fbfaf2; }
.choice input:checked + .choice-body::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 45%, #fff 50%); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--gold); outline-offset: 2px; }

.subfields { margin-top: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; }
legend { font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--paper);
  border: 1.5px solid var(--line); cursor: pointer; font-size: 16px;
}
.chip input:checked + span { background: var(--green); color: var(--cream); border-color: var(--green); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Fields (16px+ so iPhones don't zoom) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; }
.field span { font-weight: 600; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  font: 17px/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(31,61,43,.15); }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Summary ---------- */
.summary {
  margin-top: 36px; padding: 22px 20px; background: var(--paper);
  border: 1px solid var(--line); border-top: 5px solid var(--berry); border-radius: var(--radius); box-shadow: var(--shadow);
}
.summary h2 { font-size: 26px; margin-bottom: 8px; }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.summary li.empty { color: var(--muted); border: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; margin: 12px 0 16px; }
.total strong { font-family: var(--serif); font-size: 28px; color: var(--green-ink); }
#turnstile { margin-bottom: 14px; min-height: 0; }
.errors { background: #fbeaea; border: 1px solid #e3b5b5; color: #7a1c1c; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.errors ul { margin: 0; padding-left: 18px; }

/* ---------- Done / closed ---------- */
.done, .closed {
  margin: 36px auto 0; max-width: 640px; text-align: center; background: var(--paper);
  border: 1px solid var(--line); border-top: 5px solid var(--berry); border-radius: var(--radius); padding: 32px 22px; box-shadow: var(--shadow);
}
.done h2, .closed h2 { font-size: 32px; margin-bottom: 8px; }
.done .ref { font-family: var(--serif); font-size: 26px; color: var(--gold-ink); margin: 4px 0 16px; }
.done .pay-box { background: var(--cream); border-radius: 10px; padding: 14px 16px; text-align: left; margin: 16px 0; }
.done .hand, .closed .hand { font-family: var(--hand); font-size: 28px; color: var(--green-2); margin: 16px 0 0; }

.footer { text-align: center; color: var(--muted); font-size: 15px; padding: 24px 16px 40px; }

/* Two wreath sizes: a centred pair on wide screens instead of a half-empty row of three. */
@media (min-width: 940px) { #sizes { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }

/* Berry red top section, matching the logo canvas (chosen 2026-11-25).
   Gold text fails contrast on red, so the hero's small text goes cream. */
.hero { background: var(--berry); border-bottom-color: var(--green); }
.hero .eyebrow { color: #fbe9c9; }
.hero .cutoff { color: var(--cream); }
.hero .tagline { color: #f6e6dc; }
.hero .btn-gold { background: var(--gold); color: var(--green-ink); }
.hero::after { background: radial-gradient(120% 90% at 80% 20%, rgba(255,255,255,.08), transparent 60%); }

/* Green ribbon between the red top and the cream page, with gold stitching. */
.hero { border-bottom: 0; }
.ribbon {
  position: relative; height: 30px; background: var(--green-2);
  box-shadow: 0 3px 8px rgba(42, 33, 24, .18), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.2);
}
.ribbon::before {
  content: ''; position: absolute; left: 0; right: 0; top: 6px; bottom: 6px;
  border-top: 1.5px dashed rgba(201, 160, 74, .85); border-bottom: 1.5px dashed rgba(201, 160, 74, .85);
}

/* More green ribbons across the red top: wide-spaced diagonal ribbons with gold stitching. */
.hero {
  background-color: var(--berry);
  background-image: repeating-linear-gradient(135deg,
    transparent 0 300px,
    var(--green-2) 300px 304px,
    rgba(201, 160, 74, .75) 304px 305.5px,
    var(--green-2) 305.5px 322.5px,
    rgba(201, 160, 74, .75) 322.5px 324px,
    var(--green-2) 324px 328px);
}
.hero h1, .hero .tagline, .hero .eyebrow, .hero .cutoff { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

.opt-note { color: var(--muted); font-size: 14px; line-height: 1.3; }
