/*
Theme Name: Acorn Witchcrafts
Author: Charles Grey Ventures Limited
Description: A grounded, editorial WooCommerce theme for Acorn Witchcrafts, with warm paper textures, elderberry tones and restrained folk-practice details.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acorn-witchcrafts
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --hearth: #241f1a;
  --elderberry: #3d263f;
  --elderberry-deep: #2b192d;
  --heather: #755b78;
  --lavender: #a995a8;
  --bone: #f4f0e8;
  --parchment: #d8ccb8;
  --copper: #9a6847;
  --ink-soft: #5e544d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1180px, calc(100% - 3rem));
  --shadow: 0 24px 60px rgb(36 31 26 / 14%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--hearth); background: var(--bone); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .19; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .7rem 1rem; background: var(--bone); color: var(--elderberry); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(1.5rem, calc((100vw - 1320px)/2)); color: var(--bone); border-bottom: 1px solid rgb(244 240 232 / 16%); transition: background .35s ease, height .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled { height: 68px; background: rgb(43 25 45 / 96%); box-shadow: 0 6px 30px rgb(20 12 21 / 24%); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-family: var(--serif); text-transform: uppercase; letter-spacing: .18em; }
.brand--small { justify-self: start; font-size: .78rem; }
.brand__mark { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { font-family: var(--serif); font-size: .78rem; letter-spacing: .07em; }
.site-nav .menu { display: flex; align-items: center; gap: 2.3rem; margin: 0; padding: 0; list-style: none; }
.site-nav .menu-item { position: relative; }
.site-nav .sub-menu { position: absolute; top: calc(100% + .25rem); left: -.9rem; min-width: 210px; margin: 0; padding: .65rem .9rem; background: var(--elderberry-deep); box-shadow: var(--shadow); list-style: none; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s ease; }
.site-nav .sub-menu a { padding: .55rem 0; }
.site-nav .menu-item:hover > .sub-menu,
.site-nav .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav a { position: relative; display: block; padding: .5rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px; background: var(--copper); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .55rem; }
.icon-button, .basket, .nav-toggle { border: 0; background: transparent; cursor: pointer; }
.icon-button, .basket { position: relative; width: 40px; height: 40px; padding: 9px; color: inherit; }
.icon-button svg, .basket svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.basket__count { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--copper); color: white; font: 600 .65rem/1 var(--sans); }
.nav-toggle { display: none; }

.hero { position: relative; min-height: 760px; height: 100svh; display: grid; place-items: center; isolation: isolate; color: var(--bone); background: var(--hearth) url("assets/acorn-worktable.png") center / cover no-repeat; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(26 16 20 / 64%), rgb(36 21 27 / 32%) 55%, rgb(21 15 13 / 44%)), linear-gradient(0deg, rgb(19 13 12 / 38%), transparent 60%); }
.hero__content { max-width: 760px; padding: 7rem 1.5rem 4rem; text-align: center; text-shadow: 0 3px 28px rgb(0 0 0 / 50%); }
.hero__mark { width: 148px; height: 106px; margin-bottom: .4rem; fill: none; stroke: var(--parchment); stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 24%)); }
.eyebrow { margin: 0 0 1rem; color: var(--copper); font-size: .69rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.hero .eyebrow { color: var(--parchment); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 7.8vw, 7.4rem); font-weight: 400; line-height: .84; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 span { display: block; margin-bottom: .18em; font-size: .72em; letter-spacing: .34em; transform: translateX(.18em); }
.hero__tagline { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 2rem 0 2.4rem; font-family: var(--serif); font-size: .84rem; letter-spacing: .3em; text-transform: uppercase; }
.hero__tagline::before, .hero__tagline::after { content: ""; width: 52px; height: 1px; background: var(--copper); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .9rem 1.5rem; border: 1px solid transparent; cursor: pointer; font-size: .69rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--light { background: var(--bone); color: var(--elderberry); box-shadow: 0 10px 30px rgb(0 0 0 / 15%); text-shadow: none; }
.button--light:hover { background: white; }
.button--dark { background: var(--elderberry); color: var(--bone); }
.button--dark:hover { background: var(--heather); }
.hero__scroll { position: absolute; right: 2rem; bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; font-size: .61rem; letter-spacing: .22em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--parchment), transparent); }

.section { width: var(--page); margin-inline: auto; padding-block: clamp(5rem, 9vw, 8.5rem); }
.section-heading { max-width: 720px; margin: 0 auto clamp(2.6rem, 5vw, 4.6rem); text-align: center; }
.section-heading h2, .story h2, .values h2, .newsletter h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.section-heading > p:last-child { max-width: 620px; margin: 1.4rem auto 0; color: var(--ink-soft); }
.section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 3rem; text-align: left; }
.section-heading--row > p { max-width: 420px; margin: 0 0 .4rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-card { position: relative; isolation: isolate; min-height: 460px; overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: 2rem; color: var(--bone); background-image: linear-gradient(0deg, rgb(25 17 14 / 78%), transparent 64%), url("assets/acorn-worktable.png"); background-size: auto, 300% 100%; box-shadow: var(--shadow); transition: transform .45s ease, box-shadow .45s ease; }
.category-card::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgb(244 240 232 / 27%); pointer-events: none; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 32px 70px rgb(36 31 26 / 22%); }
.category-card--botanicals { background-position: center, left center; }
.category-card--candles { background-position: center, center center; }
.category-card--tools { background-position: center, right center; }
.category-card__number { position: absolute; top: 1.8rem; right: 1.8rem; font-family: var(--serif); font-size: .72rem; letter-spacing: .15em; opacity: .75; }
.category-card__label { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.6rem); letter-spacing: .06em; }
.category-card__link { margin-top: .6rem; font-size: .65rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.category-card__link i { display: inline-block; margin-left: .4rem; font-style: normal; transition: transform .2s ease; }
.category-card:hover .category-card__link i { transform: translateX(5px); }

.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); min-height: 720px; background: var(--elderberry); color: var(--bone); }
.story__image { min-height: 650px; background: url("assets/acorn-worktable.png") 14% center / 180% auto no-repeat; }
.story__content { align-self: center; max-width: 630px; padding: clamp(4rem, 8vw, 8rem); }
.story__content .eyebrow { color: var(--parchment); }
.story__lead { margin: 2rem 0 1rem; font-family: var(--serif); font-size: 1.24rem; line-height: 1.55; }
.story__content > p:not(.eyebrow) { color: rgb(244 240 232 / 79%); }
.text-link { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.25rem; padding-bottom: .25rem; border-bottom: 1px solid var(--copper); color: var(--bone); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.product-card { background: #eee7dc; border: 1px solid rgb(61 38 63 / 10%); transition: transform .35s ease, box-shadow .35s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__art { position: relative; display: grid; place-items: center; aspect-ratio: 1.08; overflow: hidden; }
.product-card__art::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; filter: blur(2px); }
.product-card__art svg { position: relative; z-index: 1; width: 61%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 14px 16px rgb(36 31 26 / 14%)); }
.product-card__art--markers { color: var(--elderberry); background: linear-gradient(145deg, #d9cfbf, #f3eee6); }
.product-card__art--markers::before { background: rgb(117 91 120 / 18%); }
.product-card__art--runes { color: var(--bone); background: linear-gradient(145deg, var(--heather), var(--elderberry)); }
.product-card__art--runes::before { background: rgb(244 240 232 / 8%); }
.product-card__art--altar { color: var(--hearth); background: linear-gradient(145deg, #c9ad91, var(--parchment)); }
.product-card__art--altar::before { background: rgb(154 104 71 / 16%); }
.product-card__details { padding: 1.6rem 1.6rem 1.8rem; }
.product-card__type { margin: 0 0 .35rem; color: var(--copper); font-size: .64rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.product-card__details > p:not(.product-card__type) { min-height: 3.3em; margin: .6rem 0 1.35rem; color: var(--ink-soft); font-size: .88rem; }
.product-card .button { width: 100%; }

.values { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 9vw, 9rem); align-items: center; padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 1180px)/2)); background: var(--parchment); }
.values__mark { width: 90px; height: 80px; margin-bottom: 1.5rem; fill: none; stroke: var(--copper); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.values__list { border-top: 1px solid rgb(36 31 26 / 18%); }
.value { display: grid; grid-template-columns: 50px 1fr 1.25fr; gap: 1rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid rgb(36 31 26 / 18%); }
.value > span { color: var(--copper); font-family: var(--serif); font-size: .8rem; }
.value h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.value p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.note-card { padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid rgb(61 38 63 / 15%); background: rgb(255 255 255 / 28%); }
.note-card__meta { margin: 0; color: var(--copper); font-size: .63rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.note-card h3 { max-width: 540px; margin: 1rem 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.15; }
.note-card > p:not(.note-card__meta) { color: var(--ink-soft); }
.note-card a { display: inline-block; margin-top: .8rem; color: var(--elderberry); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.note-card a span { margin-left: .45rem; }

.newsletter { min-height: 560px; display: grid; place-items: center; padding: 5rem 1.5rem; color: var(--bone); text-align: center; background: linear-gradient(rgb(43 25 45 / 89%), rgb(43 25 45 / 94%)), url("assets/acorn-worktable.png") center / cover fixed; }
.newsletter__content { width: min(760px, 100%); }
.newsletter .eyebrow { color: var(--parchment); }
.newsletter p:not(.eyebrow):not(.form-message) { max-width: 590px; margin: 1.3rem auto 2.1rem; color: rgb(244 240 232 / 78%); }
.signup-form { display: grid; grid-template-columns: 1fr auto; max-width: 580px; margin: 0 auto; border-bottom: 1px solid var(--parchment); }
.signup-form input { min-width: 0; padding: 1rem .25rem; border: 0; outline: 0; color: var(--bone); background: transparent; }
.signup-form input::placeholder { color: rgb(244 240 232 / 56%); }
.signup-form button { border: 0; background: transparent; color: var(--bone); cursor: pointer; font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.form-message { min-height: 1.6em; margin: .8rem 0 0; color: var(--parchment); font-size: .82rem; }

.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 5rem max(1.5rem, calc((100vw - 1180px)/2)) 2rem; background: var(--hearth); color: var(--bone); }
.site-footer__brand .brand__mark { width: 64px; height: 56px; color: var(--parchment); }
.site-footer__name { margin: .8rem 0 .15rem; font-family: var(--serif); font-size: 1.4rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__brand > p:last-child { margin: 0; color: var(--lavender); font-family: var(--serif); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__links { display: flex; flex-direction: column; align-items: start; gap: .55rem; font-size: .85rem; }
.site-footer__links .footer-menu,
.site-footer__links .menu { display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer__links h2 { margin: 0 0 .7rem; color: var(--copper); font-size: .65rem; letter-spacing: .17em; text-transform: uppercase; }
.site-footer__links a { color: rgb(244 240 232 / 74%); }
.site-footer__links a:hover { color: white; }
.site-footer__legal { grid-column: 1 / -1; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(244 240 232 / 12%); color: rgb(244 240 232 / 48%); font-size: .73rem; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; max-width: calc(100% - 2.5rem); padding: .9rem 1.2rem; background: var(--elderberry); color: var(--bone); box-shadow: var(--shadow); font-size: .85rem; opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.category-grid .reveal:nth-child(2), .product-grid .reveal:nth-child(2) { transition-delay: .1s; }
.category-grid .reveal:nth-child(3), .product-grid .reveal:nth-child(3) { transition-delay: .2s; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }

@media (max-width: 900px) {
  :root { --page: min(100% - 2rem, 720px); }
  .site-header { grid-template-columns: 1fr auto auto; padding-inline: 1rem; }
  .brand--small span { display: none; }
  .nav-toggle { order: 3; display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; padding: 9px; color: inherit; }
  .nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; padding: .75rem 1rem 1.2rem; background: rgb(43 25 45 / 98%); box-shadow: 0 20px 30px rgb(20 12 21 / 22%); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s ease; }
  .site-nav .menu { display: grid; gap: 0; }
  .site-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 1rem; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid rgb(244 240 232 / 9%); }
  .header-actions { margin-left: auto; }
  .hero { min-height: 680px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .hero__scroll { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 360px; background-size: cover, cover; }
  .category-card--botanicals { background-position: center, 8% center; }
  .category-card--candles { background-position: center, center; }
  .category-card--tools { background-position: center, 84% center; }
  .story { grid-template-columns: 1fr; }
  .story__image { min-height: 480px; background-size: cover; }
  .story__content { max-width: 720px; padding: 4rem max(1.5rem, calc((100vw - 720px)/2)); }
  .section-heading--row { align-items: start; flex-direction: column; gap: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: .9fr 1.1fr; }
  .product-card__art { aspect-ratio: auto; min-height: 310px; }
  .product-card__details { align-self: center; }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .icon-button { display: none; }
  .hero { min-height: 650px; background-position: 53% center; }
  .hero__content { padding-inline: 1rem; }
  .hero__mark { width: 112px; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); letter-spacing: .1em; }
  .hero h1 span { letter-spacing: .22em; }
  .hero__tagline { gap: .65rem; font-size: .7rem; letter-spacing: .22em; }
  .hero__tagline::before, .hero__tagline::after { width: 28px; }
  .category-card { min-height: 310px; }
  .story__image { min-height: 360px; }
  .product-card { display: block; }
  .product-card__art { aspect-ratio: 1.25; min-height: auto; }
  .value { grid-template-columns: 34px 1fr; }
  .value p { grid-column: 2; }
  .notes-grid { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; border: 0; gap: .8rem; }
  .signup-form input { border-bottom: 1px solid var(--parchment); text-align: center; }
  .signup-form button { padding: 1rem; background: var(--bone); color: var(--elderberry); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .newsletter { background-attachment: scroll; }
}

/* WordPress and WooCommerce integration */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 180px; max-height: 52px; }
.admin-bar .site-header { top: 32px; }
.site-main { min-height: 60vh; }
.inner-page .site-header,
.blog .site-header,
.single .site-header,
.archive .site-header,
.search .site-header,
.error404 .site-header,
.woocommerce-page .site-header { background: rgb(43 25 45 / 97%); box-shadow: 0 6px 30px rgb(20 12 21 / 18%); }
.content-shell,
.acorn-shop-shell { width: var(--page); margin-inline: auto; padding: 9.5rem 0 6rem; }
.content-shell--narrow { max-width: 820px; }
.entry-header { margin-bottom: 2.5rem; }
.entry-title,
.page-title { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; line-height: 1.05; }
.entry-meta { margin-top: .7rem; color: var(--copper); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1180px; }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry-content a:not(.button) { color: var(--elderberry); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: .18em; }
.post-card { padding: 2rem 0; border-bottom: 1px solid rgb(61 38 63 / 15%); }
.post-card h2 { margin: .35rem 0; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; line-height: 1.15; }
.post-card__image { display: block; margin-bottom: 1.5rem; overflow: hidden; }
.post-card__image img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; padding-inline: .7rem; border: 1px solid rgb(61 38 63 / 18%); }
.page-numbers.current { background: var(--elderberry); color: var(--bone); }

.header-search { position: fixed; inset: 78px 0 auto; z-index: 95; padding: 1.25rem max(1.5rem, calc((100vw - 1180px)/2)); background: var(--bone); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .2s ease; }
.header-search.is-open { opacity: 1; visibility: visible; transform: none; }
.header-search form { display: grid; grid-template-columns: 1fr auto; width: min(760px, 100%); margin-inline: auto; border-bottom: 1px solid var(--elderberry); }
.header-search input[type="search"] { min-width: 0; padding: .9rem .25rem; border: 0; outline: 0; background: transparent; }
.header-search button { border: 0; background: transparent; color: var(--elderberry); cursor: pointer; font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.hero__content { width: min(860px, 100%); }
.hero--compact { min-height: 620px; height: 78svh; }
.category-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.category-card__wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(25 17 14 / 80%), transparent 68%); }
.category-card:hover .category-card__image { transform: scale(1.035); }
.category-card--fallback { background-image: linear-gradient(0deg, rgb(25 17 14 / 78%), transparent 64%), url("assets/images/acorn-worktable.png"); }
.category-card--fallback:nth-child(1) { background-position: center, left center; }
.category-card--fallback:nth-child(2) { background-position: center, center; }
.category-card--fallback:nth-child(3) { background-position: center, right center; }
.story__image { background-image: url("assets/images/acorn-worktable.png"); }
.newsletter { background-image: linear-gradient(rgb(43 25 45 / 89%), rgb(43 25 45 / 94%)), url("assets/images/acorn-worktable.png"); }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin: 0 0 2rem; color: var(--ink-soft); font-size: .72rem; letter-spacing: .08em; }
.woocommerce .woocommerce-breadcrumb a { color: var(--elderberry); }
.woocommerce .woocommerce-result-count { color: var(--ink-soft); }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: .55rem 2.5rem .55rem .8rem; border: 1px solid rgb(61 38 63 / 22%); background: var(--bone); color: var(--hearth); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; margin: 2rem 0 0; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { float: none; width: auto; margin: 0; padding: 0 0 1.35rem; overflow: hidden; background: #eee7dc; border: 1px solid rgb(61 38 63 / 10%); transition: transform .35s ease, box-shadow .35s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { margin: 0; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 1.15rem 1.25rem .2rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.woocommerce ul.products li.product .price { padding: 0 1.25rem; color: var(--copper); font-weight: 700; }
.woocommerce ul.products li.product .button { width: calc(100% - 2.5rem); margin: .8rem 1.25rem 0; background: var(--elderberry); color: var(--bone); border-radius: 0; text-align: center; }
.woocommerce span.onsale { top: .8rem; left: .8rem; min-width: auto; min-height: auto; padding: .35rem .65rem; border-radius: 0; background: var(--copper); line-height: 1.2; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { margin-bottom: 4rem; }
.woocommerce div.product .product_title { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.05; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--copper); font-size: 1.35rem; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button { border-radius: 0; background: var(--elderberry); color: var(--bone); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--heather); color: white; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid rgb(61 38 63 / 18%); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; border: 0; border-radius: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--copper); background: transparent; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-top-color: var(--copper); background: #ebe3d8; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--copper); }
.woocommerce table.shop_table { border-color: rgb(61 38 63 / 16%); border-radius: 0; }
.woocommerce table.shop_table th { font-family: var(--serif); font-weight: 400; }
.woocommerce-cart table.cart img { width: 92px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single { min-height: 46px; padding: .65rem .75rem; border: 1px solid rgb(61 38 63 / 22%); border-radius: 0; background: rgb(255 255 255 / 44%); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5; padding: 0; }
.wc-block-components-button,
.wp-element-button { border-radius: 0; background: var(--elderberry); color: var(--bone); }

.comments-area { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgb(61 38 63 / 15%); }
.comments-title { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.comment-list { padding: 0; list-style: none; }
.comment-body { padding: 1.5rem 0; border-bottom: 1px solid rgb(61 38 63 / 12%); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: .8rem; border: 1px solid rgb(61 38 63 / 22%); background: white; }
.comment-form .submit { padding: .9rem 1.4rem; border: 0; background: var(--elderberry); color: var(--bone); cursor: pointer; }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering { float: none; }
  .header-search { top: 68px; }
}
