/* ==========================================================
   Maple & Moss Studio — site styles
   Colours live in :root so you can re-theme in one place.
   Palette matches the official Maple & Moss brand guidelines:
   Forest Green #2E4F32 · Sage Green #8FA885 · Rust Orange #C85A28
   Warm Cream #FAF5E8 · Soft Brown #8C6D53
   ========================================================== */
:root {
  --cream: #FAF5E8;       /* Warm Cream – backgrounds, paper feel */
  --paper: #FFFFFF;
  --maple: #C85A28;       /* Rust Orange – fox mascot, CTAs, buttons */
  --maple-dark: #A84A21;
  --moss: #2E4F32;        /* Forest Green – logo text, headers, primary buttons */
  --moss-dark: #1F3722;
  --sage-accent: #8FA885; /* Sage Green – accent highlights, moss details, borders */
  --brown: #8C6D53;       /* Soft Brown – subheaders, typography, earthy elements */
  --blush: #EECEB8;       /* Rust Orange tint – tile / band backgrounds */
  --sage: #DFE2CF;        /* Sage Green tint – tile / section backgrounds */
  --butter: #DFD3C3;      /* Soft Brown tint – tile / note backgrounds */
  --sky: #C7CCBB;         /* Forest Green tint – tile backgrounds */
  --ink: #2F2A26;         /* text */
  --muted: #6E655D;
  --line: #EDE2D3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(94, 66, 40, .10);
  --max: 1160px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--moss-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--paper); }
.section--sage { background: var(--sage); }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brown); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn, a.payhip-buy-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover, a.payhip-buy-button:hover { transform: translateY(-2px); }
.btn--primary, a.payhip-buy-button { background: var(--maple); color: #fff; box-shadow: 0 6px 16px rgba(200,90,40,.3); }
.btn--primary:hover, a.payhip-buy-button:hover { background: var(--maple-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--moss { background: var(--moss); color: #fff; }
.btn--moss:hover { background: var(--moss-dark); }
.btn--small, a.payhip-buy-button.btn--small { padding: .55em 1.1em; font-size: .92rem; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; pointer-events: none; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--moss); color: #fff; text-align: center; font-size: .9rem; font-weight: 700; padding: .55em 16px; }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,245,232,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); font-weight: 800; margin-top: 4px; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5em .9em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blush); }
.nav .nav-cta a { background: var(--maple); color: #fff; }
.nav .nav-cta a:hover { background: var(--maple-dark); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .nav a { padding: .8em 1em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--maple); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 1.8em; font-size: .92rem; color: var(--muted); font-weight: 700; }
.hero-trust span::before { content: "✓ "; color: var(--moss); }
.hero-art { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.hero-art .blob { position: absolute; inset: 4%; background: var(--butter); border-radius: 46% 54% 58% 42% / 45% 40% 60% 55%; opacity: .55; }
.hero-fox { position: relative; width: 88%; max-width: 460px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 14px 28px rgba(61,76,56,.2)); }
.hero-spot { position: absolute; width: 110px; right: 2%; bottom: 4%; }
.hero-spot svg { width: 100%; height: auto; filter: drop-shadow(0 6px 12px rgba(61,76,56,.12)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.cat { display: block; padding: 26px 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s; }
.cat:hover { transform: translateY(-4px); }
.cat .ico { font-size: 2rem; line-height: 1; margin-bottom: 14px; display: block; }
.cat h3 { margin-bottom: .3em; }
.cat p { font-size: .95rem; color: var(--muted); margin: 0; }
.cat--blush { background: var(--blush); }
.cat--sage { background: var(--sage); }
.cat--butter { background: var(--butter); }
.cat--sky { background: var(--sky); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cats { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-img { aspect-ratio: 4 / 5; background: var(--sage); position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; border: 1px solid var(--sage-accent); }
.badge--new { background: var(--maple); color: #fff; border-color: transparent; }
.badge--soon { background: var(--ink); color: #fff; border-color: transparent; }
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-type { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin-bottom: .4em; }
.product h3 { font-size: 1.2rem; margin-bottom: .35em; }
.product p { font-size: .95rem; color: var(--muted); }
.product ul.specs { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 6px; }
.product ul.specs li { font-size: .78rem; font-weight: 700; background: var(--cream); border: 1px solid var(--line); padding: .25em .7em; border-radius: 999px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }

/* shop filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.filter { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: .5em 1.1em; font-weight: 800; font-family: var(--font-body); font-size: .95rem; cursor: pointer; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; counter-reset: step; }
.step { background: var(--paper); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--maple); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--blush); }

/* ---------- Books ---------- */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-top: 32px; }
.book-cover { border-radius: 10px; overflow: hidden; box-shadow: 0 16px 30px rgba(0,0,0,.18); aspect-ratio: 8.5 / 11; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book-cover { max-width: 260px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: var(--paper); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--maple); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); }

/* ---------- Newsletter / CTA band ---------- */
.band { background: var(--maple); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); margin: 0; }
.band .btn--ghost { border-color: #fff; color: #fff; }
.band .btn--ghost:hover { background: #fff; color: var(--maple-dark); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-head .lead { margin-inline: auto; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin-inline: auto; background: var(--paper); padding: clamp(24px, 5vw, 48px); border-radius: var(--radius); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.note { background: var(--butter); border-radius: 12px; padding: 14px 18px; font-size: .95rem; margin-bottom: 1.5em; }

/* ---------- Contact ---------- */
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 620px; margin: 32px auto 0; text-align: center; }
.contact-card .email { font-family: var(--font-head); font-size: clamp(1.2rem, 3vw, 1.6rem); word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #EFE6DA; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #EFE6DA; text-decoration: none; }
.site-footer a:hover { color: var(--sage-accent); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-accent); margin-bottom: 1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .5em; }
.foot-brand p { color: #C9BDB0; font-size: .95rem; max-width: 34ch; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #B5A999; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }


/* ---------- Woodland spot illustrations (added) ---------- */
.sprig-divider { display: block; width: 100%; max-width: 180px; height: auto; margin: 6px auto 0; opacity: .75; }
.frame--spot { display: flex; align-items: center; justify-content: center; background: var(--cream, #FAF5E8); border-radius: 28px; padding: 30px; }
.frame--spot svg { width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 8px 16px rgba(61,76,56,.1)); }
.band { position: relative; }
.band-spot { width: 56px; height: 56px; margin-bottom: 10px; }
.band-spot svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.footer-signpost { text-align: center; padding-top: 0; margin-bottom: 28px; opacity: .95; }
.footer-signpost svg { width: 76px; height: 76px; }
@media (max-width: 640px) { .hero-spot { width: 84px; } }
