/* Butter Wynd Pottery – main stylesheet. Tokens first, then components. */

/* ---------- Design tokens: variants × light/dark ---------- */
:root, html[data-bw-variant="clay"] {
	--bw-bg:#FFF9F1; --bw-surface:#F6E9D8; --bw-ink:#2B2420; --bw-muted:#6B5D52;
	--bw-accent:#B2401B; --bw-accent2:#2F4A52; --bw-line:#2B2420; --bw-on-accent:#fff;
	--bw-wobble: 2.2% 3.6% 2.8% 4% / 3.6% 2.4% 4% 2.8%;
	--bw-hero-overlay: rgba(28,20,16,.52);
	--bw-grain: .05;
	color-scheme: light;
}
html[data-bw-variant="linen"] {
	--bw-bg:#F5F2E9; --bw-surface:#E7E2D1; --bw-ink:#27301F; --bw-muted:#5E6652;
	--bw-accent:#A5502A; --bw-accent2:#566B3A; --bw-line:#27301F;
	--bw-wobble: 6% 9% 7% 10% / 9% 6% 10% 7%;
	--bw-hero-overlay: rgba(30,36,22,.45);
}
html[data-bw-variant="kiln"] {
	--bw-bg:#1D1815; --bw-surface:#2A221D; --bw-ink:#F4E9DC; --bw-muted:#C2B2A1;
	--bw-accent:#E9733A; --bw-accent2:#8FB4BC; --bw-line:#F4E9DC; --bw-on-accent:#1D1815;
	--bw-wobble: 1.6% 3% 2% 3.4% / 3% 1.8% 3.4% 2%;
	--bw-hero-overlay: rgba(10,7,5,.55);
	--bw-grain: .08;
	color-scheme: dark;
}
/* Native dark mode: follows the system, manual switch wins. */
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]):not([data-bw-variant="kiln"]) {
		--bw-bg:#1D1815; --bw-surface:#2A221D; --bw-ink:#F4E9DC; --bw-muted:#C2B2A1;
		--bw-accent:#E9733A; --bw-accent2:#8FB4BC; --bw-line:#F4E9DC; --bw-on-accent:#1D1815; --bw-grain:.08; color-scheme: dark;
	}
}
html[data-theme="dark"]:not([data-bw-variant="kiln"]) {
	--bw-bg:#1D1815; --bw-surface:#2A221D; --bw-ink:#F4E9DC; --bw-muted:#C2B2A1;
	--bw-accent:#E9733A; --bw-accent2:#8FB4BC; --bw-line:#F4E9DC; --bw-on-accent:#1D1815; --bw-grain:.08; color-scheme: dark;
}
html[data-bw-variant="kiln"][data-theme="light"] {
	--bw-bg:#FFF9F1; --bw-surface:#F6E9D8; --bw-ink:#2B2420; --bw-muted:#6B5D52;
	--bw-accent:#B2401B; --bw-accent2:#2F4A52; --bw-line:#2B2420; --bw-on-accent:#fff; --bw-grain:.05; color-scheme: light;
}

/* cookie banner (toolkit module) picks these up */
:root { --cc-bg: var(--bw-surface); --cc-text: var(--bw-ink); --cc-accent: var(--bw-accent); --cc-border: var(--bw-line); --cc-radius: 6px; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
	background-color: var(--bw-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-blend-mode: multiply;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--bw-bg); opacity: calc(1 - var(--bw-grain) * 8); pointer-events: none; z-index: -1; }
::selection { background: var(--bw-accent); color: var(--bw-on-accent); }
:focus-visible { outline: 3px solid var(--bw-accent2); outline-offset: 3px; border-radius: 3px; }
img, video { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--bw-ink); color: var(--bw-bg); padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* Links: hand-drawn wavy underline */
a { text-decoration: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'%3E%3Cpath d='M0 3.5C3 1 5 1 8 3.2S13 5.6 16 3 21 .8 24 3' fill='none' stroke='%23B2401B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: 0 100%; background-size: 24px 6px; padding-bottom: 3px; text-underline-offset: 4px; }
a:hover { background-image: none; text-decoration: underline wavy; text-decoration-thickness: 1.5px; }
.wp-block-button__link, .bw-catcard, .bw-social a, .wp-block-site-logo a, .bw-header a, .bw-footer .bw-social a, .wp-block-navigation a, .bw-card h3 a, .wc-block-components-product-name, .wp-block-post-title a, .bw-theme-toggle { background-image: none; padding-bottom: 0; }

/* Headings: soft weight, gentle optical sizing */
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.005em; }
h1, h2 { font-style: normal; }
p { text-wrap: pretty; }
.has-text-align-center { text-align: center; }

/* ---------- Header ---------- */
.bw-header { text-align: center; padding-block: clamp(1rem, .5rem + 2vw, 2rem) .6rem; position: relative; z-index: 20; }
.bw-header__inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.bw-logo { display: block; width: min(24rem, 78vw); }
.bw-logo svg, .bw-logo img { display: block; width: 100%; height: auto; }
.bw-header .wp-block-navigation { font-family: var(--wp--preset--font-family--body); text-transform: uppercase; letter-spacing: .09em; font-size: .9375rem; }
.bw-header .wp-block-navigation-item__content { padding: .45rem .2rem; position: relative; color: var(--bw-ink); }
.bw-header .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M1 3.4C8 .8 14 5.4 22 3S36 1 44 3.4 55 4.4 59 2.6' fill='none' stroke='%23B2401B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.bw-header .wp-block-navigation-item__content:hover::after,
.bw-header .current-menu-item > .wp-block-navigation-item__content::after,
.bw-header .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.bw-header .wp-block-navigation__responsive-container-open, .bw-header .wp-block-navigation__responsive-container-close { color: var(--bw-ink); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--bw-bg) !important; color: var(--bw-ink) !important; }
.bw-theme-toggle { position: absolute; top: 1rem; right: clamp(.75rem, 2vw, 2rem); width: 2.75rem; height: 2.75rem; border: 2px solid var(--bw-ink); border-radius: var(--bw-wobble); background: var(--bw-bg); color: var(--bw-ink); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 2px 3px 0 var(--bw-ink); }
.bw-theme-toggle:hover { transform: rotate(-4deg); }
.bw-theme-toggle .bw-icon-moon { display: none; }
html[data-theme="dark"] .bw-theme-toggle .bw-icon-sun, html[data-bw-variant="kiln"]:not([data-theme="light"]) .bw-theme-toggle .bw-icon-sun { display: none; }
html[data-theme="dark"] .bw-theme-toggle .bw-icon-moon, html[data-bw-variant="kiln"]:not([data-theme="light"]) .bw-theme-toggle .bw-icon-moon { display: inline; }

/* ---------- Hero video ---------- */
.bw-hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(18rem, 42vw, 34rem); display: grid; place-items: center; text-align: center; overflow: hidden; margin-block: 0 !important; clip-path: polygon(0 0, 100% 0, 100% 94%, 97% 96.5%, 93% 94.8%, 88% 97.3%, 82% 95%, 75% 97.5%, 68% 95.2%, 60% 97%, 52% 95.4%, 44% 97.6%, 36% 95.1%, 28% 97.2%, 20% 95.3%, 12% 97.4%, 6% 95.4%, 0 97%); }
.bw-hero video, .bw-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bw-hero::before { content: ""; position: absolute; inset: 0; background: var(--bw-hero-overlay); z-index: -1; }
.bw-hero__inner { padding: clamp(2rem, 6vw, 5rem) 1.25rem; max-width: 52rem; }
.bw-hero h1 { color: #fff; margin: 0 0 1.4rem; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .bw-hero video { display: none; } }

/* ---------- Buttons: hand-drawn offset ---------- */
.wp-block-button__link, .wc-block-components-button, .woocommerce a.button, .woocommerce button.button, .bw-btn, button.single_add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border: 2px solid var(--bw-ink); border-radius: var(--bw-wobble); background: var(--bw-accent); color: var(--bw-on-accent); box-shadow: 3px 4px 0 var(--bw-ink);
	text-transform: uppercase; letter-spacing: .08em; padding: .8rem 1.5rem; font-size: .9375rem; font-weight: 500; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; display: inline-block;
}
.wp-block-button__link:hover, .wc-block-components-button:hover, .bw-btn:hover { transform: translate(-1px, -2px) rotate(-.7deg); box-shadow: 5px 6px 0 var(--bw-ink); color: var(--bw-on-accent); }
.wp-block-button.is-style-outline .wp-block-button__link, .bw-btn--ghost { background: transparent; color: var(--bw-ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--bw-ink); }
.bw-hero .wp-block-button__link { background: #fff; color: #2B2420; border-color: #2B2420; box-shadow: 3px 4px 0 #2B2420; }

/* ---------- Images with hand-cut edges ---------- */
.wp-block-image img, .bw-card__img img, .bw-catcard__img img, .wp-block-post-featured-image img, .woocommerce-product-gallery img, .wc-block-components-product-image img {
	border-radius: var(--bw-wobble);
}
.bw-wobble { border-radius: var(--bw-wobble); }
.wp-block-image figcaption { font-size: .9375rem; color: var(--bw-muted); font-style: italic; font-family: var(--wp--preset--font-family--heading); text-align: center; }

/* ---------- Sections and cards ---------- */
.bw-section-title { text-align: center; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2rem; position: relative; padding-bottom: 1.1rem; }
.bw-section-title::after { content: ""; display: block; width: 8rem; height: 8px; margin: .9rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M2 4.5C14 1 22 7 36 4s22-3 36-.5S100 7 118 3.5' fill='none' stroke='%23B2401B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.bw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); }
.bw-card { background: var(--bw-surface); border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); padding: var(--bw-card-pad, clamp(1.25rem, 1rem + 1vw, 1.75rem)); box-shadow: 4px 5px 0 var(--bw-line); display: flex; flex-direction: column; gap: .6rem; }
.bw-card:nth-child(even) { transform: rotate(.35deg); }
.bw-card:nth-child(3n) { transform: rotate(-.3deg); }
.bw-card h3 { margin: 0; font-size: 1.55rem; }
.bw-card p { margin: 0; }
.bw-card__img { margin: calc(var(--bw-card-pad, 1.5rem) * -1) calc(var(--bw-card-pad, 1.5rem) * -1) .4rem; overflow: hidden; border-radius: calc(var(--bw-card-pad, 1.5rem) * .35) calc(var(--bw-card-pad, 1.5rem) * .35) 0 0; }
.bw-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.bw-card__links { margin-top: auto !important; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 500; }
.bw-event__date { font-weight: 600; color: var(--bw-accent); letter-spacing: .04em; }
.bw-event__text p { margin: 0 0 .5rem; font-size: 1rem; }
.bw-card__buy { font-size: 1rem; }

/* Category cards (shop and sub-categories) */
.bw-catcards { list-style: none; padding: 0; margin: 0 auto 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: clamp(1rem, 1rem + 1vw, 1.75rem); }
.bw-catcard { display: block; position: relative; text-align: center; color: var(--bw-ink); }
.bw-catcard__img { display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); box-shadow: 4px 5px 0 var(--bw-line); background: var(--bw-surface); transition: transform .25s ease, box-shadow .25s ease; }
.bw-catcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .5s ease; }
.bw-catcard:hover .bw-catcard__img { transform: rotate(-1deg) translateY(-3px); box-shadow: 6px 8px 0 var(--bw-line); }
.bw-catcard:hover .bw-catcard__img img { transform: scale(1.04); }
.bw-catcards__ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--bw-surface), var(--bw-surface) 10px, var(--bw-bg) 10px, var(--bw-bg) 20px); }
.bw-catcard__name { display: block; margin-top: 1rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.45rem; line-height: 1.15; }
.bw-catcard::after { content: ""; display: block; width: 4.5rem; height: 6px; margin: .45rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M1 3.4C8 .8 14 5.4 22 3S36 1 44 3.4 55 4.4 59 2.6' fill='none' stroke='%23B2401B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* ---------- Footer ---------- */
.bw-footer { margin-top: clamp(3rem, 2rem + 5vw, 7rem); border-top: 0; background: var(--bw-surface); padding-block: clamp(2.2rem, 2rem + 2vw, 3.6rem) 1.6rem; text-align: center; position: relative; clip-path: polygon(0 3.5%, 3% 1.6%, 7% 3.2%, 12% .8%, 18% 3%, 25% 1%, 32% 3.2%, 40% .9%, 48% 3%, 56% 1%, 64% 3.1%, 72% .9%, 80% 3%, 88% 1.2%, 94% 3.2%, 100% 1.4%, 100% 100%, 0 100%); }
.bw-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.bw-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.2rem; }
.bw-social li { margin: 0; }
.bw-social a { display: block; transition: transform .25s ease; }
.bw-social a:hover { transform: rotate(-6deg) scale(1.08); }
.bw-social img { display: block; width: 3.25rem; height: 3.25rem; }
.bw-footer .bw-contact p { margin: 0; }
.bw-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; font-size: .9375rem; }
.bw-footer__legal { font-size: .9375rem; color: var(--bw-muted); margin: 0; }
.bw-signup-footer { max-width: 28rem; width: 100%; }

/* ---------- Notes to finalise ---------- */
.bw-note { background: #FFF1A8; color: #3b3200; border: 2px dashed #A98A00; border-radius: var(--bw-wobble); padding: .8rem 1rem; margin: 1rem 0; font-size: .9375rem; line-height: 1.55; }
.bw-note__tag { display: inline-block; background: #3b3200; color: #FFF1A8; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: .05rem .5rem; border-radius: 3px; margin-right: .4rem; }
html.bw-notes-off .bw-note { display: none; }
.bw-notes-toggle { position: fixed; right: 1rem; bottom: 1rem; z-index: 998; background: #FFF1A8; color: #3b3200; border: 2px solid #A98A00; border-radius: var(--bw-wobble); padding: .55rem .9rem; font-size: .9375rem; font-weight: 600; opacity: .88; cursor: pointer; min-height: 2.75rem; }
.bw-notes-toggle:hover { opacity: 1; }
html.bw-notes-off .bw-notes-toggle { background: var(--bw-surface); color: var(--bw-ink); border-color: var(--bw-line); }

/* ---------- Map lightbox ---------- */
.bw-lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1rem; background: rgba(20,14,10,.62); }
.bw-lb[hidden] { display: none; }
.bw-lb__box { width: min(24rem, 100%); background: var(--bw-bg); color: var(--bw-ink); border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); box-shadow: 6px 8px 0 var(--bw-line); padding: 1.6rem 1.4rem 1.4rem; text-align: center; position: relative; }
.bw-lb__title { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; margin: 0 0 1rem; }
.bw-lb__opts { display: grid; gap: .8rem; }
.bw-lb__opts a { display: block; text-align: center; border: 2px solid var(--bw-ink); border-radius: var(--bw-wobble); padding: .8rem 1rem; color: var(--bw-ink); background: var(--bw-surface); font-weight: 500; text-transform: none; background-image: none; }
.bw-lb__opts a:hover { background: var(--bw-accent); color: var(--bw-on-accent); }
.bw-lb__close { position: absolute; top: .4rem; right: .5rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--bw-ink); font-size: 1.7rem; cursor: pointer; line-height: 1; }

/* ---------- Pages ---------- */
.bw-page-title { text-align: center; }
.bw-prose h2 { margin-top: 2.4rem; }
.bw-prose h3 { margin-top: 1.8rem; }
.bw-prose ul, .bw-prose ol { padding-left: 1.3rem; }
.bw-prose table { border-collapse: collapse; width: 100%; }
.bw-prose th, .bw-prose td { border-bottom: 1.5px solid var(--bw-line); padding: .6rem .5rem; text-align: left; }
.wp-block-post-title { text-align: center; }
.wp-block-post-featured-image img { width: 100%; height: auto; }
.wp-block-query .wp-block-post { margin-bottom: 2rem; }
.bw-postcard { background: var(--bw-surface); border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); box-shadow: 4px 5px 0 var(--bw-line); padding: 0 0 1.2rem; overflow: hidden; height: 100%; }
.bw-postcard .wp-block-post-title, .bw-postcard .wp-block-post-excerpt, .bw-postcard .wp-block-post-date { padding-inline: 1.3rem; text-align: left; }
.bw-postcard .wp-block-post-title { font-size: 1.5rem; margin: .8rem 0 .3rem; }
.bw-postcard .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Forms (signup, search, account) ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
	font: inherit; color: var(--bw-ink); background: var(--bw-bg); border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); padding: .7rem .9rem; width: 100%; min-height: 2.9rem;
}
input::placeholder, textarea::placeholder { color: var(--bw-muted); opacity: 1; }
label { font-weight: 500; }

/* ---------- WooCommerce ---------- */
.wc-block-components-product-name, .wp-block-woocommerce-product-collection .wp-block-post-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; line-height: 1.2; text-align: center; margin-block: .6rem .2rem; text-decoration: none; color: var(--bw-ink); }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { text-align: center; font-weight: 600; color: var(--bw-accent); }
.wp-block-woocommerce-product-template li, .wc-block-product { background: var(--bw-surface); border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); box-shadow: 4px 5px 0 var(--bw-line); padding: clamp(.8rem, .6rem + .8vw, 1.2rem) !important; transition: transform .25s ease; }
.wp-block-woocommerce-product-template li:hover { transform: rotate(-.6deg) translateY(-3px); }
.wc-block-components-product-image, .wp-block-woocommerce-product-image { margin-bottom: .4rem; }
.wc-block-components-product-image img, .wp-block-woocommerce-product-image img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.wc-block-components-product-button .wp-block-button__link { font-size: .8125rem; padding: .6rem 1rem; }
.onsale, .wc-block-components-product-sale-badge { background: var(--bw-accent2) !important; color: #fff !important; border-radius: var(--bw-wobble) !important; border: 2px solid var(--bw-ink) !important; }
.woocommerce-breadcrumb, .wp-block-woocommerce-breadcrumbs { font-size: .9375rem; color: var(--bw-muted); }
.single-product .wp-block-woocommerce-product-image-gallery, .single-product .woocommerce-product-gallery { margin-bottom: 1.4rem; }
.single-product h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.wc-block-cart, .wc-block-checkout, .woocommerce-cart-form, .woocommerce-checkout { font-size: 1rem; }
.bw-trade-note { background: var(--bw-surface); border: 2px dashed var(--bw-accent2); border-radius: var(--bw-wobble); padding: .8rem 1rem; font-size: .9375rem; margin: 1rem 0; }
.wp-block-woocommerce-product-sku, .product_meta { font-size: .9375rem; color: var(--bw-muted); }

/* ---------- Style guide ---------- */
.bw-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.bw-swatch { border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); overflow: hidden; background: var(--bw-bg); }
.bw-swatch i { display: block; height: 4.5rem; }
.bw-swatch span { display: block; padding: .5rem .7rem; font-size: .9375rem; }

/* ---------- Mailing list ---------- */
.bw-signup { background: var(--bw-surface); border: 2px solid var(--bw-line); border-radius: var(--bw-wobble); box-shadow: 4px 5px 0 var(--bw-line); padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); text-align: center; }
.bw-signup h2 { margin: 0 0 .4rem; }

/* ---------- Additions ---------- */
.bw-lead { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); line-height: 1.4; text-wrap: balance; margin-top: clamp(1.8rem, 1rem + 3vw, 3.4rem); }
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .bw-theme-toggle .bw-icon-sun { display: none; }
	html:not([data-theme="light"]) .bw-theme-toggle .bw-icon-moon { display: inline; }
}
.bw-hero + .wp-block-group, main > .wp-block-group:first-child { scroll-margin-top: 1rem; }
#events { scroll-margin-top: 1.5rem; }
.bw-footer a { color: var(--bw-ink); }
.bw-footer .bw-footer__links a { text-decoration: underline; text-underline-offset: 4px; background-image: none; }
