/* Barnwood and Bloom Candle Co. - storefront styles
   Look: rustic French country, pink & floral (from Mark's mood board): watercolor floral wallpaper,
   dusty rose, linen and a gold-framed arched hero.
   Mobile-first: base styles are for phones, @media (min-width) adds wider layouts.
   Fonts are self-hosted (public/assets/fonts, SIL OFL); no external requests. */

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
    font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
    font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/lora-latin.woff2") format("woff2");
    font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/lora-italic-latin.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: "Pinyon Script";
    src: url("/assets/fonts/pinyon-script-latin.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}

:root {
    /* Palette (contrast-checked: body text and links pass WCAG AA on cream) */
    --cream: #FAF6F0;        /* whitewashed wood - page background */
    --cream-deep: #EFE6DA;   /* soft panels, hairlines */
    --white: #FFFDF9;        /* cards */
    --linen: #E7DED1;        /* natural flax linen */
    --linen-deep: #D6CBBA;
    --kraft: #EFE6D6;        /* tag paper */
    --charcoal: #3B302B;     /* body text (11.9:1 on cream) */
    --charcoal-soft: #6E5E56;/* secondary text (5.7:1) */
    --blush: #F0D5D1;        /* chalky pink - section backgrounds */
    --blush-soft: #F7E8E4;
    --peony: #C98F8C;        /* dusty rose - decoration only, never behind small text */
    --peach: #F2C1A6;        /* garden-rose peach - decoration only */
    --rose: #9A4F55;         /* links and buttons (5.4:1 on cream) */
    --rose-deep: #7A3B41;
    --sage: #A3B18A;         /* leaves */
    --sage-deep: #5E6B48;
    --gold: #B8955A;         /* aged gold: rules, borders, ornaments only - never body text */
    --gold-soft: #C9A96E;
    --wood: #8B6F4E;
    --wood-deep: #5A4434;    /* footer */
    --lavender: #E6D9E6;
    --butter: #EFE0BC;       /* champagne */
    --sky: #DFE7E6;

    --serif: "Cormorant Garamond", "Garamond", "Iowan Old Style", Georgia, serif;   /* headings */
    --body: "Lora", Georgia, "Times New Roman", serif;
    --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --shadow: 0 1px 2px rgba(91, 58, 52, .06), 0 8px 24px rgba(91, 58, 52, .07);
    --hairline: 1px solid rgba(184, 149, 90, .55);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    /* Watercolor floral wallpaper (seamless tile made by tools/wallpaper_tile.py) */
    background: #F3EEE6 url("/assets/img/floral-wallpaper.webp") 0 0 / 424px 455px repeat;
    color: var(--charcoal);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.7;
    /* keep the footer at the bottom on short pages */
    min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .4em;
    letter-spacing: .005em;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: var(--rose); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); text-decoration-color: var(--rose); }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 720px; }

.skip-link {
    position: absolute; left: 1rem; top: -3rem;
    background: var(--rose); color: var(--white);
    padding: .5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.muted { color: var(--charcoal-soft); }

/* Paper panels: text never sits directly on the wallpaper, so it stays easy to read */
body:not(.page-home) #main {
    background: rgba(251, 248, 243, .95);
    border: var(--hairline); border-radius: 16px; box-shadow: var(--shadow);
    margin: 1.25rem max(.5rem, calc((100% - 1132px) / 2)) 2.5rem;
}
.page-home .intro {
    background: rgba(251, 248, 243, .95);
    border: var(--hairline); border-radius: 16px; box-shadow: var(--shadow);
    margin: 2.5rem auto; padding: 2rem 1.25rem 1rem; width: calc(100% - 1rem);
}

/* ------------------------------------------------------------ Ornaments */

.script-accent {
    font-family: var(--script);
    font-size: clamp(1.9rem, 6vw, 2.4rem);
    line-height: 1.1;
    color: var(--rose);
    margin: 0 0 .35rem;
}

.divider { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .5rem auto 1.25rem; max-width: 320px; }
.divider-rule { flex: 1; height: 4px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: .8; }
.divider-knot { width: 44px; height: 15px; flex: none; }
.divider-knot path { stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.divider-knot circle { fill: var(--gold); }
.divider-knot circle:first-of-type { fill: var(--peony); }
.page-head .divider, .prose .divider { margin-left: 0; }

/* ------------------------------------------------------------ Header */

.site-header {
    background: var(--white);
    border-bottom: 4px double var(--gold-soft);
}
.header-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem;
}
.brand { text-decoration: none; color: var(--charcoal); }
/* The logo keeps its own cream linen background, shown as a soft rounded card */
.brand-logo { height: 64px; width: auto; border-radius: 10px; box-shadow: 0 1px 3px rgba(91, 58, 52, .18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.brand-name .amp { color: var(--rose); font-style: italic; }
.brand-sub { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--charcoal-soft); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .15rem; }
.site-nav a {
    display: inline-block; padding: .3rem .4rem; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; color: var(--charcoal);
    font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
}
.site-nav a:hover { color: var(--rose); border-color: var(--gold-soft); }
/* Stacked tabs (Our Story, Meet the Family, Candle Care): two lines inside the same button */
.site-nav a.nav-stacked { text-align: center; line-height: 1.05; border-radius: 1.1rem; padding-top: .25rem; padding-bottom: .25rem; }
.site-nav a.nav-stacked span { display: block; }
.site-nav a[aria-current="page"] { background: var(--blush); border-color: var(--gold-soft); color: var(--charcoal); }

/* Cart icon: always in the header, top right. Phones: beside the logo, nav wraps below; wide screens: after the nav. */
.brand { order: 1; margin-right: auto; }
.cart-icon {
    order: 2; position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 999px; border: 1px solid transparent;
    color: var(--charcoal); text-decoration: none;
}
.cart-icon:hover { color: var(--rose); border-color: var(--gold-soft); }
.cart-icon[aria-current="page"] { background: var(--blush); border-color: var(--gold-soft); }
.cart-icon:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.cart-count {
    position: absolute; top: 2px; right: 0; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
    border-radius: 999px; background: var(--rose); color: var(--white); border: 1px solid var(--white);
    font-family: var(--body); font-size: .72rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}
.site-nav { order: 3; flex-basis: 100%; }
/* Phones and tablets: the tabs spread evenly across the full width under the logo row (Mark, 2026-11-30) */
.site-nav ul { justify-content: space-between; }
/* Very small phones (320 px): a touch smaller so all five tabs stay on one row */
@media (max-width: 359px) { .site-nav a { padding-left: .25rem; padding-right: .25rem; font-size: .98rem; } }

/* ------------------------------------------------------------ Buttons, badges, links */

.button {
    display: inline-block; padding: .75rem 1.5rem; border-radius: 999px;
    background: var(--rose); color: var(--white);
    font-family: var(--body); font-weight: 600; text-decoration: none; letter-spacing: .02em;
    border: 1px solid var(--rose);
    box-shadow: inset 0 0 0 2px var(--rose), inset 0 0 0 3px rgba(255, 252, 248, .45);
}
.button:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); box-shadow: inset 0 0 0 2px var(--rose-deep), inset 0 0 0 3px rgba(201, 169, 110, .8); }
.button-quiet { background: transparent; color: var(--rose); border-color: var(--gold); box-shadow: none; }
.button-quiet:hover { background: var(--blush-soft); color: var(--rose-deep); border-color: var(--gold); box-shadow: none; }

.badge {
    display: inline-block; padding: .15rem .7rem; border-radius: 999px;
    background: var(--butter); color: var(--charcoal); border: 1px solid var(--gold-soft);
    font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .03em;
    vertical-align: middle;
}
.badge-lg { font-size: .95rem; padding: .35rem 1rem; }
.badge-in  { background: #DDE4CF; border-color: var(--sage); }
.badge-out { background: var(--cream-deep); color: var(--charcoal-soft); border-color: #D9CBBB; }

.text-link { font-weight: 600; }

.eyebrow {
    font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--charcoal-soft); margin-bottom: .4rem;
}
.lede { font-size: 1.15rem; color: var(--charcoal-soft); font-style: italic; }

.ingredients {
    font-size: .95rem; color: var(--charcoal-soft);
    border-top: var(--hairline); border-bottom: var(--hairline);
    padding: .55rem 0; margin: 1rem 0;
}
dd .ingredients { border: 0; padding: 0; margin: 0; }

.draft-note {
    display: inline-block; background: var(--blush); color: var(--charcoal);
    padding: .35rem .9rem; border-radius: 8px; font-size: .9rem; border: 1px dashed var(--peony);
}

/* ------------------------------------------------------------ Home */

.hero {
    padding: 1.5rem 0 2.5rem;
}
/* Arched, gold-framed panel like a vintage mirror */
.hero-frame {
    position: relative;
    max-width: 780px; margin: 0 auto;
    background:
        radial-gradient(circle at 50% 0%, rgba(243, 214, 216, .55), transparent 60%),
        var(--white);
    border: 2px solid var(--gold);
    outline: 1px solid var(--gold-soft); outline-offset: -9px;
    border-radius: 999px 999px 18px 18px / 260px 260px 18px 18px;
    padding: 2.5rem 1.25rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.hero-logo { width: min(80vw, 300px); height: auto; margin: 0 auto 1rem; border-radius: 18px; box-shadow: var(--shadow); }
.hero h1 { margin-bottom: .2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }


.intro { max-width: 800px; text-align: center; }

/* "What's in our candles": one cream panel, the three points in a tidy grid */
.ingredients-section { padding-top: 1rem; padding-bottom: 2.5rem; }
.ingredients-panel {
    max-width: 860px; margin: 0 auto; background: var(--white); text-align: center;
    border: var(--hairline); outline: 1px solid rgba(184, 149, 90, .25); outline-offset: -8px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.75rem 1.25rem .75rem;
}
.ingredients-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.ingredients-item { padding: 1.1rem .5rem .4rem; }
.ingredients-item + .ingredients-item { border-top: var(--hairline); }
.ingredients-item h3 { color: var(--charcoal); font-weight: 700; margin-bottom: .35rem; }
.ingredients-item p { margin-top: 0; }

.founder { padding-top: 3rem; padding-bottom: 3.5rem; }
.founder-card {
    position: relative; max-width: 720px; margin: 0 auto; background: var(--white);
    border: var(--hairline); border-radius: var(--radius);
    padding: 1.75rem 1.5rem 1rem; box-shadow: var(--shadow); overflow: hidden;
}

/* Soft vintage tints (charcoal text on all of these passes WCAG AA) */
.tint-sage     { background: #E3E8D8; }
.tint-blush    { background: var(--blush); }
.tint-lavender { background: var(--lavender); }
.tint-butter   { background: var(--butter); }
.tint-sky      { background: var(--sky); }

/* ------------------------------------------------------------ Page heads, prose */

.page-head { padding-top: 2.5rem; padding-bottom: .5rem; }
.prose { padding-bottom: 3rem; }
.prose h2 { margin-top: 2rem; }
.care-list { padding-left: 1.2rem; }
.care-list li { margin-bottom: .6rem; }
.care-list li::marker { color: var(--gold); }
.toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.toc a { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: var(--white); border: var(--hairline); text-decoration: none; font-weight: 600; }
.not-found { text-align: center; padding-bottom: 4rem; }
.not-found .divider { margin-left: auto; }
.not-found .hero-actions { justify-content: center; }

/* ------------------------------------------------------------ Shop grid: vintage label cards */

.product-section { padding-bottom: 3rem; }
/* Collection heading with a gold double rule running out to the right */
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.section-head h2 { margin: 0; }
.section-rule { flex: 1; min-width: 2rem; height: 4px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: .8; }
/* Wax melts: Holiday / Signature subheadings under the "Wax melts" heading, same rule, a step smaller */
.product-subsection + .product-subsection { margin-top: 2rem; }
.section-head--sub { margin-top: 1rem; }
.section-head--sub h3 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.75rem); }
.product-grid {
    list-style: none; margin: 0; padding: 10px 0 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.product-card {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .8), transparent 60%),
        linear-gradient(180deg, var(--white), #FAF2E8);
    border-radius: var(--radius); box-shadow: var(--shadow);
    border: var(--hairline); outline: 1px solid rgba(184, 149, 90, .3); outline-offset: -6px;
    padding: .7rem .7rem 1rem; display: flex; flex-direction: column; gap: .35rem; text-align: center;
    position: relative; transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease;
}
.product-card:nth-child(4n+1) { --tilt: -.6deg; }
.product-card:nth-child(4n+2) { --tilt: .5deg; }
.product-card:nth-child(4n+3) { --tilt: -.3deg; }
.product-card:nth-child(4n)   { --tilt: .7deg; }
.product-card:hover, .product-card:focus-within { --tilt: 0deg; }
.product-card::before {   /* brass push pin */
    content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle at 35% 35%, #F3E3B8, #C9A96E 45%, #8A6A3A);
    box-shadow: 0 2px 2px rgba(60, 40, 20, .3);
}
.product-link { text-decoration: none; color: var(--charcoal); display: flex; flex-direction: column; gap: .6rem; }
.product-link:hover .product-name { color: var(--rose); text-decoration: underline; text-decoration-color: var(--gold-soft); }
.product-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.product-notes { font-size: .9rem; color: var(--charcoal-soft); font-style: italic; font-variant: small-caps; letter-spacing: .04em; line-height: 1.4; }
.product-size { font-size: .85rem; color: var(--charcoal-soft); letter-spacing: .04em; }
.product-price { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.product-card .badge { align-self: center; margin-top: auto; }
.product-photo { border-radius: 10px; aspect-ratio: 6 / 7; object-fit: cover; object-position: 50% 20%; width: 100%; height: auto; }   /* height: auto, or the img height="700" attribute wins */

/* Candle illustration (blush jar, wood lid with gold band, monogram label) */
.candle-art { width: 100%; height: auto; border-radius: 10px; }
.candle-art .art-bg { fill: var(--cream-deep); }
.candle-art.tint-sage .art-bg     { fill: #E6EADC; }
.candle-art.tint-blush .art-bg    { fill: #F6DFE0; }
.candle-art.tint-lavender .art-bg { fill: #EEE4EE; }
.candle-art.tint-butter .art-bg   { fill: #EDE4D6; }   /* linen */
.candle-art.tint-sky .art-bg      { fill: #F8E2D6; }   /* peach rose */
.candle-art { background: none; }
.candle-art .art-flame       { fill: #F0C27A; }
.candle-art .art-flame-core  { fill: #FFF3DA; }
.candle-art .art-wick        { fill: var(--wood-deep); }
.candle-art .art-lid         { fill: var(--wood); }
.candle-art .art-lid-band    { fill: var(--gold-soft); }
.candle-art .art-jar         { fill: rgba(255, 252, 248, .7); stroke: var(--wood-deep); stroke-width: 1.2; }
.candle-art .art-wax         { fill: #F7EDE3; }
.candle-art .art-label       { fill: var(--white); stroke: var(--gold); stroke-width: 1; }
.candle-art .art-label-rule  { fill: none; stroke: var(--gold-soft); stroke-width: .6; }
.candle-art .art-mark        { font-family: var(--serif); font-size: 8.5px; font-weight: 600; font-style: italic; fill: var(--rose); }

/* ------------------------------------------------------------ Product page */

.breadcrumb { padding-top: 1.5rem; font-weight: 600; }
.product-detail { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
.product-media {
    max-width: 420px; padding: 10px; background: var(--white);
    border: var(--hairline); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.product-notes-lg { font-size: 1.2rem; margin-bottom: .25rem; }
.product-price-lg { font-size: 2rem; margin: .25rem 0 1rem; }
.product-description { margin: 1.25rem 0; }

/* Note Profile: Top / Heart / Base. Rows on phones, three columns on wider screens */
.note-profile {
    background: var(--white); border: var(--hairline); border-radius: var(--radius);
    outline: 1px solid rgba(184, 149, 90, .25); outline-offset: -6px;
    padding: 1rem 1.1rem .6rem; margin: 1rem 0;
}
.note-profile h2 { font-size: 1.4rem; font-style: italic; font-weight: 500; text-align: center; margin: 0 0 .5rem; }
.note-profile-rows { margin: 0; display: grid; }
.note-profile-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding: .55rem 0; border-top: var(--hairline); }
.note-profile-row dt {
    font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--charcoal-soft); padding-top: .2rem;
}
.note-profile-row dd { margin: 0; line-height: 1.5; }
.product-facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 1.25rem 0; padding: .9rem 0; border-top: var(--hairline); border-bottom: var(--hairline); }
.product-facts dt { font-weight: 600; }
.product-facts dd { margin: 0; }

/* ------------------------------------------------------------ Footer (rustic wood tone) */

.site-footer {
    /* woven linen */
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(0deg, rgba(120, 100, 80, .06) 0 1px, transparent 1px 3px),
        var(--linen);
    color: var(--charcoal); padding: 2rem 0 1.75rem; text-align: center; font-size: .95rem;
    border-top: 4px double var(--gold-soft);
}
.site-footer a { color: var(--charcoal); text-decoration-color: var(--rose); }
.site-footer a:hover { color: var(--rose-deep); }
.footer-script { font-family: var(--script); font-size: 2rem; line-height: 1.2; color: var(--charcoal); margin: 0; }
.footer-tagline { font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.footer-copy { color: #5E4E47; margin: 0; }

/* ------------------------------------------------------------ Wider screens */

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    .ingredients-panel { padding: 2.25rem 2rem 1rem; }
    .ingredients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ingredients-item { padding: .5rem 1.5rem .25rem; border-top: 0; }
    .ingredients-item + .ingredients-item { border-top: 0; border-left: var(--hairline); }
    .hero { padding: 2.5rem 0 4rem; }
    .hero-frame { padding: 4rem 3rem 3rem; }
    .site-nav ul { gap: .25rem .3rem; }
    .site-nav a { padding: .35rem .8rem; font-size: 1.15rem; }
    .brand-logo { height: 84px; }
    .hero-logo { width: 340px; }
}

@media (min-width: 900px) {
    .site-nav { order: 2; flex-basis: auto; }
    .site-nav ul { justify-content: flex-start; }
    .cart-icon { order: 3; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 3rem; }
}

@media (min-width: 1000px) {
    .note-profile-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .note-profile-row { grid-template-columns: none; gap: .2rem; padding: .6rem .9rem .4rem; text-align: center; }
    .note-profile-row + .note-profile-row { border-left: var(--hairline); }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .product-card { --tilt: 0deg !important; }
}

/* ------------------------------------------------------------ Cart and checkout */

.notice { background: var(--blush-soft); border-left: 4px solid var(--rose); padding: .6rem .9rem; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-button { background: none; border: 0; padding: .3rem 0; color: var(--rose); text-decoration: underline; font: inherit; cursor: pointer; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }
.add-to-cart input, .cart-qty input, .cart-box input[type="text"] {
    font: inherit; border: 1.5px solid var(--linen-deep); border-radius: 10px; padding: .55rem .7rem; background: var(--white); min-height: 44px;
}
.add-to-cart input { width: 5rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding: .9rem 0; border-bottom: var(--hairline); align-items: center; }
.cart-line .cart-amount { font-weight: 600; text-align: right; }
.cart-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; display: block; }
.cart-qty { display: flex; align-items: center; gap: .6rem; }
.cart-qty input { width: 4.5rem; }
.cart-box { border: var(--hairline); border-radius: var(--radius); padding: .8rem 1rem 1rem; margin: 1.25rem 0; display: flex; flex-direction: column; gap: .5rem; }
.cart-box legend { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; padding: 0 .3rem; }
.cart-box .choice { display: flex; gap: .5rem; align-items: baseline; }
.cart-box input[type="text"] { width: 100%; }
.cart-box .cart-zip { display: flex; flex-direction: column; gap: .25rem; }
.cart-box #delivery-zip { flex: 0 1 10rem; max-width: 10rem; text-transform: none; }
.cart-box .cart-local { margin: .6rem 0 0; }
.cart-box .cart-zip input[type="text"] { max-width: 10rem; }
.cart-code-row { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.cart-box .cart-code-row input[type="text"] { flex: 1 1 10rem; max-width: 16rem; text-transform: uppercase; }
.cart-code-row .button { padding-top: .45rem; padding-bottom: .45rem; }
.cart-code-applied { margin: 0; }
.cart-totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 1.5rem 0; }
.cart-totals dd { margin: 0; text-align: right; }
.cart-total { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; border-top: var(--hairline); padding-top: .4rem; }
.button-checkout { width: 100%; font-size: 1.1rem; padding: .9rem; }
@media (min-width: 640px) {
    .cart-line { grid-template-columns: 1fr auto 6rem; }
    .button-checkout { width: auto; }
}

/* Thank-you page */
.thanks { padding: 2rem 1rem 2.5rem; }
.thanks-head { text-align: center; }
.thanks-head .divider { margin-left: auto; }
.thanks-card {
    background: var(--white); border: var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow);
    outline: 1px solid rgba(184, 149, 90, .25); outline-offset: -6px;
    padding: 1.25rem 1.4rem .8rem; margin: 1.25rem 0;
}
.thanks-card h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.thanks-items { list-style: none; margin: 0; padding: 0; }
.thanks-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--linen-deep); }
.thanks-qty { color: var(--rose); font-weight: 600; }
.thanks-totals { margin: 1rem 0 .4rem; }
.thanks-address { font-style: normal; line-height: 1.6; }
.thanks-grid { display: grid; gap: 0 1.25rem; }
.thanks-gift { background: linear-gradient(180deg, var(--white), var(--blush-soft)); }
.gift-quote { font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.thanks-keep { text-align: center; }
@media (min-width: 640px) {
    .thanks-grid { grid-template-columns: 1fr 1fr; }
}
.candle-art .art-cube        { fill: #F6E4E2; stroke: var(--peony); stroke-width: .6; }
/* Draft policies: decisions still to make */
mark.todo { background: var(--butter); color: var(--charcoal); padding: 0 .25em; border-radius: 3px; border-bottom: 1px dashed var(--gold); }
.policies h3 { font-size: 1.25rem; margin-top: 1.25rem; }
.policies ul { padding-left: 1.2rem; }
.policies li { margin-bottom: .5rem; }
.policies li::marker { color: var(--gold); }
/* Privacy Policy tables: scroll sideways on narrow phones instead of widening the page */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.25rem; -webkit-overflow-scrolling: touch; }
.policy-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; background: var(--white); }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: .55rem .7rem; border: 1px solid var(--blush); }
.policy-table th { font-family: var(--serif); font-size: 1.05rem; background: var(--blush-soft); }
/* Phones: each row becomes a small card (first column as its heading, the others labelled underneath), nothing cut off */
@media (max-width: 600px) {
    .table-scroll { overflow-x: visible; }
    .policy-table { min-width: 0; border: 0; background: none; }
    .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; width: auto; }
    .policy-table tr { background: var(--white); border: 1px solid var(--blush); border-radius: 8px; margin: 0 0 .75rem; padding: .35rem 0; }
    .policy-table td { border: 0; padding: .3rem .8rem; }
    .policy-table td:first-child { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--blush); padding-bottom: .45rem; margin-bottom: .2rem; }
    .policy-table td[data-label]:not(:first-child)::before {
        content: attr(data-label); display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal-soft);
    }
}
.privacy ol { padding-left: 1.4rem; }
.privacy ol li { margin-bottom: .5rem; }

/* Product photo gallery: swipe on phones (scroll snap), buttons and dots everywhere (gallery.js) */
.product-media { min-width: 0; }
.gallery { position: relative; }
.gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    list-style: none; margin: 0; padding: 0; border-radius: 10px; scrollbar-width: none; position: relative;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-slide .product-photo { display: block; }
.gallery-slide .product-photo--whole { object-fit: contain; object-position: 50% 50%; background: var(--cream-deep); }   /* mood boards: whole picture, cream space around */
.gallery-btn {
    position: absolute; top: calc(50% - 2.4rem); width: 44px; height: 44px; border-radius: 50%; padding: 0 0 .2rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--rose);
    background: rgba(255, 252, 248, .88); border: 1px solid var(--gold-soft); box-shadow: 0 2px 6px rgba(60, 40, 20, .18);
}
.gallery-btn[hidden] { display: none; }
.gallery-btn:hover { background: var(--white); color: var(--rose-deep); }
.gallery-btn:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }
.gallery-prev { left: .5rem; }
.gallery-next { right: .5rem; }
.gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; margin: .35rem 0 0; }
.gallery-dot { width: 28px; height: 32px; display: flex; align-items: center; justify-content: center; }
.gallery-dot::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent;
    transition: background .2s ease, transform .2s ease;
}
.gallery-dot[aria-current="true"]::before { background: var(--rose); border-color: var(--rose); transform: scale(1.2); }
.gallery-dot:hover::before { background: var(--blush); }
.gallery-dot[aria-current="true"]:hover::before { background: var(--rose); }
.gallery-dot:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; border-radius: 6px; }
/* Phones swipe; the buttons are for mouse and keyboard */
@media (hover: none) and (pointer: coarse) {
    .gallery-btn { display: none; }
}

/* ------------------------------------------------------------ Email sign-up (gift guide, footer, pop-up) */

.newsletter-form { margin: 1rem auto 0; max-width: 34rem; text-align: left; }
.newsletter-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter-row input[type="email"] {
    flex: 1 1 14rem; min-width: 0; min-height: 48px; font: inherit; padding: .6rem .8rem;
    border: 1.5px solid var(--linen-deep); border-radius: 10px; background: var(--white); color: var(--charcoal);
}
.newsletter-row input[aria-invalid="true"] { border-color: var(--rose); }
.newsletter-row .button { flex: 0 0 auto; cursor: pointer; font-size: 1rem; }
.newsletter-fine { font-size: .88rem; color: var(--charcoal-soft); margin: .5rem 0 0; }
.form-error { color: var(--rose-deep); font-weight: 600; margin: .5rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.page-gift-guide #main { background: none; border: 0; box-shadow: none; }
.gift-guide .hero-frame { max-width: 720px; }
.gift-guide .lede { max-width: 32rem; margin-left: auto; margin-right: auto; }
.gift-guide-tagline { margin: 1.5rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--charcoal-soft); }

.newsletter-page { padding-bottom: 2.5rem; }
.newsletter-page .newsletter-form { margin-left: 0; }
.newsletter-question { margin-top: 1.25rem; scroll-margin-top: 1rem; }
.newsletter-question p { margin-bottom: .4rem; }
.answer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.answer {
    display: inline-block; padding: .35rem 1rem; border: 1px solid var(--gold); border-radius: 999px;
    background: var(--blush-soft); color: var(--rose-deep); text-decoration: none;
}
.answer:hover, .answer.is-chosen { background: var(--blush); color: var(--rose-deep); }
.answer.is-chosen { font-weight: 700; }

/* Our Story: the two free downloads (tick one or both) */
.story-downloads { padding-bottom: 3rem; scroll-margin-top: 1rem; }
.story-downloads-card {
    padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--gold); border-radius: 18px;
    outline: 1px solid var(--gold-soft); outline-offset: -7px; background: var(--white); text-align: center;
}
.story-downloads-card h2 { margin: 0 0 .4rem; }
.story-downloads-lede { max-width: 32rem; margin: 0 auto .5rem; }
.story-doc-choices { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.story-doc-choices legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.newsletter-form label.story-doc {
    display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; margin: 0 0 .6rem; padding: .8rem .9rem;
    border: 1.5px solid var(--linen-deep); border-radius: 12px; background: var(--blush-soft); cursor: pointer;
}
.story-doc:has(input:checked) { border-color: var(--rose); background: var(--blush); }
.story-doc input { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--rose); }
.story-doc-text { display: flex; flex-direction: column; gap: .15rem; }
.story-doc-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--charcoal); }
.story-doc-blurb { font-size: .95rem; color: var(--charcoal-soft); }
.story-download-list { list-style: none; margin: 1.25rem 0; padding: 0; }
.story-download-list li { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 1px solid var(--linen-deep); border-radius: 12px; background: var(--white); }
.story-download-list p { margin: 0 0 .4rem; }
.story-download-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
@media (max-width: 480px) {
    .story-downloads-card { padding: 1.4rem 1rem 1.2rem; }
    .story-downloads .newsletter-row .button { flex: 1 1 100%; }
}

.footer-signup { max-width: 36rem; margin: 0 auto 1.75rem; padding-bottom: 1.5rem; border-bottom: var(--hairline); }
.footer-signup h2 { font-size: 1.6rem; margin-bottom: .25rem; }
.footer-signup p { margin-bottom: .25rem; }
.site-footer .newsletter-form { margin-top: .5rem; }
.site-footer .newsletter-fine { color: #5E4E47; }

.newsletter-popup {
    width: min(92vw, 30rem); padding: 1.75rem 1.25rem 1.25rem; border: 2px solid var(--gold); border-radius: 18px;
    outline: 1px solid var(--gold-soft); outline-offset: -8px; background: var(--white); color: var(--charcoal);
    box-shadow: var(--shadow); text-align: center;
}
.newsletter-popup::backdrop { background: rgba(59, 48, 43, .45); }
.newsletter-popup h2 { font-size: 1.8rem; }
.newsletter-popup-close { position: absolute; top: .4rem; right: .8rem; margin: 0; }
.newsletter-popup-close .link-button { font-size: 1.3rem; text-decoration: none; color: var(--charcoal-soft); min-width: 44px; min-height: 44px; }

/* Free-shipping ribbon across the top of public pages (Settings::shippingOffer) */
.ship-ribbon {
    margin: 0; padding: .45rem 1rem; text-align: center; line-height: 1.35;
    background: var(--rose); color: var(--white); font-family: var(--body); font-size: .92rem; letter-spacing: .02em;
    border-bottom: 2px solid var(--gold-soft);
}
.ship-ribbon strong { font-weight: 600; }
@media (max-width: 420px) {
    .ship-ribbon { font-size: .85rem; }
    .ship-ribbon-more { display: block; font-size: .8rem; opacity: .95; }
    .ship-ribbon-sep { display: none; }
}
.cart-free-ship { margin: 1.25rem 0 -.5rem; padding: .55rem .9rem; border-radius: 8px; background: #E9EEDF; border-left: 4px solid var(--sage-deep); }

/* Shop cards: Add to cart / Notify me (partials/product-card.php) */
.product-card { scroll-margin-top: 1.5rem; }
.card-cart { margin: .35rem 0 0; }
.card-cart .button { padding: .5rem 1.1rem; font-size: .95rem; cursor: pointer; width: 100%; max-width: 12rem; }
.card-added { margin: .3rem 0 0; font-size: .9rem; font-weight: 600; color: var(--sage-deep); }
.card-added a { font-weight: 600; margin-left: .25rem; }
.card-notify { font-size: .92rem; font-weight: 600; }

/* "Email me when it's back" on sold-out product pages (partials/back-in-stock-form.php) */
.back-in-stock { background: var(--blush-soft); border: 1px solid var(--blush); border-radius: 10px; padding: .9rem 1rem 1rem; margin: 0 0 1.25rem; }
.back-in-stock h2 { font-size: 1.3rem; margin: 0 0 .35rem; }
.back-in-stock label { display: block; margin-bottom: .45rem; }
.back-in-stock .notice { margin: 0; background: var(--white); }

/* Verified star reviews (partials/reviews.php, partials/review-form.php, review.php) */
.reviews { padding-bottom: 3rem; scroll-margin-top: 1rem; }
.reviews-panel { display: grid; gap: 1.25rem; max-width: 46rem; }
.rating-big { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0 0 .5rem; }
.rating-breakdown { border-collapse: collapse; font-size: .95rem; }
.rating-breakdown th { font-weight: 400; text-align: left; padding: .15rem .75rem .15rem 0; white-space: nowrap; color: var(--charcoal-soft); }
.rating-breakdown td { padding: .15rem 0; }
.rating-breakdown td.num { padding-left: .6rem; text-align: right; color: var(--charcoal-soft); min-width: 2ch; }
.rating-breakdown progress {
    display: block; width: min(14rem, 45vw); height: .7rem; border: 1px solid var(--linen-deep); border-radius: 999px;
    background: var(--cream-deep); overflow: hidden; -webkit-appearance: none; appearance: none;
}
.rating-breakdown progress::-webkit-progress-bar { background: var(--cream-deep); }
.rating-breakdown progress::-webkit-progress-value { background: var(--gold); }
.rating-breakdown progress::-moz-progress-bar { background: var(--gold); }
.review-summary { background: var(--blush-soft); border: 1px solid var(--blush); border-radius: 10px; padding: .9rem 1rem; }
.review-summary h3 { margin: 0 0 .4rem; }
.review-summary p { margin: 0; }
.review-summary .review-summary-note { margin-top: .5rem; font-size: .88rem; color: var(--charcoal-soft); font-style: italic; }
.review-details { border: var(--hairline); border-radius: 10px; background: var(--white); padding: .2rem 1rem; }
.review-details[open] { padding-bottom: 1rem; }
.review-details > summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; padding: .55rem 0; color: var(--rose); }
.review-form { display: grid; gap: .45rem; }
.review-form label { font-weight: 600; }
.review-form input[type="email"], .review-form textarea, .review-form select {
    font: inherit; width: 100%; padding: .6rem .8rem; border: 1.5px solid var(--linen-deep); border-radius: 10px;
    background: var(--white); color: var(--charcoal); min-height: 48px;
}
.review-form textarea { resize: vertical; min-height: 7rem; }
.review-form .button { justify-self: start; margin-top: .5rem; cursor: pointer; }
.field-help { font-size: .88rem; color: var(--charcoal-soft); margin: 0 0 .6rem; }
.star-input { border: 0; padding: 0; margin: 0 0 .6rem; }
.star-input legend { font-weight: 600; padding: 0; margin-bottom: .3rem; }
.star-input-row { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input-row input, .star-zero input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input-row label { font-size: 2.1rem; line-height: 1; color: var(--cream-deep); -webkit-text-stroke: 1.2px var(--wood); cursor: pointer; padding: .1rem .15rem; font-weight: 400; }
.star-input-row label:hover, .star-input-row label:hover ~ label,
.star-input-row input:checked ~ label { color: var(--gold); }
.star-input-row input:focus-visible + label, .star-zero input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }
.star-zero { display: inline-block; margin-left: .75rem; vertical-align: middle; }
.star-zero label {
    display: inline-block; font-size: .9rem; font-weight: 400; padding: .3rem .7rem; border: 1px solid var(--linen-deep);
    border-radius: 999px; cursor: pointer; color: var(--charcoal-soft); background: var(--white);
}
.star-zero input:checked + label { border-color: var(--rose); color: var(--rose-deep); background: var(--blush-soft); font-weight: 600; }
.card-rating { font-size: .88rem; color: var(--charcoal-soft); }
.card-rating .star { color: var(--gold); }
.review-page { max-width: 40rem; padding-bottom: 3rem; }
