/* Bog Wildlife - Aidean Ryan. Palette: peat, bog cotton, moss, heather, low sun. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }

:root {
  --peat: #2b2620;
  --peat-2: #3b342c;
  --night: #1b1815;
  --paper: #f7f3ea;
  --paper-2: #efe7d8;
  --white: #fffdf8;
  --line: #ddd2bf;
  --muted: #6c6255;
  --moss: #56633a;
  --heather: #7d5378;
  --sun: #d9973f;
  --sun-ink: #8f5714;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --content: 76rem;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(43, 38, 32, .08), 0 8px 24px rgba(43, 38, 32, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--peat); background: var(--paper); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; }
body.lightbox-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sun-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--heather); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.screen-reader-text, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { z-index: 100; width: auto; height: auto; clip: auto; top: 1rem; left: 1rem; padding: .6rem 1rem; color: #fff; background: var(--peat); }
.eyebrow { margin: 0 0 .9rem; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.small { font-size: .9rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; }

.staging-banner { padding: .45rem 1rem; text-align: center; font-size: .8rem; letter-spacing: .02em; color: var(--peat); background: var(--sun); }

/* ---------- Buttons ---------- */
.button, .wp-block-button__link { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; padding: .8rem 1.4rem; border: 1px solid var(--peat); border-radius: 999px; color: var(--peat); background: transparent; font: 500 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.button:hover, .button:focus-visible { color: var(--white); background: var(--peat); }
.button--solid { color: var(--white); background: var(--peat); }
.button--solid:hover { background: var(--heather); border-color: var(--heather); }
.button--light { color: var(--peat); background: var(--paper); border-color: var(--paper); }
.button--light:hover { color: var(--peat); background: var(--sun); border-color: var(--sun); }
.button--ghost-light { color: var(--paper); border-color: rgba(247, 243, 234, .6); }
.button--ghost-light:hover { color: var(--peat); background: var(--paper); }
.button--small { padding: .5rem .9rem; font-size: .7rem; }
.button--ghost { color: var(--paper); border-color: rgba(247, 243, 234, .5); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button .icon { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; gap: .4rem; align-items: center; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.link-arrow .icon { width: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 234, .94); border-bottom: 1px solid rgba(43, 38, 32, .1); backdrop-filter: blur(10px); }
.site-header__inner { display: flex; gap: 1.5rem; align-items: center; width: min(calc(100% - 2.5rem), var(--content)); min-height: 5rem; margin: auto; }
.brand { display: flex; gap: .8rem; align-items: center; margin-right: auto; color: var(--peat); text-decoration: none; }
.brand:hover { color: var(--peat); }
.brand__mark { width: 52px; height: 52px; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.75rem; font-weight: 600; letter-spacing: .01em; }
.brand__sub { margin-top: .3rem; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.site-menu { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.site-menu a { position: relative; color: var(--peat); font-size: .8rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; }
.site-menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 1px; background: var(--sun); transform: scaleX(0); transition: transform .2s; }
.site-menu a:hover::after, .site-menu .current-menu-item > a::after, .site-menu .current-menu-ancestor > a::after { transform: scaleX(1); }
.basket-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--peat); border-radius: 50%; }
.basket-link:hover { color: var(--peat); background: var(--paper-2); }
.basket-link__count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; color: var(--peat); background: var(--sun); font-size: .7rem; font-weight: 500; line-height: 19px; text-align: center; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 24px; height: 2px; margin: auto; background: var(--peat); transition: transform .2s; content: ''; }
.menu-toggle__bars::before { transform: translateY(-7px); }
.menu-toggle__bars::after { transform: translateY(5px); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(0) rotate(45deg); background: var(--peat); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-2px) rotate(-45deg); background: var(--peat); }

/* ---------- Layout ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section__inner, .page-wrap { width: min(calc(100% - 2.5rem), var(--content)); margin: 0 auto; }
.page-wrap { max-width: 48rem; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page-wrap--wide { max-width: var(--content); }
.section--dark, .dark-page { color: var(--paper); background: var(--night); }
.section--dark .eyebrow, .dark-page .eyebrow { color: var(--sun); }
.dark-page { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); min-height: 60vh; }
.dark-page a { color: var(--paper); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 2rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { margin: 0; }
.section--dark .link-arrow { color: var(--paper); }
.page-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 .4em; }
.page-lede { max-width: 42rem; font-size: 1.15rem; color: var(--muted); }
.page-head--dark .page-lede { color: rgba(247, 243, 234, .75); }
.page-lede p:last-child { margin: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--sun); font-family: var(--display); font-size: 1.6rem; font-style: italic; line-height: 1.35; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); color: var(--paper); background: var(--peat); }
.hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem); background: radial-gradient(120% 90% at 0% 100%, rgba(217, 151, 63, .22), transparent 60%), var(--peat); }
.hero .eyebrow { color: var(--sun); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .98; margin-bottom: .35em; }
.hero__lede { max-width: 30rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(247, 243, 234, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.hero__image { position: relative; margin: 0; background: var(--night); display: grid; place-items: center; overflow: hidden; }
/* Shown whole (never cropped) so the watermark always stays in view. */
.hero__image img { width: 100%; height: auto; max-width: 1000px; }
.hero__image figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .25rem .7rem; border-radius: 999px; color: var(--paper); background: rgba(27, 24, 21, .55); font-size: .75rem; letter-spacing: .06em; }

/* ---------- Intro (Home page content) ---------- */
.intro .entry-content { width: min(calc(100% - 2.5rem), var(--content)); margin: auto; }
.intro .wp-block-columns { gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.intro .wp-block-image img { box-shadow: var(--shadow); }
.intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.intro .lead { font-family: var(--display); font-size: 1.6rem; line-height: 1.35; }
.signature { font-family: var(--display); font-size: 1.8rem; font-style: italic; color: var(--sun-ink); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.gallery-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: var(--paper); text-decoration: none; background: var(--peat-2); }
.gallery-card__image { display: block; aspect-ratio: 4 / 3; }
.gallery-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery-card:hover .gallery-card__image img { transform: scale(1.04); }
.gallery-card__body { position: absolute; inset: auto 0 0; display: grid; padding: 3rem 1.25rem 1.1rem; background: linear-gradient(transparent, rgba(20, 17, 14, .85)); }
.gallery-card__title { font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.gallery-card__count { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.dark-page .gallery-card:hover, .section--dark .gallery-card:hover { color: var(--paper); }
.shop-tile { display: grid; gap: .5rem; color: var(--peat); text-decoration: none; }
.shop-tile__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.shop-tile__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.shop-tile:hover .shop-tile__image img { transform: scale(1.04); }
.shop-tile__title { margin-top: .6rem; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.shop-tile__text { color: var(--muted); }
.shop-tile:hover { color: var(--peat); }

/* ---------- Photo grid (galleries) ---------- */
.photo-grid { display: flex; flex-wrap: wrap; gap: clamp(.4rem, 1vw, .75rem); }
.photo-grid::after { content: ''; flex-grow: 999; }
.photo-grid__item { flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * 15rem); margin: 0; overflow: hidden; border-radius: 2px; background: var(--peat-2); }
.photo-grid__item a { display: block; height: 100%; }
.photo-grid__item img { width: 100%; height: 100%; aspect-ratio: var(--ar); object-fit: cover; transition: transform .5s ease, filter .3s; }
.photo-grid__item a:hover img, .photo-grid__item a:focus-visible img { transform: scale(1.03); filter: brightness(1.06); }
.gallery-foot { margin-top: 2rem; font-size: .9rem; color: rgba(247, 243, 234, .6); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; background: rgba(15, 13, 11, .96); }
.lightbox[hidden] { display: none; }
/* .button and .lightbox button set display, which otherwise overrides the hidden attribute (Buy a print / Custom order showed on book pages). */
.lightbox [hidden] { display: none !important; }
.lightbox__play { position: absolute; top: .75rem; left: .75rem; }
.lightbox.is-paused .slideshow__pause { width: 0; height: 0; border: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.lightbox__figure { grid-column: 2; display: grid; justify-items: center; gap: .9rem; margin: 0; max-height: 100vh; padding: 3.5rem 0 1.25rem; }
.lightbox__img { max-width: min(100%, 1000px); max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.lightbox__caption { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: center; width: min(100%, 1000px); color: var(--paper); font-size: .95rem; text-align: center; }
.lightbox__title { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.lightbox__desc { color: rgba(247, 243, 234, .7); }
.lightbox__actions { display: flex; gap: .5rem; }
.lightbox__actions .button--small { color: var(--peat); background: var(--paper); border-color: var(--paper); }
.lightbox__actions .button--ghost { color: var(--paper); background: transparent; border-color: rgba(247, 243, 234, .5); }
.lightbox__count { font-size: .75rem; letter-spacing: .14em; color: rgba(247, 243, 234, .55); }
.lightbox button { display: grid; place-items: center; width: 48px; height: 48px; margin: auto; padding: 0; border: 0; border-radius: 50%; color: var(--paper); background: rgba(247, 243, 234, .08); cursor: pointer; }
.lightbox button:hover { background: rgba(247, 243, 234, .2); }
.lightbox__close { position: absolute; top: .75rem; right: .75rem; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { visibility: hidden; }
.lightbox .icon { width: 26px; height: 26px; }

/* ---------- Book feature ---------- */
.book-feature { color: var(--paper); background: linear-gradient(135deg, var(--moss), #3c4627 70%); }
.book-feature__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.book-feature__cover { text-align: center; }
.book-feature__cover .book3d { width: min(100%, 24rem); }
.book-offer { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-left: 3px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); color: var(--peat); }
.book-offer__price { margin: 0 0 .25rem; font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--sun-ink); }
.book-offer ul { margin: 0 0 .4rem; padding-left: 1.2rem; }
.book-offer__small { margin: 0; font-size: .9rem; color: var(--muted); }
.book-feature .book-offer { background: rgba(255, 253, 248, .1); color: var(--paper); }
.book-feature .book-offer__price { color: var(--sun); }
.book-feature .book-offer__small { color: rgba(247, 243, 234, .75); }
.book-feature .price { margin-bottom: .6rem; }

/* ---------- 3D book (CSS only: cover image tilted, with spine shading and a block of pages) ---------- */
.book3d { display: inline-block; width: 100%; perspective: 1800px; vertical-align: middle; }
.book3d__inner { position: relative; display: block; transform: rotateY(-26deg); transform-style: preserve-3d; transition: transform .7s ease; }
.book3d:hover .book3d__inner { transform: rotateY(-12deg); }
.book3d__inner img { position: relative; display: block; width: 100% !important; height: auto !important; max-height: none !important; border-radius: 1px 3px 3px 1px; box-shadow: 26px 26px 40px -10px rgba(0, 0, 0, .45) !important; transform: none !important; }
.book3d__inner::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .22) 30%, rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, 0)); pointer-events: none; }
.book3d__inner::after { content: ''; position: absolute; top: 1%; bottom: 1%; left: calc(100% - 1px); width: 6%; transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(90deg, #d9d3c6, #f8f5ee 30%, #eae4d8), repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px); background-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { .book3d__inner { transform: rotateY(-20deg); } }
.book-feature .eyebrow { color: var(--sun); }
.book-feature h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.book-feature .price { font-family: var(--display); font-size: 2rem; }
.book-feature__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Visit band ---------- */
.visit { background: var(--paper-2); }
.visit__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.visit__inner > :only-child { grid-column: 1 / -1; }
.visit h2 { margin-bottom: .4em; }

/* ---------- Shop ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill-nav a { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--peat); background: var(--white); font-size: .8rem; letter-spacing: .08em; text-decoration: none; }
.pill-nav a:hover { border-color: var(--peat); }
.shop-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.product-card { display: grid; align-content: start; gap: .35rem; color: var(--peat); text-decoration: none; }
.product-card:hover { color: var(--peat); }
.product-card__image { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: .6rem; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__image--framed { padding: 9%; background: linear-gradient(145deg, #e9e1d1, #d8ccb6); }
.product-card__image--framed img { height: auto; max-height: 100%; object-fit: contain; border: 10px solid #2d2823; outline: 14px solid #f6f1e6; outline-offset: -24px; box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }
.product-card__image--card { padding: 12%; background: linear-gradient(145deg, #ece5d6, #dfd5c3); }
.product-card__image--card img { height: auto; object-fit: contain; border: 8px solid #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); transform: rotate(-2deg); }
.product-card__image--book { padding: 10%; background: linear-gradient(145deg, #e3dccd, #cfc3ad); }
.product-card__image--book .book3d { width: 58%; }
.product-card__title { font-family: var(--display); font-size: 1.55rem; line-height: 1.15; }
.product-card__text { font-size: .95rem; color: var(--muted); }
.product-card__price { font-weight: 500; }
.product-card__price em { margin-left: .5rem; font-size: .75rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--heather); }
.custom-band { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; margin-top: 3rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); color: var(--paper); background: var(--peat); }
.custom-band h2 { margin-bottom: .3em; }
.custom-band p { max-width: 38rem; margin: 0; color: rgba(247, 243, 234, .8); }

.product__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: 1rem; }
.product__media { position: sticky; top: 6.5rem; }
.product__main { display: grid; place-items: center; margin: 0; min-height: 18rem; padding: clamp(1rem, 4vw, 3rem); border-radius: var(--radius); background: var(--paper-2); }
.product__main img { max-height: 70vh; width: auto; box-shadow: var(--shadow); }
.product__media--framed .product__main { background: linear-gradient(145deg, #e9e1d1, #d8ccb6); }
.product__media--framed .product__main img { border: 14px solid #2d2823; outline: 22px solid #f6f1e6; outline-offset: -36px; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.product__price { font-family: var(--display); font-size: 2.2rem; line-height: 1; margin: -.2rem 0 1rem; }
.product__note { padding: .6rem .9rem; border-left: 2px solid var(--sun); background: var(--white); font-size: .95rem; }
.product__custom { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.product__look { margin-top: 1.25rem; text-align: center; }
.product__media--book .product__main { padding: clamp(1.5rem, 5vw, 3.5rem); background: linear-gradient(145deg, #e3dccd, #cfc3ad); }
.product__media--book .book3d { width: min(100%, 24rem, calc(62vh * .76)); }
.interest { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.interest h2 { margin-bottom: .3em; }
.interest > p { color: var(--muted); }
.interest__estimate { padding: .75rem 1rem; border-radius: var(--radius); background: var(--paper-2); font-weight: 500; }
.interest__estimate:empty { display: none; }
.postage { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.postage h2 { margin-bottom: .5em; }
.postage__scroll { overflow-x: auto; }
.postage__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.postage__table th, .postage__table td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.postage__table thead th { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.postage__table tbody th { font-weight: 400; }
.postage__table .num { text-align: right; white-space: nowrap; }

/* ---------- Book "look inside" slideshow ---------- */
.book-preview { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem); border-radius: var(--radius); color: var(--paper); background: var(--night); }
.book-preview__head { max-width: 40rem; margin: 0 auto 1.75rem; text-align: center; }
.book-preview__head h2 { margin-bottom: .3em; }
.book-preview__head p { margin: 0; color: rgba(247, 243, 234, .7); }
.slideshow { --stage-ar: var(--ar); max-width: min(100%, calc(68vh * var(--stage-ar)), 46rem); margin: 0 auto; }
.slideshow__stage { position: relative; aspect-ratio: var(--stage-ar); overflow: hidden; cursor: zoom-in; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: #fff; }
.slideshow__stage--spread { display: none; }
.slideshow__slide { position: absolute; inset: 0; display: flex; justify-content: center; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slideshow__slide.is-active { opacity: 1; z-index: 1; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.slideshow__stage--spread .slideshow__slide img { width: 50%; }
.slideshow__stage--spread .slideshow__slide img + img { box-shadow: inset 12px 0 18px -14px rgba(0, 0, 0, .35); border-left: 1px solid rgba(0, 0, 0, .08); }
/* Wide (landscape) screens: two facing pages, like the landscape slideshow. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .slideshow--spreads { --stage-ar: var(--ar2); max-width: min(100%, calc(66vh * var(--stage-ar)), 70rem); }
  .slideshow--spreads .slideshow__stage--single { display: none; }
  .slideshow--spreads .slideshow__stage--spread { display: block; }
}
.slideshow__controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-top: 1.1rem; }
.slideshow__controls > button:not(.button) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(247, 243, 234, .3); border-radius: 50%; color: var(--paper); background: transparent; cursor: pointer; }
.slideshow__controls > button:not(.button):hover { background: rgba(247, 243, 234, .14); }
.slideshow__controls .icon { width: 20px; height: 20px; }
.slideshow__pause { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.slideshow.is-paused .slideshow__pause { width: 0; height: 0; border: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.slideshow__count { min-width: 4.5rem; font-size: .8rem; letter-spacing: .12em; text-align: center; color: rgba(247, 243, 234, .7); }
.slideshow__full { margin-left: .5rem; color: var(--paper); border-color: rgba(247, 243, 234, .5); }
.slideshow__full:hover { color: var(--peat); background: var(--paper); }

/* ---------- Forms ---------- */
.bw-form, .add-to-basket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.add-to-basket { grid-template-columns: 1fr; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bw-form p, .add-to-basket p { margin: 0; }
.span-2 { grid-column: 1 / -1; }
label, legend { display: block; margin-bottom: .35rem; font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input:not([type]), select, textarea { width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--peat); background: var(--white); font: inherit; font-size: 1rem; }
input:focus, select:focus, textarea:focus { border-color: var(--peat); outline: none; box-shadow: 0 0 0 3px rgba(217, 151, 63, .3); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.delivery-options label { display: flex; gap: .7rem; align-items: center; margin: 0 0 .4rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--peat); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer; }
.delivery-options label:has(input:checked) { border-color: var(--peat); box-shadow: inset 0 0 0 1px var(--peat); }
.delivery-options strong { margin-left: auto; font-weight: 500; }
.add-to-basket__row { display: flex; gap: 1rem; align-items: end; }
.add-to-basket__row p { width: 6.5rem; }
.add-to-basket__row .button { flex: 1; min-height: 3.1rem; }
.add-to-basket__error { color: #a3312a; font-weight: 500; }
.photo-picker legend { width: 100%; }
.photo-picker__chosen { color: var(--peat); letter-spacing: .04em; text-transform: none; }
.photo-picker__group { margin: .8rem 0 .4rem !important; font-family: var(--display); font-size: 1.15rem; }
.photo-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .4rem; max-height: 22rem; overflow-y: auto; padding: 2px; }
.photo-picker__item { position: relative; margin: 0; cursor: pointer; border-radius: 3px; }
.photo-picker__item input { position: absolute; opacity: 0; inset: 0; }
.photo-picker__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; opacity: .85; transition: opacity .15s; }
.photo-picker__item:hover img { opacity: 1; }
.photo-picker__item:has(input:checked) img { opacity: 1; outline: 3px solid var(--sun); outline-offset: 1px; }
.photo-picker__item:has(input:focus-visible) img { outline: 3px solid var(--peat); }
.chosen-photo img { max-width: 18rem; border-radius: var(--radius); }
.notice { padding: .9rem 1.1rem; border-left: 3px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); }
.notice--success { border-color: var(--moss); }
.notice--error { border-color: #a3312a; }
.notice--info { border-color: var(--heather); }
.form-wrap { margin-top: 1rem; }

/* ---------- Basket ---------- */
.basket__table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.basket__table th, .basket__table td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.basket__table thead th { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.basket__table tfoot th { font-weight: 400; }
.basket__table .num { text-align: right; white-space: nowrap; }
.basket__total-row th, .basket__total-row td { font-family: var(--display); font-size: 1.6rem; border-bottom: 0; }
.basket__thumb { width: 72px; }
.basket__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.basket__qty { width: 4.5rem !important; }
.basket__remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 1.2rem; cursor: pointer; }
.basket__remove:hover { background: var(--line); }
.checkout__pay { padding: 1.25rem; border-radius: var(--radius); background: var(--paper-2); }
.pay-box { margin-top: 1.5rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.pay-box ol { padding-left: 1.2rem; }
.order-confirmation h2 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- Footer ---------- */
.site-footer { color: rgba(247, 243, 234, .82); background: var(--peat); font-size: .95rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--sun); }
.site-footer h2 { margin-bottom: .6rem; font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; width: min(calc(100% - 2.5rem), var(--content)); margin: auto; padding: 4rem 0 3rem; }
.site-footer__brand { display: flex; gap: 1.1rem; align-items: flex-start; }
.site-footer__brand img { flex: none; }
.site-footer__brand strong { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--paper); }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; width: min(calc(100% - 2.5rem), var(--content)); margin: auto; padding: 1.4rem 0 2rem; border-top: 1px solid rgba(247, 243, 234, .14); font-size: .8rem; color: rgba(247, 243, 234, .6); }
.site-footer__base p { margin: 0; }
.footer-menu { display: flex; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; max-width: calc(100% - 2rem); padding: .9rem 1.3rem; border-radius: 999px; color: var(--paper); background: var(--peat); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translateX(-50%); }
.toast a { color: var(--sun); margin-left: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__image { order: -1; }
  .book-feature__inner, .visit__inner, .product__layout { grid-template-columns: 1fr; }
  .product__media { position: static; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .primary-navigation { position: fixed; top: var(--header-h, 5rem); left: 0; right: 0; bottom: 0; display: none; padding: 1.5rem 1.25rem; background: var(--paper); overflow-y: auto; }
  .admin-bar .primary-navigation { top: calc(var(--header-h, 5rem) + 46px); }
  .primary-navigation.is-open { display: block; }
  .site-menu { display: grid; gap: 0; }
  .site-menu a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .site-menu a::after { display: none; }
  .basket-link { margin-left: auto; }
  .brand { margin-right: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .site-header__inner { width: calc(100% - 2rem); min-height: 4.25rem; gap: .5rem; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1.45rem; }
  .brand__sub { font-size: .56rem; letter-spacing: .14em; white-space: nowrap; }
  .section__inner, .page-wrap, .intro .entry-content, .site-footer__inner, .site-footer__base { width: calc(100% - 2rem); }
  .section-head { grid-template-columns: 1fr; gap: .8rem; }
  .bw-form { grid-template-columns: 1fr; }
  .photo-grid__item { flex-basis: calc(var(--ar) * 9rem); }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__figure { grid-column: 1; padding: 3.5rem .5rem 5rem; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 1rem; }
  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
  .lightbox__img { max-height: calc(100vh - 13rem); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .basket__table thead { display: none; }
  .basket__table td { padding: .6rem .3rem; }
  .basket__thumb { width: 56px; }
  .basket__thumb img { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Rotatable 3D book (bw_book_display). Sizes are in mm x --u (px per mm, set by site.js). ---------- */
.book-spin { --u: 1.3px; --t: 2.5; --p: 5; position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; height: calc(var(--h) * var(--u) * 1.22); perspective: 1700px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.book-spin:active { cursor: grabbing; }
.book-spin:focus-visible { box-shadow: 0 0 0 3px rgba(217, 151, 63, .5); border-radius: var(--radius); }
.book-spin__book { position: relative; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(-28deg); }
.book-spin__face { --fw: var(--w); --fh: var(--h); position: absolute; left: 50%; top: 50%; width: calc(var(--fw) * var(--u)); height: calc(var(--fh) * var(--u)); margin: calc(var(--fh) * var(--u) / -2) 0 0 calc(var(--fw) * var(--u) / -2); background-size: 100% 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book-spin__face::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
.book-spin__front { transform: translateZ(calc(var(--d) * var(--u) / 2)); border-radius: 0 2px 2px 0; }
.book-spin__back { transform: translateZ(calc(var(--d) * var(--u) / -2)) rotateY(180deg); border-radius: 0 2px 2px 0; }
.book-spin__spine { --fw: var(--d); transform: translateX(calc(var(--w) * var(--u) / -2)) rotateY(-90deg); }
.book-spin__inner-front, .book-spin__inner-back { background: #efe9dc; }
.book-spin__inner-front { transform: translateZ(calc((var(--d) / 2 - var(--t)) * var(--u))) rotateY(180deg); }
.book-spin__inner-back { transform: translateZ(calc((var(--d) / -2 + var(--t)) * var(--u))); }
/* Board edges: the cover wraps round them, so show the cover image's own edge. */
.book-spin__edge { --shade: .18; background-repeat: no-repeat; }
.edge--fore-front, .edge--fore-back { --fw: var(--t); }
.edge--top-front, .edge--top-back, .edge--bottom-front, .edge--bottom-back { --fh: var(--t); }
.edge--fore-front { background: var(--front) right center / calc(var(--w) * var(--u)) 100%; transform: translate3d(calc(var(--w) * var(--u) / 2), 0, calc((var(--d) / 2 - var(--t) / 2) * var(--u))) rotateY(90deg); }
.edge--fore-back { background: var(--back) left center / calc(var(--w) * var(--u)) 100%; transform: translate3d(calc(var(--w) * var(--u) / 2), 0, calc((var(--d) / -2 + var(--t) / 2) * var(--u))) rotateY(90deg); }
.edge--top-front { background: var(--front) center top / 100% calc(var(--h) * var(--u)); transform: translate3d(0, calc(var(--h) * var(--u) / -2), calc((var(--d) / 2 - var(--t) / 2) * var(--u))) rotateX(90deg); }
.edge--top-back { background: var(--back) center top / 100% calc(var(--h) * var(--u)); transform: translate3d(0, calc(var(--h) * var(--u) / -2), calc((var(--d) / -2 + var(--t) / 2) * var(--u))) rotateX(90deg); }
.edge--bottom-front { background: var(--front) center bottom / 100% calc(var(--h) * var(--u)); transform: translate3d(0, calc(var(--h) * var(--u) / 2), calc((var(--d) / 2 - var(--t) / 2) * var(--u))) rotateX(-90deg); }
.edge--bottom-back { background: var(--back) center bottom / 100% calc(var(--h) * var(--u)); transform: translate3d(0, calc(var(--h) * var(--u) / 2), calc((var(--d) / -2 + var(--t) / 2) * var(--u))) rotateX(-90deg); }
/* The block of pages, set in from the boards' edges. */
.book-spin__pages { --shade: .06; background-color: #f4efe4; }
.pages--fore { --fw: calc(var(--d) - 2 * var(--t)); --fh: calc(var(--h) - 2 * var(--p)); background-image: repeating-linear-gradient(90deg, rgba(120, 100, 70, .14) 0 1px, transparent 1px 3px); transform: translateX(calc((var(--w) / 2 - var(--p)) * var(--u))) rotateY(90deg); }
.pages--top, .pages--bottom { --fw: calc(var(--w) - var(--p)); --fh: calc(var(--d) - 2 * var(--t)); background-image: repeating-linear-gradient(0deg, rgba(120, 100, 70, .14) 0 1px, transparent 1px 3px); }
.pages--top { transform: translate3d(calc(var(--p) * var(--u) / -2), calc((var(--h) / -2 + var(--p)) * var(--u)), 0) rotateX(90deg); }
.pages--bottom { --shade: .2; transform: translate3d(calc(var(--p) * var(--u) / -2), calc((var(--h) / 2 - var(--p)) * var(--u)), 0) rotateX(-90deg); }
.book-spin__floor { position: absolute; left: 50%; bottom: 3%; width: calc(var(--w) * var(--u) * 1.1); height: calc(var(--d) * var(--u) * 1.6); transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .32), rgba(0, 0, 0, 0)); pointer-events: none; }
.book-spin__controls { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center; margin: .4rem 0 0; }
.book-spin__btn { padding: .3rem .8rem; border: 1px solid currentColor; border-radius: 999px; color: inherit; background: transparent; font: inherit; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; cursor: pointer; }
.book-spin__btn:hover, .book-spin__btn:focus-visible { opacity: 1; }
.book-spin__hint { width: 100%; text-align: center; font-size: .8rem; opacity: .65; }
.product__media--book .book-spin__controls { color: var(--peat); }

/* Card packs (1.4.0): front card large, the other four in a 2 x 2 block of the same size beside it */
.card-pack, .card-pack.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.35rem, 1.2vw, .8rem); align-items: stretch; }
.card-pack.photo-grid::after { content: none; }
.card-pack__rest { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: inherit; }
.card-pack__card { display: block; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--white); box-shadow: 0 1px 2px rgba(43, 38, 32, .12), 0 6px 16px rgba(43, 38, 32, .12); }
.card-pack__card a { display: block; height: 100%; }
.card-pack__card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.card-pack__card a:hover img, .card-pack__card a:focus-visible img { transform: scale(1.03); filter: brightness(1.05); }
.product__layout--pack { grid-template-columns: 1fr; }
.product__layout--pack .product__media { position: static; }
.product__layout--pack .product__info { max-width: 44rem; }
.product__pack { padding: clamp(.75rem, 3vw, 2rem); border-radius: var(--radius); background: linear-gradient(145deg, #ece5d6, #dfd5c3); }
.product__pack-hint { margin: .6rem 0 0; color: var(--muted); }
.product-card__image--pack { aspect-ratio: auto; padding: 7%; background: linear-gradient(145deg, #ece5d6, #dfd5c3); }
.product-card__image--pack .card-pack { width: 100%; gap: .35rem; }
.product-card__image--pack img { height: 100%; }
.product-grid:has(.product-card__image--pack) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.pay-box--contact { margin-top: 2.5rem; }
.pay-box--contact h2 { margin-top: 0; }
.section-lede { max-width: 44rem; margin: -1.25rem 0 2rem; color: var(--muted); }
