/* Wreaths of Green: site styles
   Palette retuned 2026-11-15 ("warm sun"): warmer cream, orange-leaning red,
   plus periwinkle as the ground of the wreath photos. */

@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mali-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mali-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/mali-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/mali-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/mali-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/mali-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/mali-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mali";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/mali-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #FFF6D6;
  --green: #00843D;
  --red:   #DA3A2C;
  --periwinkle: #98B1E6;

  --body: 20px;
  --h1: 40px;
  --h2: 34px;
  --h3: 26px;
  --gutter: 20px;
  --measure: 34em;
}
@media (min-width: 760px) {
  :root {
    --body: 22px;
    --h1: 48px;
    --h2: 40px;
    --h3: 28px;
    --gutter: 40px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--green);
  font-family: "Mali", "Comic Neue", "Trebuchet MS", sans-serif;
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.55;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 6px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.4em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p  { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: var(--cream); padding: 0.5em 1em;
}
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--gutter) 8px;
}
.site-header .brand img { width: 190px; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav a { text-decoration: none; font-weight: 400; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); }

/* Tablet inner pages: logo on the left, nav beside it */
@media (min-width: 760px) and (max-width: 1199px) {
  .site-header .brand img { width: 205px; }
  .site-header + main .hero { padding-top: 24px; }
}

/* Desktop inner pages: big logo on the left, nav centred on the page.
   The logo hangs down beside the centred page title instead of pushing it down. */
@media (min-width: 1200px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
  .site-header .brand { justify-self: start; margin-bottom: -150px; position: relative; z-index: 1; }
  .site-header .brand img { width: 260px; }
  .site-nav { grid-column: 2; padding-top: 28px; }
  .site-header + main .hero { padding-top: 24px; }
  /* order page intro is left-aligned, so the logo can't hang over it */
  body:has(.order-intro) .site-header .brand { margin-bottom: 0; }
  body:has(.order-intro) .site-nav { padding-top: 90px; }
  .site-header + main .hero.order-intro { padding-top: 8px; }
  .home .site-header { display: flex; }
  .home .site-header .brand { margin-bottom: 0; }
  .home .site-nav { padding-top: 0; }
}

@media (max-width: 759px) {
  .site-header { flex-direction: column; justify-content: center; padding-top: 20px; }
  .site-header .brand img { width: 205px; }
  .site-nav ul { justify-content: center; gap: 2px 22px; }
  .site-header + main .hero { padding-top: 20px; }
}

/* Home on desktop: large centred logo in the hero, nav centred above it.
   Home on phone: same 150 px header logo as every other page. */
.hero-logo { display: none; }
@media (min-width: 760px) {
  .home .site-header { justify-content: center; }
  .home .site-header .brand { display: none; }
  .home .hero { padding-top: 24px; }
  .home .hero-logo { display: block; width: 260px; margin: 8px auto 28px; }
}

/* ---------- layout ---------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.hero .lede { max-width: 28em; margin: 0 auto 1.4em; }

/* Small red heading above a main title, with berry dots either side */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  margin: 0 0 0.6em;
  color: var(--red);
  font-size: var(--body);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before, .kicker::after {
  content: "";
  width: 0.4em; height: 0.4em;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

/* ---------- buttons ---------- */
.button, button.button {
  display: inline-block;
  padding: 0.55em 1.4em;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button.button:hover { background: var(--red); color: var(--cream); }

/* ---------- motifs ----------
   Role sizes from the motif README (longest side), so pen lines match:
   icon 45, accent 95, spot 150, frame 225, divider 265 wide. */
.motif { margin-left: auto; margin-right: auto; object-fit: contain; }
.motif.icon    { width: 45px;  height: 45px; }
.motif.accent  { width: 95px;  height: 95px; }
.motif.spot    { width: 150px; height: 150px; }
.motif.divider { width: 265px; height: auto; }

/* ---------- photo placeholder in a braid frame ----------
   To add a photo: <img class="photo" src="..." alt="..."> inside the figure. */
.photo-frame {
  position: relative;
  width: 225px;
  aspect-ratio: 7970 / 7339;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.photo-frame .frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-frame .photo {
  position: absolute;
  inset: 8%;
  width: 84%; height: 84%;
  object-fit: cover;
  border-radius: 50%;
}
.photo-frame .ph { font-weight: 400; }

[hidden] { display: none !important; }
.hidden { display: none; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.more { margin-top: 40px; }
.narrow > .motif, .narrow > .photo-frame { margin-top: 24px; margin-bottom: 32px; }
.story p:first-of-type { margin-top: 8px; }

/* ---------- catalog ---------- */
.products { display: grid; gap: 72px; padding-top: 24px; }
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
.product h2 { font-size: var(--h3); margin-bottom: 0.2em; }
.product .button { margin-top: 12px; }
.sizes { display: inline-block; text-align: left; margin-bottom: 0.6em; }
.price-list { margin: 0 0 0.6em; }
.price-list .row { display: flex; gap: 1.2em; justify-content: space-between; min-width: 8em; }
.price-list dt { margin: 0; }
.price-list dd { margin: 0; }
.sizes-label { margin: 0.4em 0 0.1em; font-weight: 400; }
@media (min-width: 760px) {
  .product {
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 48px;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
  }
  .product .sizes { display: block; }
  .product .price-list .row { max-width: 10em; }
}

/* ---------- wreath photos ----------
   Plain square photo; tap to see it large. */
.photo-button {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.photo-button .photo { width: 100%; height: auto; aspect-ratio: 1; }
/* Stand-in for a style with no photo yet: a blank periwinkle square */
.photo-blank {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: var(--periwinkle);
}
@media (min-width: 760px) {
  .photo-button, .photo-blank { max-width: 320px; }
}
.card .photo-link { display: block; width: 220px; max-width: 100%; margin: 0 auto 16px; }
.card .photo-link img { width: 100%; height: auto; aspect-ratio: 1; }

/* Large view: the photo on the page cream, no grey overlay */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--green);
  cursor: zoom-out;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lightbox::backdrop { background: var(--cream); }
.lightbox img {
  width: min(92vw, calc(100vh - 110px));
  height: auto;
  aspect-ratio: 1;
}
.lightbox-caption { margin: 0; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 12px; right: 16px;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--green); color: var(--cream);
  font: inherit; font-size: 32px; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--red); }

/* Text hidden for now (same colour as the page); remove the class when the real text goes in */
.placeholder { color: var(--cream); }
.card .photo-link .photo-blank { display: block; max-width: none; }

.product .lede-line { font-weight: 600; margin-bottom: 0.3em; }
.single-price { font-size: var(--h3); margin: 0.2em 0 0.4em; }

.story-photo { margin: 24px 0 32px; }
.story-photo img { width: 100%; height: auto; }

/* ---------- order form ---------- */
.hero.order-intro { text-align: left; }
.hero.order-intro .lede { margin-left: 0; }
.order-form h2 { font-size: var(--h3); margin-top: 1.6em; }
.order-form h2:first-of-type { margin-top: 0; }
.field { margin: 0 0 1.1em; }
.field label { display: block; margin-bottom: 0.2em; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.35em 0.1em;
  border: 0;
  border-bottom: 2px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
}
.field.short input { max-width: 10em; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%2300843D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2em center;
  cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field textarea { resize: vertical; }
.field input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none' stroke='%2300843D' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2.5' y='4' width='17' height='15.5' rx='3'/%3E%3Cpath d='M2.5 9h17M7 2v4M15 2v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2em center;
  padding-right: 1.6em;
}
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.choices { border: 0; margin: 0 0 1.1em; padding: 0; }
.choices label { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.3em; cursor: pointer; }
.choices input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  font-size: inherit;
  width: 0.9em; height: 0.9em;
  margin: 0;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.choices input::before {
  content: "";
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
}
.choices input:checked::before { transform: scale(1); }
.choices input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.live-price { min-height: 1.55em; margin: -0.4em 0 0.8em; }
::placeholder { color: var(--green); opacity: 0.6; }

/* ---------- prices ---------- */
.price { color: var(--red); font-weight: 700; }

/* ---------- cards (no boxes: just spacing) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 40px;
  margin-top: 32px;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card { text-align: center; }
.card .motif { margin-bottom: 16px; }
.card h3 { margin-bottom: 0.2em; }
.card p { margin-bottom: 0.4em; }

/* ---------- berry-dot lists ---------- */
.berries { list-style: none; margin: 0 0 1em; padding: 0; }
.berries li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
}
.berries li::before {
  content: "";
  position: absolute;
  left: 0.2em; top: 0.6em;
  width: 0.42em; height: 0.42em;
  border-radius: 50%;
  background: var(--red);
}
.berries.inline-center { display: table; margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--red);
  background: var(--green);
  color: var(--cream);
  margin-top: 64px;
}
.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--gutter);
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--cream); text-decoration-color: var(--red); }
.site-footer .dot { padding: 0 0.6em; }
@media (max-width: 759px) {
  .site-footer .inner { padding: 18px var(--gutter); }
  .site-footer .dot { display: none; }
  .site-footer .line { display: block; }
}
