/*
Theme Name: Cub & Compass
Theme URI: https://cubandcompass.co.uk
Author: Cub & Compass
Description: Purpose-built lightweight theme for cubandcompass.co.uk. Storybook-editorial design: parchment, sage, fox rust and bark, Fraunces and Karla type, watercolour washes and keyline artboard frames. No page-builder dependencies.
Version: 1.1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cubcompass
*/

/* ==========================================================================
   Cub & Compass — storybook editorial mock-up
   Palette drawn from the brand artboards: parchment, sage, fox rust,
   bark brown, denim blue, charcoal ink (#414141 from the wordmark).
   ========================================================================== */

:root {
  --parchment:      #F8F4EA;
  --parchment-deep: #F1EADA;
  --ink:            #414141;
  --ink-soft:       #5d5a52;
  --bark:           #7A5A40;
  --keyline:        #C2A382;
  --fox:            #C96F3B;
  --fox-deep:       #A85527;
  --sage:           #8FA07E;
  --sage-soft:      #C6CFB4;
  --meadow:         #6E8258;
  --denim:          #7292B2;
  --denim-soft:     #C3D2E0;
  --paper-line:     rgba(122, 90, 64, .18);

  --font-display: "Fraunces", Georgia, serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(65, 65, 65, .45);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.48 0 0 0 0 0.38 0 0 0 0 0.26 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--parchment); padding: .6em 1em;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 99; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .45em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

p { margin: 0 0 1em; }

a { color: var(--fox-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fox); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--meadow); margin-bottom: 1.1em;
}
.eyebrow .icon { color: var(--fox); }

.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 34em; }

.section-sub { color: var(--ink-soft); max-width: 40em; }

.center { text-align: center; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon.big { width: 54px; height: 54px; }

/* ---------- buttons & forms ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .78em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-fox { background: var(--fox); color: #fff; }
.btn-fox:hover { background: var(--fox-deep); color: #fff; }

.btn-bark { background: var(--bark); color: #fff; }
.btn-bark:hover { background: #64472f; color: #fff; }

.btn-ghost {
  background: transparent; color: var(--bark);
  border-color: var(--keyline);
}
.btn-ghost:hover { background: var(--parchment-deep); color: var(--bark); }

.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4em; }
.signup input {
  flex: 1 1 220px;
  font: inherit; color: var(--ink);
  padding: .78em 1.2em;
  border: 1.5px solid var(--keyline);
  border-radius: 999px;
  background: #fff;
}
.signup input:focus { outline: 2px solid var(--fox); outline-offset: 1px; border-color: transparent; }

.smallprint { font-size: .85rem; color: var(--ink-soft); margin-top: .9em; }

.textlink { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--keyline); }
.textlink:hover { border-color: var(--fox); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; gap: 24px;
}

.brand img { width: 190px; height: auto; }

.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  display: block; padding: .5em .9em;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-radius: 999px;
  transition: background-color .15s ease;
}
.nav-menu a:hover { background: var(--parchment-deep); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--fox-deep); }
.nav-menu .nav-cta {
  border: 1.5px solid var(--fox);
  color: var(--fox-deep); margin-left: 8px;
}
.nav-menu .nav-cta:hover { background: var(--fox); color: #fff; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: 72px 150px; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}

/* watercolour washes */
.wash {
  position: absolute; border-radius: 50% 42% 55% 45% / 48% 55% 42% 52%;
  filter: blur(52px); opacity: .5; pointer-events: none;
}
.wash-sage { width: 620px; height: 480px; background: var(--sage-soft); top: -140px; right: -120px; }
.wash-fox  { width: 420px; height: 380px; background: #EED3BC; bottom: -60px; left: -140px; opacity: .65; }

/* Washes are absolutely positioned so they'd otherwise paint over in-flow
   text; every sibling .wrap lifts above them (the hero already does). */
.wash + .wrap, .wrap:has(+ .wash) { position: relative; z-index: 1; }

.hero-art { position: relative; margin: 0; }

.postcard {
  background: #fff;
  padding: 14px 14px 12px;
  border: 1px solid var(--keyline);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(1.6deg);
  transition: transform .3s ease;
}
.postcard:hover { transform: rotate(.4deg) translateY(-4px); }
.postcard img { border-radius: 3px; }
.postcard figcaption {
  font-family: var(--font-hand);
  font-size: 1.2rem; color: var(--ink-soft);
  text-align: center; padding-top: 10px;
}

.compass-rose {
  position: absolute; width: 92px; height: 92px;
  right: -26px; top: -34px;
  color: var(--bark);
  transform: rotate(-8deg);
  font-family: var(--font-display);
}
.compass-rose.lg { position: static; width: 200px; height: 200px; transform: none; }

.hills { position: absolute; inset-inline: 0; bottom: -1px; line-height: 0; }
.hills svg { width: 100%; height: 110px; }

/* ---------- shared section rhythm ---------- */

section { padding-block: 84px; }

.section-deep { background: var(--parchment-deep); }

.section-head { margin-bottom: 44px; }
.section-head.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

/* ---------- paths / categories ---------- */

.paths { position: relative; padding-top: 64px; }

.trail { margin: -10px 0 6px; }
.trail svg { width: 100%; height: 60px; }

.path-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px; list-style: none; margin: 0; padding: 0;
}
.path-grid .path-card { flex: 0 1 calc((100% - 44px) / 3); }

.path-card {
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-radius: var(--radius);
  padding: 26px 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.path-card h3 { margin-top: 18px; }
.path-card h3 a { color: var(--ink); text-decoration: none; }
.path-card h3 a:hover { color: var(--fox-deep); }
.path-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.wash-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.chip-sage  { background: var(--sage-soft); color: var(--meadow); }
.chip-denim { background: var(--denim-soft); color: #4A6A8C; }
.chip-fox   { background: #F0D5C0; color: var(--fox-deep); }
.chip-bark  { background: #E4D5C4; color: var(--bark); }
.chip-berry { background: #EAD1D1; color: #9C4F4F; }

/* ---------- blog ---------- */

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}

.post-card {
  border: 1px solid var(--keyline);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.post-link { display: block; color: inherit; text-decoration: none; height: 100%; }

.post-art {
  display: grid; place-items: center;
  height: 150px;
  border-bottom: 1px solid var(--paper-line);
}
.tint-sage  { background: linear-gradient(160deg, #E9EDDD, var(--sage-soft)); color: var(--meadow); }
.tint-denim { background: linear-gradient(160deg, #E3EAF1, var(--denim-soft)); color: #4A6A8C; }
.tint-fox   { background: linear-gradient(160deg, #F6E5D5, #F0D0B4); color: var(--fox-deep); }

.post-body { padding: 22px 22px 24px; }

.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .8rem; color: var(--ink-soft); margin-bottom: .9em;
}

.tag {
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  font-size: .72rem; padding: .32em .8em; border-radius: 999px;
}
.tag-sage  { background: var(--sage-soft); color: #4c5d3c; }
.tag-denim { background: var(--denim-soft); color: #3d5975; }
.tag-fox   { background: #F0D5C0; color: var(--fox-deep); }

.post-card h3 { font-size: 1.18rem; }
.post-card .post-body p:last-child { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- shop ---------- */

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-bottom: 40px;
}

.product-card h3 { font-size: 1.15rem; margin: 16px 0 2px; text-align: center; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a:hover { color: var(--fox-deep); }

.price {
  text-align: center; font-weight: 700; color: var(--bark); margin: 0;
}

.artboard { position: relative; }

.artboard-frame {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--keyline);
  outline: 1px solid var(--paper-line);
  outline-offset: -9px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.product-card:hover .artboard-frame { transform: translateY(-5px) rotate(-.6deg); }

/* Front-of-house product frames: a square kitchen-table scene so portrait and
   landscape sheets both lie naturally without changing the card footprint. */
.product-card .artboard-frame {
  aspect-ratio: 1 / 1;
  position: relative;
  background:
    radial-gradient(130% 105% at 50% -12%, rgba(255, 249, 238, .30), rgba(74, 46, 22, .16) 80%),
    repeating-linear-gradient(90deg, rgba(96, 62, 32, .13) 0 2px, rgba(255, 255, 255, .05) 2px 4px, transparent 4px 56px),
    linear-gradient(160deg, #C7A377, #AE8A5C);
  border-color: #A5825A;
  outline: none;
}
.product-card .artboard-frame img {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: auto; height: auto; max-width: 82%; max-height: 82%;
  object-fit: contain; border-radius: 3px;
  box-shadow: 0 12px 22px -10px rgba(58, 36, 23, .55), 0 3px 8px rgba(58, 36, 23, .28);
  rotate: -1.6deg;
}
.product-card:nth-child(even) .artboard-frame img { rotate: 1.3deg; }
@media (prefers-reduced-motion: no-preference) {
  .product-card .artboard-frame img { transition: rotate .25s ease; }
  .product-card:hover .artboard-frame img { rotate: 0deg; }
}

.ribbon {
  position: absolute; top: 12px; right: -8px;
  background: var(--fox); color: #fff;
  font-family: var(--font-hand); font-size: 1rem; font-weight: 600;
  padding: .4em .9em;
  border-radius: 4px 4px 4px 0;
  box-shadow: 0 3px 8px -3px rgba(65,65,65,.4);
}
.ribbon::after {
  content: ""; position: absolute; right: 0; bottom: -6px;
  border: 3px solid var(--fox-deep);
  border-color: var(--fox-deep) transparent transparent var(--fox-deep);
}

/* ---------- about ---------- */

.about-inner {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 64px; align-items: center;
}
.about-art { color: var(--bark); display: grid; place-items: center; }
.about-copy h2 { max-width: 14em; }
.about-copy p { max-width: 38em; color: var(--ink-soft); }

/* ---------- newsletter ---------- */

.follow { padding-block: 72px; }

.follow-card {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: center;
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-radius: calc(var(--radius) + 6px);
  padding: 48px 52px;
  box-shadow: var(--shadow);
}
.follow-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.follow-card p { color: var(--ink-soft); margin: 0; }
.follow-card .signup { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink); color: #DDD8CC;
  padding-top: 64px; margin-top: 20px;
}

.footer-inner {
  display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; padding-bottom: 40px;
}

.footer-brand img { width: 180px; margin-bottom: 18px; }
.footer-brand p { max-width: 30em; font-size: .95rem; color: #B9B4A6; }

.footer-nav ul {
  display: flex; gap: 4px 26px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.footer-nav a { color: #DDD8CC; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-base {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 22px;
  font-size: .85rem; color: #A39E8F;
}
.footer-base p { margin: 0; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-late { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-block: 48px 130px; }
  .hero-art { order: -1; max-width: 350px; margin: 0 auto; }
  .hero-inner { gap: 28px; }
  .compass-rose { width: 66px; right: -8px; top: -22px; }
  .path-grid .path-card { flex-basis: calc((100% - 22px) / 2); }
  .post-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-art { justify-items: start; }
  .compass-rose.lg { width: 120px; height: 120px; }
  .follow-card { grid-template-columns: 1fr; padding: 36px 32px; }
  .trail { display: none; }
}

@media (max-width: 640px) {
  .post-grid, .product-grid, .path-grid { grid-template-columns: 1fr; }
  .path-grid .path-card { flex-basis: 100%; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 1.5px solid var(--keyline); border-radius: 8px;
    padding: 10px; cursor: pointer;
  }
  .nav-toggle-bar { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

  .nav-menu {
    display: none;
    position: absolute; top: 100%; right: 24px; left: 24px;
    flex-direction: column; align-items: stretch;
    background: var(--parchment);
    border: 1px solid var(--keyline); border-radius: var(--radius);
    padding: 12px; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-cta { margin-left: 0; text-align: center; }
}

/* Inner-page patterns: page heads, article prose, blog listing, product,
   contact, gallery. Loaded after style.css on inner pages. */

/* ---------- page head ---------- */

.page-head { position: relative; overflow: hidden; padding-block: 56px 30px; }
.page-head .eyebrow { margin-bottom: .7em; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 16em; }
.page-head .lede { margin-top: .2em; }

.breadcrumb {
  font-size: .85rem; color: var(--ink-soft);
  display: flex; gap: .6em; flex-wrap: wrap;
  margin: 0 0 1.6em; padding: 0; list-style: none;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin-right: .6em; color: var(--keyline); }

/* ---------- filter pills ---------- */

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 40px; padding: 0; list-style: none; }
.pill {
  display: inline-block; padding: .45em 1.1em;
  border: 1.5px solid var(--keyline); border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--bark);
  text-decoration: none; background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.pill:hover { background: var(--parchment-deep); color: var(--bark); }
.pill.on { background: var(--bark); border-color: var(--bark); color: #fff; }

/* ---------- featured post ---------- */

.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--keyline); border-radius: var(--radius);
  overflow: hidden; background: #fff; margin-bottom: 44px;
  box-shadow: var(--shadow);
}
.featured-post .post-art { aspect-ratio: auto; height: 100%; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--paper-line); }
.featured-post .post-body { padding: 40px 44px; align-self: center; }
.featured-post h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.featured-post h2 a { color: var(--ink); text-decoration: none; }
.featured-post h2 a:hover { color: var(--fox-deep); }

/* ---------- pagination ---------- */

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; padding: 0; list-style: none; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 42px; height: 42px;
  border: 1.5px solid var(--keyline); border-radius: 50%;
  font-weight: 700; text-decoration: none; color: var(--bark); padding-inline: 8px;
}
.pagination .now { background: var(--bark); border-color: var(--bark); color: #fff; }
.pagination a:hover { background: var(--parchment-deep); }

/* ---------- single post / prose ---------- */

.article-head { max-width: 760px; margin-inline: auto; text-align: center; padding-top: 26px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .4em; }
.article-meta {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  font-size: .9rem; color: var(--ink-soft); flex-wrap: wrap;
}
.article-hero {
  max-width: 860px; margin: 36px auto 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--keyline); box-shadow: var(--shadow);
}
.article-hero .post-art { height: 300px; border-bottom: 0; }

.prose { max-width: 680px; margin-inline: auto; padding-block: 48px 8px; }
.prose p { margin-bottom: 1.35em; color: #4a4a45; }
.prose .standfirst { font-size: 1.22rem; font-family: var(--font-display); font-style: italic; color: var(--ink); }
.prose h2 {
  font-size: 1.55rem; margin-top: 1.8em;
  display: flex; align-items: center; gap: .5em;
}
.prose h2 .icon { color: var(--fox); flex: none; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.35em; }
.prose li { margin-bottom: .5em; color: #4a4a45; }
.prose li strong { color: var(--ink); }

.callout {
  border: 1px solid var(--keyline); border-radius: var(--radius);
  background: var(--parchment-deep);
  padding: 26px 28px; margin: 2.2em 0;
  display: flex; gap: 20px; align-items: center;
}
.callout .icon.big { width: 44px; height: 44px; color: var(--fox-deep); }
.callout h3 { margin: 0 0 .2em; font-size: 1.12rem; }
.callout p { margin: 0; font-size: .95rem; }

.author-box {
  max-width: 680px; margin: 40px auto 0;
  display: flex; gap: 20px; align-items: center;
  border-top: 1px solid var(--paper-line); padding-top: 32px;
}
.author-avatar {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%; border: 1px solid var(--keyline);
  background: #fff; display: grid; place-items: center; overflow: hidden;
}
.author-avatar img { width: 46px; height: auto; }
.author-box p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.author-box strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }

.related { padding-top: 64px; }
.related .post-grid { grid-template-columns: 1fr 1fr; max-width: 760px; margin-inline: auto; }

/* ---------- about ---------- */

.about-story {
  display: grid; grid-template-columns: 1.05fr .85fr;
  gap: 64px; align-items: center;
}
.about-story .prose { max-width: none; margin: 0; }

.arch-photo { max-width: 440px; justify-self: center; width: 100%; }
.arch-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 0 0;
}


.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-block: 8px 16px; }
.promise {
  background: #fff; border: 1px solid var(--keyline); border-radius: var(--radius);
  padding: 30px 28px;
  outline: 1px solid var(--paper-line); outline-offset: -8px;
}
.promise .icon { width: 34px; height: 34px; color: var(--fox-deep); margin-bottom: 14px; }
.promise h3 { font-size: 1.15rem; }
.promise p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.signoff {
  font-family: var(--font-hand); font-size: 1.7rem;
  color: var(--bark); text-align: center; margin-top: 40px;
}

/* ---------- shop / product ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 18px; }
.step { text-align: center; padding: 10px 18px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bark); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.product-layout {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: start; padding-block: 10px 30px;
}
.product-gallery .artboard-frame { aspect-ratio: 1 / 1; }
.thumb-row { display: flex; gap: 12px; margin-top: 14px; }
.thumb {
  width: 72px; aspect-ratio: 1/1; border-radius: 8px;
  border: 1.5px solid var(--keyline); display: grid; place-items: center;
  background: #fff; cursor: pointer;
}
.thumb.on { border-color: var(--fox); box-shadow: 0 0 0 2px rgba(201,111,59,.25); }
.thumb .icon { width: 26px; height: 26px; }

.buy-panel h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.buy-panel .price { font-size: 1.5rem; text-align: left; margin: 4px 0 18px; }
.buy-panel > p { color: var(--ink-soft); }

.personalise {
  border: 1px solid var(--keyline); border-radius: var(--radius);
  background: #fff; padding: 24px 26px; margin-block: 22px;
}
.personalise legend {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding-inline: .4em; margin-left: -.4em;
}
.personalise .field { margin-bottom: 16px; }
.personalise label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.personalise input, .personalise select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .65em 1em;
  border: 1.5px solid var(--keyline); border-radius: 10px; background: var(--parchment);
}
.personalise input:focus, .personalise select:focus { outline: 2px solid var(--fox); outline-offset: 1px; }
.personalise .hint { font-size: .82rem; color: var(--ink-soft); margin: 6px 0 0; }

.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.instant { font-size: .85rem; color: var(--ink-soft); }

.product-details { margin-top: 30px; }
.product-details details {
  border-top: 1px solid var(--paper-line); padding: 16px 4px;
}
.product-details summary {
  font-weight: 700; cursor: pointer; font-family: var(--font-display); font-size: 1.02rem;
}
.product-details p { margin: .8em 0 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  padding: 0; margin: 0; list-style: none;
}
.gallery-tile {
  border: 1px solid var(--keyline); border-radius: 10px; background: #fff;
  padding: 10px 10px 12px; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.gallery-tile:nth-child(odd) { transform: rotate(-.8deg); }
.gallery-tile:nth-child(even) { transform: rotate(.7deg); }
.gallery-tile:hover { transform: rotate(0) translateY(-4px); }
.gallery-art { display: grid; place-items: center; aspect-ratio: 1/1; border-radius: 6px; }
.gallery-art .icon { width: 44px; height: 44px; }
.gallery-tile figcaption {
  font-family: var(--font-hand); font-size: 1.1rem;
  color: var(--ink-soft); text-align: center; padding-top: 8px;
}

/* ---------- contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-form {
  background: #fff; border: 1px solid var(--keyline); border-radius: var(--radius);
  padding: 34px 36px; box-shadow: var(--shadow);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7em 1em; border: 1.5px solid var(--keyline); border-radius: 10px;
  background: var(--parchment); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--fox); outline-offset: 1px; }

.contact-aside .promise { margin-bottom: 22px; }

/* ---------- newsletter strip reuse on inner pages ---------- */

.page-follow { padding-block: 56px 72px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .about-story { grid-template-columns: 1fr; gap: 36px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-art { aspect-ratio: 16/9; height: auto; min-height: 180px; border-right: 0; border-bottom: 1px solid var(--paper-line); }
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .related .post-grid { grid-template-columns: 1fr; }
}

/* ---------- WordPress chrome fixes (v1.0.2) ---------- */

/* Dropdown submenus (WP .sub-menu) */
.nav-menu li { position: relative; list-style: none; }
.nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  list-style: none; margin: 6px 0 0; padding: 10px;
  background: var(--parchment); border: 1px solid var(--keyline);
  border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { border-radius: 8px; }

/* Sticky header sits below the WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Product images crop to the artboard frame */
.artboard-frame { overflow: hidden; }
.artboard-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }

/* Submenus render inline inside the mobile menu card */
@media (max-width: 640px) {
  .nav-menu .sub-menu {
    display: block; position: static; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 0 18px; margin: 0;
  }
}

/* Invisible bridge so the dropdown survives a slow mouse crossing the gap */
.nav-menu .sub-menu::before {
  content: ""; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}

/* Contact form result notices */
.form-notice {
  padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
  border: 1px solid var(--keyline); font-weight: 600;
}
.form-notice.ok { background: var(--sage-soft); color: #3d4c30; }
.form-notice.err { background: #F0D5C0; color: var(--fox-deep); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Whole path card is clickable via stretched link */
.path-card { position: relative; }
.path-card h3 a::after { content: ""; position: absolute; inset: 0; }

/* Single-post hero shows featured images at their native 16:9, uncropped */
.article-hero .post-art { height: auto; aspect-ratio: 16 / 9; }

/* Legal pages: sticky contents left, prose right */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
body.admin-bar .legal-toc { top: 128px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--keyline); }
.legal-toc li a {
  display: block; padding: .45em 0 .45em 14px;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border-left: 2px solid transparent; margin-left: -2px;
}
.legal-toc li a:hover { color: var(--fox-deep); border-left-color: var(--fox); }
.legal-prose { max-width: 680px; margin: 0; }
.legal-prose h2 { scroll-margin-top: 110px; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
}

/* Read-time badge pinned to the card art; bark tint completes the category set.
   Card art is a true 16:9 clipped box so covers show uncropped and nothing spills. */
.post-art { position: relative; height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
.post-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.read-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(65, 65, 65, .72); color: #F8F4EA;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .3em .7em; border-radius: 6px;
}
.tint-bark { background: linear-gradient(160deg, #EFE4D4, #E4D5C4); color: var(--bark); }
.tint-berry { background: linear-gradient(160deg, #F3E2E2, #EAD1D1); color: #9C4F4F; }
.tag-bark  { background: #E4D5C4; color: #6B4F3A; }
.tag-berry { background: #EAD1D1; color: #8A4444; }

/* Gentle motion: drifting hills, the family walking the ridge, footprints on the trail. */
.trail .fp { opacity: 0; fill: var(--bark); }
.signup { position: relative; }
.cc-plane { position: absolute; right: 10px; top: 50%; margin-top: -9px; width: 18px; height: 18px; opacity: 0; pointer-events: none; }
.site-footer { position: relative; }
.footer-fox { position: absolute; bottom: -3px; right: 6%; width: 106px; opacity: .95; }
.footer-fox svg { display: block; width: 100%; height: auto; }
.fox-eye-open { opacity: 0; }
.footer-fox:hover .fox-eye { opacity: 0; }
.footer-fox:hover .fox-eye-open { opacity: 1; }
.path-icon use, .eyebrow use, .fox-ear, .fox-tail { transform-box: fill-box; transform-origin: 50% 50%; }
.cc-phone-wrap { position: relative; width: fit-content; margin: 0 auto; }
.cc-phone-wrap::after { content: ""; position: absolute; left: 13%; right: 13%; bottom: -24px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(65, 65, 65, .3), transparent 68%); }
.cc-phone {
  position: relative; width: 256px; margin: 0 auto; padding: 11px; border-radius: 48px;
  background: linear-gradient(160deg, #B7C4A2, #A4B48D);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .45), inset 0 -4px 8px rgba(60, 70, 45, .22), 0 16px 26px -16px rgba(65, 65, 65, .45);
}
.cc-phone.sm { width: 232px; border-radius: 44px; padding: 10px; }
.cc-screen { position: relative; aspect-ratio: 440 / 900; border: 4px solid #171B1C; border-radius: 28px; overflow: hidden; background: #E8ECE7; }
.cc-phone.sm .cc-screen { border-radius: 24px; border-width: 3px; }
.cc-phone .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cc-phone .s1 { opacity: 1; }
.cc-phone-cam { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 11px; height: 11px; border-radius: 50%; background: #101314; box-shadow: inset 0 0 2px 1.5px #2A3134; z-index: 2; }
.cc-phone.sm .cc-phone-cam { top: 16px; width: 10px; height: 10px; }
.app-cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
@media (max-width: 700px) { .app-cta-inner { grid-template-columns: 1fr; text-align: center; } }
.fox-ear { transform-origin: 50% 95%; }
.fox-tail { transform-origin: 88% 20%; }
@media (prefers-reduced-motion: no-preference) {
  .hills-drift, .hills-drift-b { animation: ccDrift 48s linear infinite; }
  .hills-drift-b { animation-duration: 74s; }
  .walker { animation: ccBob 1.5s ease-in-out infinite; }
  .walker.w2 { animation-delay: .18s; animation-duration: 1.22s; }
  .walker.w3 { animation-delay: .34s; animation-duration: .98s; }
  .walker.w4 { animation-delay: .5s; animation-duration: .76s; }
  .hills-family-svg { animation: ccWalkAcross 85s linear infinite; animation-delay: 7s; }
  .compass-rose { animation: ccSway 5.5s ease-in-out 2s infinite; transform-origin: 50% 50%; }
  .trail .fp { animation: ccFoot 16s linear infinite; }
  .path-card:hover use[href="#i-kite"] { animation: ccSwayIcon 1.6s ease-in-out infinite; }
  .path-card:hover use[href="#i-heart"] { animation: ccHeartBeat 1.3s ease-in-out infinite; }
  .path-card:hover use[href="#i-signpost"] { animation: ccWobbleIcon 1s ease-in-out infinite; }
  .path-card:hover use[href="#i-star"] { animation: ccTwinkle 1.4s ease-in-out infinite; }
  .path-card:hover use[href="#i-compass"] { animation: ccNeedle 1.8s ease-in-out infinite; }
  .shop .eyebrow:hover use[href="#i-scissors"] { animation: ccSnip .45s ease-in-out 2; }
  .product-card:hover .ribbon { animation: ccWiggle .6s ease-in-out; }
  .signup.is-flying .cc-plane { animation: ccFly .7s ease-in forwards; }
  .fox-body-g { animation: ccBreathe 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
  .cc-phone .slide { animation: ccAppSlides 15s infinite; }
  .cc-phone .s2 { animation-delay: 5s; }
  .cc-phone .s3 { animation-delay: 10s; }
  .cc-phone { animation: ccFloat 7s ease-in-out infinite; }
  .cc-phone-wrap::after { animation: ccFloatShadow 7s ease-in-out infinite; }
  .footer-fox:hover .fox-ear { animation: ccTwitch .5s ease-in-out 2; }
  .footer-fox:hover .fox-ear.e2 { animation-delay: .12s; }
  .fox-tail { animation: ccTailSwish 5.5s ease-in-out infinite; }
}
@keyframes ccSwayIcon { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
@keyframes ccHeartBeat { 0%, 100% { scale: 1; } 12% { scale: 1.2; } 24% { scale: 1; } 36% { scale: 1.12; } 48% { scale: 1; } }
@keyframes ccWobbleIcon { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
@keyframes ccTwinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.25; rotate: 14deg; opacity: .7; } }
@keyframes ccNeedle { 0%, 100% { rotate: 0deg; } 30% { rotate: 30deg; } 60% { rotate: -18deg; } 80% { rotate: 8deg; } }
@keyframes ccSnip { 0%, 100% { rotate: 0deg; } 50% { rotate: -18deg; } }
@keyframes ccWiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 60% { rotate: 3deg; } }
@keyframes ccFly { 0% { opacity: 1; translate: 0 0; rotate: 0deg; } 100% { opacity: 0; translate: 150px -80px; rotate: 22deg; } }
@keyframes ccBreathe { 0%, 100% { scale: 1 1; } 50% { scale: 1 1.045; } }
@keyframes ccTwitch { 0%, 100% { rotate: 0deg; } 50% { rotate: -14deg; } }
@keyframes ccTailSwish { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
@keyframes ccAppSlides { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ccFloat { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-7px) rotate(.5deg); } }
@keyframes ccFloatShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.88); opacity: .55; } }
/* .hills prefix out-ranks the `.hills svg` sizing rule; -100% hides the
   walkers fully during the animation delay whatever their rendered width */
.hills .hills-family-svg { position: absolute; bottom: 9%; left: 0; width: clamp(58px, 6.3vw, 90px); height: auto; transform: translateX(calc(-100% - 12px)); overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .hills .hills-family-svg { transform: translateX(22vw); }
}
@keyframes ccDrift { to { transform: translateX(-1440px); } }
@keyframes ccWalkAcross { from { transform: translateX(calc(-100% - 12px)); } to { transform: translateX(calc(100vw + 30px)); } }

/* Conifers and rocks planted along the hill band */
.hills .hills-scenery { position: absolute; width: 40px; height: auto; overflow: visible; pointer-events: none; }
.hills .sc1 { left: 12%; bottom: 7%; width: 104px; }
.hills .sc2 { left: 63%; bottom: 12%; width: 68px; }
.hills .sc3 { left: 86%; bottom: 8%; width: 84px; }
@media (max-width: 640px) {
  .hills .sc3 { display: none; }
  .hills .sc1 { left: 8%; }
}
.hills-scenery .tree { transform-box: fill-box; transform-origin: 50% 96%; }
@media (prefers-reduced-motion: no-preference) {
  .hills-scenery .tree { animation: ccTreeSway 11s ease-in-out infinite; }
  .hills-scenery .tree.t2 { animation-delay: 2.6s; animation-duration: 13s; }
  .hills-scenery .tree.t3 { animation-delay: 5s; animation-duration: 9.5s; }
}
@keyframes ccTreeSway { 0%, 100% { rotate: -1deg; } 50% { rotate: 1.2deg; } }
@keyframes ccSway { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }
@keyframes ccBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes ccFoot { 0% { opacity: 0; } 3% { opacity: .4; } 55% { opacity: .4; } 68% { opacity: 0; } 100% { opacity: 0; } }

/* Overlaid card meta: pill bottom-left, read badge flush in the corner */
.post-art .art-tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.read-badge { right: 0; bottom: 0; border-radius: 6px 0 0 0; }

/* WooCommerce buttons and quantity input match the theme */
.woocommerce button.button, .woocommerce a.button,
.woocommerce button.button.alt, .woocommerce a.button.alt,
.woocommerce #respond input#submit {
  background: var(--fox); color: #fff; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700;
  padding: .78em 1.6em; border: 0;
  transition: background-color .18s ease, transform .18s ease;
}
.woocommerce button.button:hover, .woocommerce a.button:hover,
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover {
  background: var(--fox-deep); color: #fff; transform: translateY(-2px);
}
.woocommerce .quantity .qty {
  border: 1.5px solid var(--keyline); border-radius: 10px;
  padding: .6em .4em; background: var(--parchment);
}

/* Cookie consent banner */
#cc-cookies {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 90;
  max-width: 420px; margin-left: auto;
  background: var(--parchment); border: 1px solid var(--keyline);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; font-size: .95rem;
}
#cc-cookies p { margin: 0 0 14px; color: var(--ink-soft); }
#cc-cookies strong { color: var(--ink); }
.cc-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-cookie-actions .btn { font-size: .9rem; padding: .55em 1.2em; }

/* Secondary category dots beside the card pill */
.post-art .art-meta { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; z-index: 1; }
.cat-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(248,244,234,.8); }
.dot-sage  { background: #8FA07E; }
.dot-denim { background: #7292B2; }
.dot-fox   { background: #C96F3B; }
.dot-bark  { background: #7A5A40; }
.dot-berry { background: #C47878; }

/* Customiser canvas takes the gallery slot on personalisable products */
.single-product div.product .cc-canvas-col { width: 48%; float: left; margin-bottom: 2em; }
.single-product div.product .summary { width: 48%; float: right; }
@media (max-width: 768px) {
  .single-product div.product .cc-canvas-col,
  .single-product div.product .summary { width: 100%; float: none; }
}

/* Personalisation fieldset - "Make it theirs" */
.cc-personalise {
  border: 1px solid var(--keyline); border-radius: var(--radius);
  background: #fff; padding: 16px 20px 8px; margin: 0 0 20px;
}
.cc-personalise legend {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding-inline: .45em; margin-left: -.45em;
}
.cc-personalise .cc-hint { font-size: .82rem; color: var(--ink-soft); margin: 0 0 14px; }
.cc-personalise .cc-field { margin: 0 0 14px; }
.cc-personalise label {
  display: flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .9rem; margin-bottom: 6px;
}
.cc-personalise .cc-req { color: var(--fox-deep); }
.cc-dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 2px var(--parchment-deep);
}
.cc-dot-name { background: var(--fox); }
.cc-dot-date { background: var(--denim); }
.cc-personalise input[type="text"],
.cc-personalise input[type="date"],
.cc-personalise select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .6em 1em; background: var(--parchment);
  border: 1.5px solid var(--keyline); border-radius: 10px;
}
.cc-personalise select { cursor: pointer; }
.cc-personalise input:focus, .cc-personalise select:focus {
  outline: 2px solid var(--fox); outline-offset: 1px; border-color: transparent;
}
