/*
Theme Name: The Wanderer Author V7.1
Theme URI: https://thewandererauthor.co.uk/
Author: Garry Stephens / OpenAI
Description: A responsive, editorial WordPress theme for The Wanderer. Designed as a found journal with section-sliced artwork, live WordPress content, WooCommerce, Yoast, Mailchimp and Instagram integrations.
Version: 7.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: the-wanderer-v7
*/

:root {
  --w7-ink: #211a14;
  --w7-ink-soft: #51473b;
  --w7-paper: #d9c39c;
  --w7-paper-light: #ead8b6;
  --w7-paper-deep: #b99968;
  --w7-dark: #121512;
  --w7-dark-2: #1c211c;
  --w7-gold: #b7975f;
  --w7-red: #5e1712;
  --w7-red-bright: #7d2118;
  --w7-border: rgba(49, 35, 22, .72);
  --w7-shadow: 0 16px 42px rgba(7, 7, 5, .28);
  --w7-serif: Georgia, 'Times New Roman', serif;
  --w7-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --w7-site-width: 1180px;
  --w7-gutter: clamp(16px, 3vw, 36px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--w7-ink);
  background: #0e110e url('assets/images/texture-dark.webp') repeat;
  font-family: var(--w7-serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--w7-red); }
button, input, textarea, select { font: inherit; }
button, .button, .w7-button { cursor: pointer; }
.screen-reader-text {
  position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed!important; width: auto; height: auto; clip: auto; top: 8px; left: 8px; z-index: 99999; background: #fff; padding: 12px; }

.w7-site-shell { width: min(100%, 1600px); margin: 0 auto; background: var(--w7-paper) url('assets/images/texture-parchment.webp') repeat; box-shadow: 0 0 80px rgba(0,0,0,.58); }
.w7-wrap { width: min(var(--w7-site-width), calc(100% - (var(--w7-gutter) * 2))); margin-inline: auto; }
.w7-narrow { width: min(820px, calc(100% - (var(--w7-gutter) * 2))); margin-inline: auto; }

/* Header */
.w7-site-header {
  position: sticky; top: 0; z-index: 1000;
  color: #dfc99e;
  background: #111510 url('assets/images/texture-dark.webp') repeat;
  border-bottom: 1px solid rgba(183,151,95,.45);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.admin-bar .w7-site-header { top: 32px; }
.w7-header-inner { min-height: 76px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 24px; }
.w7-brand { text-decoration: none; color: #d6bb83; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.w7-brand .small { font-size: .66rem; letter-spacing: .18em; }
.w7-brand .large { font-size: 1.55rem; }
.w7-brand .author { font-size: .62rem; margin-top: 5px; letter-spacing: .14em; }
.w7-primary-nav ul { list-style: none; display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 0; margin: 0; }
.w7-primary-nav a { text-decoration: none; text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; position: relative; padding: 28px 0 24px; }
.w7-primary-nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 17px; height: 1px; background: #8d3427; transition: .2s ease; }
.w7-primary-nav a:hover::after, .w7-primary-nav .current-menu-item > a::after, .w7-primary-nav .current_page_item > a::after { left: 0; right: 0; }
.w7-header-buy { white-space: nowrap; }
.w7-menu-toggle { display: none; background: transparent; border: 1px solid rgba(214,187,131,.55); color: #d6bb83; padding: 9px 12px; }

/* Buttons */
.w7-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 42px; padding: 10px 22px;
  color: #ead8b6!important; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem;
  border: 1px solid #8d4c36; border-radius: 1px;
  background: linear-gradient(#7b241b, #4d110e);
  box-shadow: inset 0 0 0 2px rgba(219,177,112,.12), 0 5px 12px rgba(0,0,0,.18);
  transition: transform .18s ease, filter .18s ease;
}
.w7-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: #fff!important; filter: brightness(1.12); transform: translateY(-1px); }
.w7-button--dark { background: #161a16; border-color: #7d6a49; }
.w7-button--quiet { background: rgba(233,216,182,.25); color: var(--w7-ink)!important; border-color: rgba(65,45,28,.55); box-shadow: none; }

/* Art sections */
.w7-main { overflow: hidden; }
.w7-art-section {
  position: relative;
  isolation: isolate;
  background-color: var(--w7-paper);
  background-image: var(--section-bg, url('assets/images/texture-parchment.webp'));
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 4px solid #171a16;
}
.w7-art-section > .w7-wrap { position: relative; z-index: 2; }
.w7-paper-box {
  background: rgba(231, 211, 174, .88);
  border: 1px solid rgba(60, 42, 26, .42);
  box-shadow: 0 7px 18px rgba(41,30,17,.12);
  padding: clamp(18px, 2.4vw, 30px);
}
.w7-dark-box { background: rgba(17,21,17,.93); color: #dbc49a; border: 1px solid rgba(183,151,95,.42); padding: clamp(18px, 2.4vw, 30px); }
.w7-eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: #6a4b31; }
.w7-section-title, .w7-page-title { font-weight: 400; line-height: 1.02; margin: 0 0 14px; }
.w7-page-title { font-size: clamp(2.5rem, 5vw, 5.2rem); }
.w7-section-title { font-size: clamp(1.75rem, 3vw, 3rem); }
.w7-lede { font-size: clamp(1.02rem, 1.4vw, 1.24rem); max-width: 62ch; }
.w7-prose { font-size: 1.04rem; }
.w7-prose > *:first-child { margin-top: 0; }
.w7-prose > *:last-child { margin-bottom: 0; }
.w7-divider { width: 160px; height: 1px; background: var(--w7-border); margin: 18px 0; position: relative; }
.w7-divider::after { content: '◇'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-55%); background: rgba(231,211,174,.9); padding: 0 8px; font-size: .75rem; }
.w7-empty { padding: 30px; border: 1px dashed rgba(63,45,28,.55); text-align: center; background: rgba(231,211,174,.62); }
.w7-grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.w7-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.w7-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.w7-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.w7-grid--6 { grid-template-columns: repeat(6,minmax(0,1fr)); }

/* Cards */
.w7-card {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  background: rgba(232,214,181,.9);
  border: 1px solid rgba(56,39,24,.52);
  box-shadow: 0 7px 18px rgba(34,24,15,.14);
  overflow: hidden;
}
.w7-card__image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; filter: sepia(.3) contrast(.95); border-bottom: 1px solid rgba(56,39,24,.34); }
.w7-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.w7-card__title { margin: 0 0 8px; font-weight: 400; font-size: 1.42rem; line-height: 1.12; }
.w7-card__meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.w7-card__label { position: absolute; top: 9px; right: 9px; z-index: 2; background: rgba(232,214,181,.9); border: 1px solid rgba(56,39,24,.38); padding: 4px 7px; font-size: .62rem; text-transform: uppercase; }
.w7-record-card { min-height: 100%; text-align: center; }
.w7-record-card .w7-card__image { aspect-ratio: 5 / 4; object-position: center top; background: #d8c096; }
.w7-record-card .w7-card__body { padding: 16px 18px 18px; }
.w7-record-card .w7-button { margin-top: auto; }
.w7-review-card blockquote { margin: 8px 0 12px; font-style: italic; }
.w7-stars { color: #8b5c1b; letter-spacing: .08em; }

/* Footer */
.w7-site-footer { color: #cfb98f; background: #101410 url('assets/images/footer-background-v63.webp') center/cover no-repeat; border-top: 2px solid rgba(183,151,95,.4); }
.w7-footer-main { padding: 38px 0 28px; display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 26px; }
.w7-footer-main h2, .w7-footer-main h3 { color: #d7bf91; font-weight: 400; margin-top: 0; }
.w7-footer-main ul { list-style: none; margin: 0; padding: 0; }
.w7-footer-main li { margin: 5px 0; }
.w7-footer-main a { color: #cfb98f; text-decoration: none; }
.w7-footer-main a:hover { color: #fff0c8; }
.w7-footer-identity { position: relative; min-height: 180px; padding-right: 30px; }
.w7-footer-identity::after { content: ''; position: absolute; width: 118px; height: 145px; right: 0; bottom: -15px; background: url('assets/images/footer-identity-approved.webp') center/contain no-repeat; opacity: .74; pointer-events: none; }
.w7-footer-mushrooms { min-height: 150px; background: url('assets/images/footer-mushrooms-approved.webp') right bottom/contain no-repeat; }
.w7-footer-bottom { border-top: 1px solid rgba(183,151,95,.25); padding: 14px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; }
.w7-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.w7-socials a { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; border: 1px solid rgba(183,151,95,.45); text-decoration: none; }

/* Forms */
.w7-form { display: grid; gap: 12px; }
.w7-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w7-form label { display: grid; gap: 5px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.w7-form input, .w7-form textarea, .w7-form select, .w7-newsletter input {
  width: 100%; border: 1px solid rgba(59,42,27,.52); background: rgba(245,232,204,.74); color: var(--w7-ink); padding: 10px 12px; border-radius: 0;
}
.w7-form textarea { min-height: 130px; resize: vertical; }
.w7-consent { display: flex!important; grid-template-columns: none!important; align-items: flex-start; gap: 8px!important; text-transform: none!important; letter-spacing: 0!important; }
.w7-consent input { width: auto; margin-top: 5px; }
.w7-notice { padding: 12px 16px; border: 1px solid #57724d; background: rgba(226,239,216,.85); margin-bottom: 18px; }
.w7-notice--error { border-color: #85413a; background: rgba(244,221,214,.88); }
.w7-newsletter form, .w7-newsletter .mc4wp-form-fields { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.w7-newsletter button, .w7-newsletter input[type=submit] { min-height: 42px; }

/* Homepage */
.w7-home-hero { min-height: clamp(700px, 72vw, 965px); background-image: var(--wanderer-home-hero, url('assets/images/home-hero-master-v62.webp')); background-size: cover; background-position: center; }
.w7-home-hero .w7-wrap { min-height: inherit; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.75fr); align-items: center; gap: 30px; padding-block: clamp(70px, 9vw, 130px); }
.w7-home-copy { max-width: 650px; padding: clamp(22px,4vw,46px); background: rgba(232,214,181,.74); border: 1px solid rgba(60,42,26,.34); backdrop-filter: blur(1px); }
.w7-home-book { align-self: center; justify-self: center; width: min(420px, 92%); filter: drop-shadow(0 28px 30px rgba(0,0,0,.28)); }
.w7-retailer-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 26px; }
.w7-retailer-row .w7-button { padding-inline: 12px; }
.w7-home-panels { padding: 40px 0; background: #d1b889 url('assets/images/texture-parchment.webp') repeat; }
.w7-home-panels-grid { display: grid; grid-template-columns: 1.05fr 1.35fr 1.05fr; gap: 18px; }
.w7-home-panel { min-height: 410px; padding: 28px; background-size: cover; background-position: center; border: 2px solid rgba(32,25,18,.78); box-shadow: var(--w7-shadow); }
.w7-home-panel--archive { background-image: url('assets/images/home-archive-background-v63.webp'); }
.w7-home-panel--journal { background-image: url('assets/images/home-journal-background-v63.webp'); }
.w7-home-panel--people { background: rgba(229,210,174,.86); }
.w7-home-people { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
.w7-home-people img { aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(56,39,24,.45); }
.w7-home-travellers { padding: 48px 0; color: #d8c093; background: #111511 url('assets/images/travellers-band-v62.webp') center/cover no-repeat; }
.w7-home-shop-mail { padding: 38px 0; }
.w7-home-shop-mail-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.w7-home-shop, .w7-home-mail { min-height: 390px; padding: 28px; border: 2px solid rgba(32,25,18,.78); background-position: center; background-size: cover; }
.w7-home-shop { background-image: url('assets/images/home-shop-panel-v62.webp'); }
.w7-home-mail { background-image: url('assets/images/home-mail-panel-v62.webp'); }

/* Book */
.w7-book-hero { min-height: 545px; padding: 48px 0; }
.w7-book-hero-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(22px,4vw,55px); align-items: center; }
.w7-book-cover { width: min(330px,92%); justify-self: center; filter: drop-shadow(0 20px 22px rgba(0,0,0,.27)); }
.w7-book-buy { min-height: 270px; padding: 42px 0; }
.w7-edition-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.w7-edition-card { text-align: center; padding: 22px 15px; background: rgba(233,216,182,.82); border: 1px solid rgba(56,39,24,.45); }
.w7-book-info { min-height: 285px; padding: 36px 0; }
.w7-book-reviews { min-height: 300px; padding: 38px 0; }
.w7-support-band { color: #dcc59a; background: #111511 url('assets/images/support-hero.webp') center/cover no-repeat; padding: 48px 0; }
.w7-support-band .w7-wrap { display: flex; justify-content: center; text-align: center; }
.w7-support-band .w7-dark-box { max-width: 760px; }

/* World */
.w7-world-hero { min-height: 650px; padding: 62px 0; }
.w7-world-copy { width: min(390px, 46%); }
.w7-map-marker { position: absolute; display: inline-flex; width: 31px; height: 31px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(218,194,151,.92); border: 1px solid #4e3923; font-size: .86rem; font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.w7-map-marker:hover { background: #fff0c9; transform: scale(1.08); }
.w7-world-notes { min-height: 150px; padding: 25px 0; color: #d7c195; }
.w7-world-notes-grid { grid-template-columns: .9fr repeat(5,1fr); align-items: stretch; }
.w7-note-thumb { min-height: 120px; background: rgba(235,218,184,.8); border: 1px solid rgba(60,42,26,.44); overflow: hidden; }
.w7-note-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.45); }
.w7-world-places { min-height: 450px; padding: 45px 0; }
.w7-place-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.w7-world-closing { min-height: 170px; padding: 34px 0; }
.w7-world-closing-grid { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 24px; align-items: center; }

/* People */
.w7-people-main { min-height: 1080px; padding: 56px 0 42px; }
.w7-people-heading { text-align: center; margin-bottom: 30px; }
.w7-people-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.w7-people-featured { min-height: 410px; padding: 40px 0 60px; }
.w7-feature-record { width: min(760px,100%); margin: 0 auto; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; }
.w7-feature-record img { width: 100%; height: 100%; object-fit: cover; }

/* Archive */
.w7-archive-hero { min-height: 335px; padding: 48px 0 30px; }
.w7-archive-copy { max-width: 620px; margin-left: 170px; }
.w7-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.w7-filter-row a { padding: 8px 14px; border: 1px solid rgba(56,39,24,.45); background: rgba(234,217,183,.66); text-decoration: none; font-size: .75rem; text-transform: uppercase; }
.w7-filter-row a.is-active { background: var(--w7-red); color: #ead8b6; }
.w7-archive-featured { min-height: 515px; padding: 35px 0; }
.w7-archive-featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.w7-archive-featured-card img { aspect-ratio: 1.25; }
.w7-archive-grid-section { min-height: 420px; padding: 32px 0; }
.w7-archive-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.w7-archive-grid .w7-card__title { font-size: 1rem; }
.w7-archive-create { min-height: 178px; padding: 40px 0; }
.w7-create-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; }

/* Journal */
.w7-journal-hero { min-height: 470px; padding: 60px 0 30px; }
.w7-journal-hero-copy { max-width: 600px; margin-left: 180px; }
.w7-journal-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.w7-journal-entries { min-height: 680px; padding: 40px 0; }
.w7-journal-layout { display: grid; grid-template-columns: minmax(0,3fr) minmax(230px,1fr); gap: 20px; }
.w7-post-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.w7-journal-side { display: grid; gap: 16px; align-content: start; }
.w7-admin-tools a { display: block; margin: 7px 0; }
.w7-journal-signup { min-height: 180px; padding: 42px 0; }
.w7-signup-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; }

/* Travellers */
.w7-travellers-hero { min-height: 465px; padding: 62px 0; }
.w7-travellers-copy { max-width: 640px; margin-left: 150px; }
.w7-travellers-nav { min-height: 150px; padding: 26px 0; }
.w7-traveller-tabs { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.w7-traveller-tabs a { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px; text-align: center; text-decoration: none; border: 1px solid rgba(56,39,24,.4); background: rgba(232,214,181,.76); }
.w7-moderation-strip { background: #141814; color: #d2bb8f; padding: 13px 0; border-block: 1px solid rgba(183,151,95,.42); }
.w7-moderation-strip .w7-wrap { display: flex; justify-content: space-between; gap: 20px; }
.w7-travellers-wall { min-height: 680px; padding: 42px 0; }
.w7-instagram-shell { background: rgba(234,218,186,.7); border: 1px solid rgba(57,39,24,.42); padding: 20px; }
.w7-instagram-shell .sb_instagram_header { font-family: var(--w7-serif); }
.w7-travellers-bottom { min-height: 180px; padding: 34px 0; }

/* Shop / WooCommerce */
.w7-shop-hero { min-height: 385px; padding: 58px 0; }
.w7-shop-copy { max-width: 430px; margin-left: 150px; }
.w7-shop-catalogue { min-height: 760px; padding: 35px 0; }
.w7-shop-layout { display: grid; grid-template-columns: 190px minmax(0,1fr) 250px; gap: 16px; align-items: start; }
.w7-shop-sidebar, .w7-cart-panel { background: rgba(234,217,184,.88); border: 1px solid rgba(56,39,24,.48); padding: 18px; }
.w7-shop-sidebar ul { list-style: none; padding: 0; }
.w7-shop-sidebar li { margin: 7px 0; }
.w7-cart-panel { position: sticky; top: 100px; }
.woocommerce ul.products { display: grid!important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px!important; margin: 0!important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none!important; }
.woocommerce ul.products li.product { float: none!important; width: auto!important; margin: 0!important; background: rgba(234,217,184,.9); border: 1px solid rgba(56,39,24,.48); padding: 14px; text-align: center; }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; margin-bottom: 10px!important; background: rgba(255,248,229,.35); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--w7-serif); font-size: 1.2rem!important; font-weight: 400; color: var(--w7-ink); }
.woocommerce ul.products li.product .price { color: #4a3321!important; }
.w7-shop-values { min-height: 155px; padding: 30px 0; }
.w7-value-grid { grid-template-columns: repeat(4,1fr); }
.w7-value { display: grid; grid-template-columns: 45px 1fr; gap: 12px; align-items: center; }
.woocommerce div.product { background: rgba(234,217,184,.88); border: 1px solid rgba(56,39,24,.48); padding: clamp(20px,4vw,46px); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: #ead8b6; border-top-color: var(--w7-red); color: var(--w7-ink); }

/* Support */
.w7-support-hero-page { min-height: 385px; padding: 58px 0; }
.w7-support-copy { max-width: 570px; margin-left: 120px; }
.w7-campaign { min-height: 500px; padding: 38px 0; }
.w7-campaign-summary { display: grid; grid-template-columns: .75fr 1.7fr .85fr; gap: 20px; align-items: center; margin-bottom: 28px; }
.w7-progress { height: 24px; border: 1px solid rgba(56,39,24,.58); background: rgba(234,217,184,.58); padding: 4px; }
.w7-progress > span { display: block; height: 100%; background: repeating-linear-gradient(135deg,#343429,#343429 8px,#665b42 8px,#665b42 12px); }
.w7-campaign-stats { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; gap: 8px; margin-top: 12px; }
.w7-reward-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.w7-reward-card { padding: 14px; text-align: center; background: rgba(234,217,184,.84); border: 1px solid rgba(56,39,24,.45); }
.w7-reward-card img { aspect-ratio: 4/5; object-fit: contain; }
.w7-support-middle, .w7-support-bottom { min-height: 220px; padding: 35px 0; }
.w7-faq details { border-bottom: 1px solid rgba(56,39,24,.32); padding: 10px 0; }
.w7-faq summary { cursor: pointer; }

/* Author */
.w7-author-hero { min-height: 520px; padding: 48px 0; }
.w7-author-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 48px; align-items: center; }
.w7-author-portrait { transform: rotate(-2deg); padding: 12px 12px 42px; background: #d7c29b; box-shadow: 0 10px 24px rgba(0,0,0,.2); border: 1px solid rgba(56,39,24,.45); }
.w7-author-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.85) sepia(.15); }
.w7-author-contact { min-height: 290px; padding: 34px 0; }
.w7-author-contact-grid { grid-template-columns: .75fr 1.15fr 1.15fr; }
.w7-author-reviews { min-height: 330px; padding: 42px 0; }
.w7-author-review-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.w7-author-quote { min-height: 170px; padding: 42px 0; }

/* Editorial */
.w7-editorial-hero { padding: 70px 0 45px; background: var(--w7-paper) url('assets/images/author-map.webp') right center/cover no-repeat; border-bottom: 4px solid #171a16; }
.w7-editorial-content { padding: 52px 0 70px; background: var(--w7-paper) url('assets/images/texture-parchment.webp') repeat; }
.w7-editorial-content .w7-prose { background: rgba(237,220,187,.78); border: 1px solid rgba(56,39,24,.36); padding: clamp(24px,5vw,55px); box-shadow: var(--w7-shadow); }
.w7-prose h2, .w7-prose h3 { font-weight: 400; line-height: 1.15; }
.w7-prose h2 { font-size: 2rem; }
.w7-prose blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--w7-red); background: rgba(209,184,137,.32); font-style: italic; }
.w7-pagination { display: flex; justify-content: center; gap: 7px; margin: 30px 0; }
.w7-pagination .page-numbers { padding: 8px 12px; border: 1px solid rgba(56,39,24,.45); background: rgba(234,217,184,.8); text-decoration: none; }

/* Responsive */
@media (max-width: 1120px) {
  .w7-header-inner { grid-template-columns: 180px 1fr auto; gap: 14px; }
  .w7-primary-nav ul { gap: 14px; }
  .w7-primary-nav a { font-size: .66rem; }
  .w7-shop-layout { grid-template-columns: 165px minmax(0,1fr); }
  .w7-cart-panel { grid-column: 1 / -1; position: static; }
  .w7-reward-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .admin-bar .w7-site-header { top: 46px; }
  .w7-header-inner { grid-template-columns: 1fr auto auto; min-height: 68px; }
  .w7-menu-toggle { display: inline-block; }
  .w7-primary-nav { display: none; grid-column: 1 / -1; padding-bottom: 14px; }
  .w7-primary-nav.is-open { display: block; }
  .w7-primary-nav ul { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; }
  .w7-primary-nav a { display: block; padding: 12px; border-top: 1px solid rgba(183,151,95,.2); }
  .w7-header-buy { display: none; }
  .w7-footer-main { grid-template-columns: repeat(2,1fr); }
  .w7-footer-identity { grid-column: 1 / -1; }
  .w7-grid--4, .w7-grid--6 { grid-template-columns: repeat(2,1fr); }
  .w7-home-hero .w7-wrap { grid-template-columns: 1fr; text-align: center; }
  .w7-home-copy { margin-inline: auto; }
  .w7-home-book { width: min(320px,70vw); }
  .w7-retailer-row { grid-template-columns: repeat(2,1fr); }
  .w7-home-panels-grid, .w7-home-shop-mail-grid { grid-template-columns: 1fr; }
  .w7-book-hero-grid, .w7-feature-record, .w7-author-grid { grid-template-columns: 1fr; }
  .w7-edition-grid, .w7-place-grid { grid-template-columns: repeat(2,1fr); }
  .w7-world-copy, .w7-shop-copy, .w7-support-copy, .w7-travellers-copy, .w7-journal-hero-copy, .w7-archive-copy { width: auto; max-width: 620px; margin-left: 0; }
  .w7-world-notes-grid { grid-template-columns: repeat(3,1fr); }
  .w7-world-notes-grid .w7-dark-box { grid-column: 1 / -1; }
  .w7-world-closing-grid { grid-template-columns: 1fr; }
  .w7-people-grid, .w7-post-grid { grid-template-columns: repeat(2,1fr); }
  .w7-archive-grid { grid-template-columns: repeat(3,1fr); }
  .w7-journal-layout { grid-template-columns: 1fr; }
  .w7-traveller-tabs { grid-template-columns: repeat(3,1fr); }
  .w7-shop-layout { grid-template-columns: 1fr; }
  .w7-shop-sidebar { order: 2; }
  .w7-value-grid { grid-template-columns: repeat(2,1fr); }
  .w7-campaign-summary { grid-template-columns: 1fr; }
  .w7-author-contact-grid, .w7-author-review-grid { grid-template-columns: repeat(2,1fr); }
  .w7-art-section { background-image: var(--section-bg-mobile, var(--section-bg)); background-size: cover; }
}
@media (max-width: 620px) {
  :root { --w7-gutter: 14px; }
  .w7-brand .large { font-size: 1.25rem; }
  .w7-brand .small, .w7-brand .author { font-size: .55rem; }
  .w7-page-title { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .w7-grid--2, .w7-grid--3, .w7-grid--4, .w7-grid--6, .w7-edition-grid, .w7-place-grid, .w7-people-grid, .w7-post-grid, .w7-archive-featured-grid, .w7-archive-grid, .w7-reward-grid, .w7-author-contact-grid, .w7-author-review-grid, .w7-value-grid { grid-template-columns: 1fr; }
  .w7-home-hero { min-height: 760px; }
  .w7-home-hero .w7-wrap { padding-block: 55px; }
  .w7-home-copy { background: rgba(232,214,181,.86); }
  .w7-retailer-row { grid-template-columns: 1fr; }
  .w7-book-hero, .w7-world-hero, .w7-travellers-hero, .w7-shop-hero, .w7-support-hero-page, .w7-author-hero { min-height: auto; }
  .w7-world-notes-grid { grid-template-columns: 1fr 1fr; }
  .w7-map-marker { display: none; }
  .w7-traveller-tabs { grid-template-columns: 1fr 1fr; }
  .w7-moderation-strip .w7-wrap, .w7-create-row, .w7-footer-bottom { flex-direction: column; }
  .w7-form-row, .w7-signup-row { grid-template-columns: 1fr; }
  .w7-newsletter form, .w7-newsletter .mc4wp-form-fields { grid-template-columns: 1fr; }
  .w7-footer-main { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr!important; }
  .w7-author-portrait { max-width: 300px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}

/* ================================================================
   V7.1 — INDIVIDUAL CELL ARTWORK SYSTEM
   Section artwork is only the paper/environment. Every editable cell
   carries its own replaceable graphic background beneath live HTML.
   ================================================================ */
.w7-cell {
  --cell-bg: url('assets/images/cells/cell-landscape-1.webp');
  position: relative;
  isolation: isolate;
  color: var(--w7-ink);
  background-color: transparent;
  background-image: var(--cell-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: 0;
  box-shadow: 0 10px 24px rgba(41,30,17,.14);
  padding: clamp(24px, 3vw, 42px);
}
.w7-cell > * { position: relative; z-index: 1; }
.w7-cell--compact { padding: 18px 20px; }
.w7-cell--dark { color: #dbc49a; background-image: var(--cell-bg); padding: clamp(28px,4vw,52px); }
.w7-cell--dark .w7-eyebrow { color: #c0a678; }
.w7-centred-title { text-align: center; margin-bottom: 22px; }
.w7-button--compact { min-height: 34px; padding: 7px 12px; font-size: .67rem; }

/* Existing reusable cells no longer use flat beige rectangles. */
.w7-paper-box {
  background-color: transparent;
  background-image: url('assets/images/cells/cell-landscape-6.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: 0 10px 24px rgba(41,30,17,.14);
  padding: clamp(26px,3vw,44px);
}
.w7-card {
  background-color: transparent;
  background-image: url('assets/images/cells/cell-portrait-5.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: 0 9px 20px rgba(34,24,15,.15);
  padding: 18px;
}
.w7-grid > .w7-card:nth-child(3n+2) { background-image: url('assets/images/cells/cell-portrait-6.webp'); }
.w7-grid > .w7-card:nth-child(3n+3) { background-image: url('assets/images/cells/cell-portrait-7.webp'); }
.w7-card__image { border: 1px solid rgba(56,39,24,.34); }
.w7-card__body { padding: 16px 8px 8px; }

/* Homepage: purchase cells and live rune labels restored. */
.w7-home-hero { min-height: clamp(820px, 78vw, 1080px); }
.w7-home-copy { max-width: 760px; background: none; border: 0; backdrop-filter: none; }
.w7-home-buy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.w7-home-buy-card { min-height: 145px; display: flex; flex-direction: column; justify-content: center; text-align: center; box-shadow: 0 6px 13px rgba(41,30,17,.12); }
.w7-home-buy-card h2 { font-size: 1rem; margin: 0 0 4px; }
.w7-home-buy-card p { margin: 0 0 10px; font-size: .78rem; }
.w7-home-buy-card .w7-button { align-self: center; margin-top: auto; }
.w7-rune-band { background: #d1b889 url('assets/images/texture-parchment.webp') repeat; border-block: 4px solid #171a16; }
.w7-rune-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.w7-rune { min-height: 150px; padding: 14px 8px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; text-decoration: none; border-inline-end: 1px solid rgba(56,39,24,.34); }
.w7-rune:first-child { border-inline-start: 1px solid rgba(56,39,24,.34); }
.w7-rune img { width: 110px; height: 72px; object-fit: cover; mix-blend-mode: multiply; }
.w7-rune span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.w7-rune:hover { background: rgba(255,246,221,.26); }
.w7-home-panel-cell { min-height: 350px; display: flex; flex-direction: column; justify-content: center; }
.w7-home-panel--people { background: none; min-height: 410px; }
.w7-home-shop-cell, .w7-home-mail-cell { min-height: 330px; }
.w7-home-shop-cell .w7-card { padding: 10px; }
.w7-home-shop-cell .w7-card__body { padding: 9px 2px 2px; }
.w7-home-shop-cell .w7-card__title { font-size: 1rem; }

/* Book page: plain paper sections; each cell owns its frame. */
.w7-book-buy, .w7-book-info, .w7-book-reviews {
  background-color: var(--w7-paper);
  background-size: cover;
}
.w7-book-hero-cell { max-width: 760px; }
.w7-edition-card { min-height: 315px; display: flex; flex-direction: column; justify-content: center; text-align: center; background-color: transparent; border: 0; padding: 34px 28px; }
.w7-edition-card h3 { font-size: 1.26rem; margin: 6px 0 10px; }
.w7-edition-card .w7-button { align-self: center; margin-top: auto; }
.w7-info-cell { min-height: 285px; display: flex; flex-direction: column; justify-content: center; }
.w7-info-cell h2 { margin-top: 0; }
.w7-info-cell .w7-button { align-self: flex-start; }
.w7-review-grid { align-items: stretch; }
.w7-review-cell { min-height: 265px; padding: 28px; }
.w7-review-cell .w7-card { min-height: 100%; padding: 0; background: none; border: 0; box-shadow: none; }
.w7-review-empty { grid-column: 1/-1; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; }
.w7-support-band .w7-cell--dark { width: min(820px,100%); text-align: center; }

/* Other dynamic cells throughout the theme receive real paper skins. */
.w7-reward-card,
.w7-shop-sidebar,
.w7-cart-panel,
.w7-traveller-tabs a,
.w7-note-thumb,
.w7-filter-row a,
.w7-pagination .page-numbers,
.woocommerce ul.products li.product {
  background-color: transparent!important;
  background-image: url('assets/images/cells/cell-portrait-8.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0!important;
  box-shadow: 0 8px 18px rgba(34,24,15,.13);
}
.w7-traveller-tabs a,
.w7-filter-row a,
.w7-pagination .page-numbers { background-image: url('assets/images/cells/cell-landscape-5.webp'); }
.w7-shop-sidebar, .w7-cart-panel { background-image: url('assets/images/cells/cell-portrait-3.webp'); padding: 28px; }
.woocommerce ul.products li.product:nth-child(3n+2) { background-image: url('assets/images/cells/cell-portrait-4.webp'); }
.woocommerce ul.products li.product:nth-child(3n+3) { background-image: url('assets/images/cells/cell-portrait-6.webp'); }
.w7-reward-card:nth-child(3n+2) { background-image: url('assets/images/cells/cell-portrait-2.webp'); }
.w7-reward-card:nth-child(3n+3) { background-image: url('assets/images/cells/cell-portrait-7.webp'); }

@media (max-width: 900px) {
  .w7-home-hero { min-height: auto; }
  .w7-home-copy { max-width: 680px; }
  .w7-rune-grid { grid-template-columns: repeat(5,1fr); }
  .w7-rune { min-height: 128px; }
  .w7-rune img { width: 86px; height: 58px; }
  .w7-edition-card { min-height: 285px; }
}
@media (max-width: 620px) {
  .w7-cell { background-size: 100% 100%; padding: 28px 24px; }
  .w7-home-buy-grid { grid-template-columns: 1fr; }
  .w7-home-buy-card { min-height: 135px; }
  .w7-rune-grid { grid-template-columns: repeat(2,1fr); }
  .w7-rune:last-child { grid-column: 1/-1; }
  .w7-rune { border-bottom: 1px solid rgba(56,39,24,.34); }
  .w7-home-panel, .w7-home-shop, .w7-home-mail { padding: 12px; }
  .w7-home-panel-cell, .w7-home-shop-cell, .w7-home-mail-cell { min-height: auto; }
  .w7-edition-card, .w7-info-cell { min-height: auto; }
  .w7-review-empty { min-height: 240px; }
}

/* Homepage master composition: live text/cells aligned over the approved artwork. */
.w7-home-hero { position: relative; min-height: 0; aspect-ratio: 1672 / 941; background-size: 100% 100%; background-position: center; }
.w7-home-stage { position: relative; width: 100%; height: 100%; min-height: inherit; }
.w7-home-title-copy { position: absolute; left: 24.5%; top: 10.5%; width: 25%; max-width: 440px; z-index: 3; }
.w7-home-title-copy .w7-page-title { font-size: clamp(2.3rem,4.2vw,4.8rem); }
.w7-home-title-copy .w7-lede { font-size: clamp(.84rem,1.15vw,1.15rem); max-width: 34ch; }
.w7-home-title-copy .w7-prose { font-size: .88rem; max-height: 7.5em; overflow: hidden; }
.w7-home-book { position: absolute; left: 8.7%; bottom: 7.2%; width: 24%; max-width: 430px; z-index: 4; }
.w7-home-buy-stack { position: absolute; left: 34%; top: 42.3%; width: 11.2%; display: grid; gap: .9%; z-index: 5; }
.w7-home-buy-card { min-height: 0; height: 4.6vw; max-height: 76px; padding: .38vw .55vw; display: grid; grid-template-columns: 1fr auto; align-content: center; text-align: left; box-shadow: none; background-size: 100% 100%; }
.w7-home-buy-card h2 { margin: 0; font-size: clamp(.5rem,.72vw,.8rem); line-height: 1.1; }
.w7-home-buy-card p { display: none; }
.w7-home-buy-card > a { text-decoration: none; font-size: 1rem; align-self: center; }
.w7-home-buy-status { grid-column: 1/-1; font-size: clamp(.42rem,.55vw,.64rem); text-transform: uppercase; letter-spacing: .05em; opacity: .72; }
.w7-home-quote { position: absolute; left: 25.2%; bottom: 6.5%; width: 27%; margin: 0; font-size: clamp(.58rem,.78vw,.86rem); font-style: italic; text-align: center; z-index: 3; }
.w7-home-quote p { margin: 0 0 3px; }
.w7-home-quote cite { font-size: .8em; }
.w7-home-rune-labels { position: absolute; left: 55.7%; bottom: 8.4%; width: 40.8%; display: grid; grid-template-columns: repeat(5,1fr); z-index: 5; }
.w7-home-rune-labels a { padding: 0 .25vw; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.48rem,.63vw,.72rem); line-height: 1.12; }
.w7-rune-band { display: none; }

@media (max-width: 900px) {
  .w7-home-hero { aspect-ratio: auto; background-size: cover; background-position: center top; padding: 36px 0; }
  .w7-home-stage { width: min(760px,calc(100% - 28px)); margin-inline: auto; display: grid; gap: 18px; }
  .w7-home-title-copy, .w7-home-book, .w7-home-buy-stack, .w7-home-quote, .w7-home-rune-labels { position: static; width: auto; max-width: none; }
  .w7-home-title-copy { background: rgba(235,217,181,.9); padding: 26px; border: 1px solid rgba(56,39,24,.42); }
  .w7-home-book { width: min(330px,74vw); justify-self: center; }
  .w7-home-buy-stack { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .w7-home-buy-card { height: auto; max-height: none; min-height: 135px; padding: 24px; display: flex; text-align: center; }
  .w7-home-buy-card h2 { font-size: 1rem; }
  .w7-home-buy-card p { display: block; }
  .w7-home-buy-status { font-size: .7rem; }
  .w7-home-quote { padding: 22px; background: rgba(235,217,181,.88); border: 1px solid rgba(56,39,24,.4); font-size: .92rem; }
  .w7-home-rune-labels { grid-template-columns: repeat(5,1fr); background: rgba(235,217,181,.9); padding: 16px 8px; border: 1px solid rgba(56,39,24,.4); }
  .w7-home-rune-labels a { font-size: .67rem; }
}
@media (max-width: 620px) {
  .w7-home-buy-stack { grid-template-columns: 1fr; }
  .w7-home-rune-labels { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .w7-home-rune-labels a:last-child { grid-column: 1/-1; }
}
