/*
Theme Name: Marge's Treasures
Theme URI: https://margestreasures.uk
Author: Three Monkey IT
Author URI: https://threemonkey.uk
Description: Colourful classic theme for Marge's Treasures — a storybook cabin in the woods, full of rescued treasures. Illustrated hero with a clickable glowing cabin door, timber beams, polaroids and a cork noticeboard.
Version: 0.5.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marges-treasures
Tags: blog, one-column, custom-menu, custom-logo, featured-images, accessibility-ready
*/

/* ---------------------------------------------------------------
   Self-hosted webfonts (GDPR-friendly).
   Lora   — warm, readable serif for headings. Variable (wght).
   Nunito — rounded, friendly sans for body.  Variable (wght).
   Both SIL Open Font License 1.1.
   Note: no italic Lora file yet — browsers synthesise the italics.
   --------------------------------------------------------------- */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
}

/* ---------------------------------------------------------------
   Palette — storybook cabin in the woods.
   --------------------------------------------------------------- */
:root {
  --mt-teal:  #0E7C6B;
  --mt-amber: #D4872E;
  --mt-berry: #B8334A;
  --mt-plum:  #6B3FA0;
  --mt-cream: #FFF8ED;
  --mt-ink:   #2E1F14;

  --mt-teal-light:  #E0F2EE;
  --mt-amber-light: #FDF0E0;
  --mt-berry-light: #FDE8EC;
  --mt-plum-light:  #F0E8F8;
  --mt-amber-wash:  #F5E1C4;

  --mt-teal-deep:  #0A6558;
  --mt-amber-deep: #B8731F;
  --mt-berry-deep: #96263A;
  --mt-plum-deep:  #543083;

  --mt-amber-glow: #F2A94F;
  --mt-amber-soft: #F2C98A;

  /* Burgundy — deeper than berry, for the Three Monkey IT credit button */
  --mt-burgundy:      #8E2438;
  --mt-burgundy-deep: #6B1728;

  --mt-wood:      #503823;
  --mt-wood-dark: #3C2A18;
  --mt-wood-mid:  #6E4B28;
  --mt-wood-warm: #5A3F26;
  --mt-cork:      #C29663;

  --mt-night-deep: #071E1B;
  --mt-night-mid:  #0B4A40;

  --mt-font-heading: "Lora", Georgia, "Times New Roman", serif;
  --mt-font-body:    "Nunito", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --mt-radius:    10px;
  --mt-radius-lg: 18px;
  --mt-shadow:    0 4px 16px rgba(46, 31, 20, .12);
  --mt-shadow-lg: 0 12px 36px rgba(46, 31, 20, .18);
  --mt-max-width: 1180px;
}

/* ---------------------------------------------------------------
   Reset / base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mt-font-body);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--mt-ink);
  background: var(--mt-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mt-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--mt-berry); }

h1, h2, h3, h4 {
  font-family: var(--mt-font-heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--mt-ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }

a:focus-visible, button:focus-visible {
  outline: 3px dashed var(--mt-berry);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Accessibility
   --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--mt-teal);
  color: #fff;
  padding: .5em 1.5em;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.wrap {
  width: 92%;
  max-width: var(--mt-max-width);
  margin: 0 auto;
}
.wrap--narrow { max-width: 780px; }

section,
.page-content,
.single-post .post-content,
.error-page {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.sec { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.sec-title {
  text-align: center;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  margin-bottom: .35em;
}
.sec-title::before { content: "\2726\00a0"; color: var(--dec, var(--mt-amber)); font-size: .65em; vertical-align: .25em; }
.sec-title::after  { content: "\00a0\2726"; color: var(--dec, var(--mt-amber)); font-size: .65em; vertical-align: .25em; }
.sec-sub {
  text-align: center;
  font-size: 1.12rem;
  color: #5A4636;
  max-width: 52ch;
  margin: 0 auto 2.6em;
}

/* Section colour blocks (inner pages) */
.section--cream  { background: var(--mt-cream); color: var(--mt-ink); }
.section--teal   { background: var(--mt-teal);  color: #fff; }
.section--amber  { background: var(--mt-amber-wash); color: var(--mt-ink); }
.section--berry  { background: var(--mt-berry); color: #fff; }
.section--plum   { background: var(--mt-plum);  color: #fff; }

.section--teal h1, .section--teal h2, .section--teal h3,
.section--berry h1, .section--berry h2, .section--berry h3,
.section--plum h1, .section--plum h2, .section--plum h3 { color: #fff; }

.section--teal a, .section--berry a, .section--plum a { color: var(--mt-amber-light); }

/* ---------------------------------------------------------------
   Buttons — chunky painted-sign style
   --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--mt-font-body);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  padding: .9em 1.9em;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.btn--primary { background: var(--mt-teal); color: #fff; box-shadow: 0 5px 0 var(--mt-teal-deep); }
.btn--secondary { background: var(--mt-amber); color: var(--mt-ink); box-shadow: 0 5px 0 var(--mt-amber-deep); }
.btn--light { background: var(--mt-cream); color: var(--mt-berry); box-shadow: 0 5px 0 rgba(46,31,20,.35); }
.btn--amber { background: var(--mt-amber); color: var(--mt-ink); box-shadow: 0 5px 0 var(--mt-amber-deep); transform: rotate(-1deg); }
.btn--teal { background: var(--mt-teal); color: #fff; box-shadow: 0 5px 0 var(--mt-teal-deep); transform: rotate(-1deg); }
.btn--teal-out {
  background: #FFFDF7;
  color: var(--mt-teal);
  box-shadow: 0 5px 0 var(--mt-teal);
  border: 3px solid var(--mt-teal);
  padding: calc(.9em - 3px) calc(1.9em - 3px);
  transform: rotate(1deg);
}
.btn:hover { transform: rotate(0deg) translateY(-3px); color: inherit; }
.btn--primary:hover, .btn--teal:hover { color: #fff; }
.btn--secondary:hover, .btn--amber:hover { color: var(--mt-ink); }
.btn--light:hover { color: var(--mt-berry); }
.btn--teal-out:hover { color: var(--mt-teal); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(46,31,20,.3); }

/* ---------------------------------------------------------------
   Site header
   --------------------------------------------------------------- */
.site-header {
  background: #FFFDF7;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 6px solid;
  border-image: repeating-linear-gradient(90deg,
    var(--mt-teal) 0 70px, var(--mt-amber) 70px 140px,
    var(--mt-berry) 140px 210px, var(--mt-plum) 210px 280px) 1;
  box-shadow: 0 2px 12px rgba(46,31,20,.08);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }

.site-logo { text-decoration: none; line-height: 1.05; white-space: nowrap; }
.site-logo .site-logo__name {
  display: block;
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--mt-berry);
}
.site-logo .site-logo__tag {
  display: block;
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--mt-teal);
  text-transform: uppercase;
}
.site-logo .site-logo__heart { color: var(--mt-amber); }
.site-logo:hover .site-logo__tag { color: var(--mt-teal-deep); }

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .15rem;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: .5em 1em;
  text-decoration: none;
  font-weight: 700;
  color: var(--mt-ink);
  border-radius: 10px;
  transition: background .15s, color .15s, transform .15s;
}
.main-nav li:nth-child(4n+1) > a:hover { background: var(--mt-teal-light);  color: var(--mt-teal); transform: rotate(-2deg); }
.main-nav li:nth-child(4n+2) > a:hover { background: var(--mt-amber-light); color: var(--mt-amber-deep); transform: rotate(2deg); }
.main-nav li:nth-child(4n+3) > a:hover { background: var(--mt-berry-light); color: var(--mt-berry); transform: rotate(-2deg); }
.main-nav li:nth-child(4n+4) > a:hover { background: var(--mt-plum-light);  color: var(--mt-plum); transform: rotate(2deg); }
.main-nav .current-menu-item > a { background: var(--mt-teal-light); color: var(--mt-teal); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle__bar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--mt-ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------------------------------------------------------------
   Hero — looking at the cabin in the woods
   --------------------------------------------------------------- */
.hero-scene {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 800px);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background-color: var(--mt-night-mid);
  overflow: hidden;
}
.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .75s cubic-bezier(.4, 0, .85, .45);
}
.hero-scene.is-entering .scene-bg { transform: scale(1.7); }
.hero-scene.is-entering .hero-panel { opacity: 0; }
.hero-scene.is-entering .door-hotspot,
.hero-scene.is-entering .door-glow { opacity: 0; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,30,27,.18) 0%, transparent 22%, transparent 72%, rgba(7,30,27,.3) 100%);
  pointer-events: none;
}

.hero-panel {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  background: rgba(255,248,237,.94);
  border: 3px solid var(--mt-wood-mid);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(7,30,27,.45), inset 0 0 0 3px rgba(255,255,255,.6);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 3.5vw, 2.6rem);
  max-width: 580px;
  text-align: center;
  transform: rotate(-.8deg);
  transition: opacity .4s;
}

.hang-sign {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, var(--mt-wood-mid), var(--mt-wood-dark));
  color: var(--mt-amber-soft);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: .55em 1.9em;
  transform: rotate(-1.5deg);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,248,237,.15);
}
.hang-sign::before, .hang-sign::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #241708;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35);
}
.hang-sign::before { left: 9px; }
.hang-sign::after  { right: 9px; }

.hero-script {
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--mt-amber-deep);
  margin: 0 0 .1em;
}
.hero-panel h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.6rem);
  font-weight: 700;
  color: var(--mt-ink);
  margin-bottom: .35em;
}
.hero-panel h1 .w-marge { color: var(--mt-teal); }
.hero-panel h1 .w-treas { color: var(--mt-berry); position: relative; display: inline-block; }
.hero-panel h1 .w-treas svg {
  position: absolute;
  left: 0; right: 0; bottom: -.18em;
  width: 100%; height: .22em;
}
.hero-lead {
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  color: #5A4636;
  max-width: 48ch;
  margin: 0 auto 1.5em;
}
.hero-lead strong { color: var(--mt-ink); }

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-note {
  margin-top: 1.4rem;
  margin-bottom: 0;
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-size: .98rem;
  color: var(--mt-plum);
}

/* Cabin door hotspot — the door itself glows */
.door-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: opacity .3s;
}
.door-glow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(255,225,160,.5), rgba(255,205,120,.22) 55%, transparent 78%);
  border-radius: 42%;
  filter: blur(9px);
  opacity: .7;
  animation: mt-door-breathe 3.2s ease-in-out infinite;
  transition: opacity .3s;
}
@keyframes mt-door-breathe {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.07); }
}
.door-hotspot:hover ~ .door-glow,
.door-hotspot:focus-visible ~ .door-glow {
  opacity: 1;
  transform: scale(1.12);
  animation-play-state: paused;
}
.door-glow .spark {
  position: absolute;
  color: #FFE9B8;
  text-shadow: 0 0 8px rgba(255,233,184,.95);
  filter: none;
  animation: mt-spark 2.1s ease-in-out infinite;
}
.door-glow .spark-1 { top: -7%; left: -5%; font-size: 1.15rem; }
.door-glow .spark-2 { bottom: 3%; right: -8%; font-size: .85rem; animation-delay: 1.1s; }
@keyframes mt-spark {
  0%, 100% { opacity: .2; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1.15); }
}
.door-tag {
  position: absolute;
  left: 50%;
  top: -46px;
  transform: translateX(-50%) rotate(-2deg);
  white-space: nowrap;
  background: linear-gradient(180deg, var(--mt-wood-mid), var(--mt-wood-dark));
  color: var(--mt-amber-soft);
  font-family: var(--mt-font-body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45em 1em;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  pointer-events: none;
  animation: mt-tag-bob 2.8s ease-in-out infinite;
}
.door-tag::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--mt-wood-dark);
}
@keyframes mt-tag-bob {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-2deg) translateY(-5px); }
}

/* Door-light transition */
.enter-flash {
  position: fixed;
  inset: 0;
  z-index: 290;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--dx, 50%) var(--dy, 60%),
    rgba(255,233,184,.98), rgba(242,169,79,.95) 34%, rgba(60,42,24,.98) 78%);
  transition: opacity .45s ease;
}
.enter-flash.is-on { opacity: 1; }

/* ---------------------------------------------------------------
   That's our Marge — teal strip
   --------------------------------------------------------------- */
.marge-strip {
  background-color: var(--mt-teal);
  background-image:
    radial-gradient(ellipse 60% 70% at 8% 10%, rgba(255,248,237,.10), transparent 65%),
    radial-gradient(ellipse 55% 60% at 95% 90%, rgba(7,30,27,.28), transparent 70%),
    radial-gradient(rgba(255,248,237,.07) 2.5px, transparent 3.5px);
  background-size: auto, auto, 40px 40px;
  color: var(--mt-cream);
  overflow: hidden;
}
.marge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.8rem;
}
.marge-copy { text-align: center; max-width: 540px; }
.marge-copy .sec-title { color: var(--mt-cream); --dec: var(--mt-amber-glow); }
.marge-copy .sec-title .heart { color: #F2A0B0; }
.marge-copy p { color: rgba(255,248,237,.94); font-size: 1.12rem; }
.marge-copy .marge-motto {
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--mt-amber-soft);
}

.hero-portrait { position: relative; width: min(400px, 80vw); flex-shrink: 0; }
.doodle { position: absolute; pointer-events: none; }
.doodle svg { display: block; }
.portrait-frame {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 14px 14px 18px;
  box-shadow: 0 0 0 5px var(--mt-wood-dark), 0 18px 40px rgba(0,0,0,.45);
  border-radius: 4px;
  transform: rotate(2deg);
  transition: transform .3s;
}
.portrait-frame:hover { transform: rotate(.5deg) scale(1.01); }
.portrait-frame img { border-radius: 2px; }
.tape {
  position: absolute;
  width: 96px; height: 28px;
  background: rgba(224, 242, 238, .8);
  box-shadow: 0 1px 3px rgba(46,31,20,.15);
  z-index: 2;
}
.tape--tl { top: -13px; left: -26px; transform: rotate(-38deg); }
.tape--tr { top: -13px; right: -26px; transform: rotate(38deg); background: rgba(253, 240, 224, .85); }

.portrait-tagwrap { position: absolute; right: -8px; bottom: -34px; transform: rotate(4deg); z-index: 2; }
.lug-tag {
  position: relative;
  background: var(--mt-amber-wash);
  border: 2px solid rgba(46,31,20,.25);
  border-radius: 8px;
  padding: .5em 1em .5em 1.7em;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: var(--mt-shadow);
  max-width: 250px;
  line-height: 1.4;
  color: var(--mt-ink);
}
.lug-tag::before {
  content: "";
  position: absolute;
  left: .55em; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--mt-cream);
  border: 2px solid rgba(46,31,20,.3);
}
.lug-tag .heart { color: var(--mt-berry); }

/* ---------------------------------------------------------------
   Painted timber beam marquee
   --------------------------------------------------------------- */
.beam {
  background: linear-gradient(180deg, var(--mt-wood-mid), var(--mt-wood));
  transform: rotate(-1.1deg);
  width: 106%;
  margin: -1.3rem -3%;
  box-shadow: 0 8px 20px rgba(46,31,20,.35), inset 0 -5px 0 var(--mt-wood-dark), inset 0 2px 0 rgba(255,248,237,.12);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.beam-track {
  display: flex;
  width: max-content;
  animation: mt-beam-scroll 32s linear infinite;
}
.beam-chunk {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: .6em 0;
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--mt-cream);
}
.beam-chunk span { padding: 0 1.6em; }
.beam-chunk .star { color: var(--mt-amber-glow); font-style: normal; }
@keyframes mt-beam-scroll { to { transform: translateX(-50%); } }

/* Timber divider */
.timber {
  height: 13px;
  background: linear-gradient(180deg, var(--mt-wood-mid), var(--mt-wood-dark));
  box-shadow: inset 0 2px 0 rgba(255,248,237,.15), 0 3px 8px rgba(46,31,20,.25);
}

/* ---------------------------------------------------------------
   Find of the week
   --------------------------------------------------------------- */
.fow {
  background-color: var(--mt-cream);
  background-image: radial-gradient(rgba(46,31,20,.028) 2px, transparent 3px);
  background-size: 26px 26px;
}
.fow-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.fow-copy { text-align: center; max-width: 560px; }
.fow-copy .sec-title { --dec: var(--mt-berry); }
.fow-copy p { color: #4A3826; }
.fow-copy .sample-note {
  font-size: .88rem;
  font-style: italic;
  color: #8C7A6A;
  margin-top: 1.2em;
}

.polaroid-wrap { position: relative; width: min(380px, 80vw); }
.polaroid {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 16px 16px 20px;
  box-shadow: var(--mt-shadow-lg);
  transform: rotate(-2.5deg);
  border-radius: 3px;
  transition: transform .3s;
}
.polaroid:hover { transform: rotate(-.8deg); }
.pol-photo {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(14,124,107,.15), transparent 60%),
    linear-gradient(150deg, var(--mt-amber-light), var(--mt-berry-light));
  border: 3px dashed rgba(184,51,74,.4);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  overflow: hidden;
}
.pol-photo img { width: 100%; height: 100%; object-fit: cover; }
.pol-photo .big { font-size: 4.2rem; line-height: 1; }
.pol-photo .small {
  font-weight: 700;
  font-size: .85rem;
  color: var(--mt-berry);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pol-caption {
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-size: 1.25rem;
  text-align: center;
  color: var(--mt-ink);
  padding-top: .7em;
  margin: 0;
}
.shelf-plank {
  position: relative;
  z-index: 0;
  height: 16px;
  width: 116%;
  margin: -4px -8% 0;
  background: linear-gradient(180deg, var(--mt-wood-mid), var(--mt-wood-dark));
  border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(255,248,237,.18), 0 10px 18px rgba(46,31,20,.3);
}
.fow-ribbon {
  position: absolute;
  top: -20px; left: -14px;
  z-index: 3;
  background: var(--mt-berry);
  color: var(--mt-cream);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55em 1.2em;
  border-radius: 8px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 0 var(--mt-berry-deep);
}

/* ---------------------------------------------------------------
   What you'll find in the grotto
   --------------------------------------------------------------- */
.grotto { background-color: var(--mt-cream); }
.grotto .sec-title { --dec: var(--mt-plum); }
.grotto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: 1rem;
}
.grotto-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  box-shadow: var(--mt-shadow);
  transition: transform .25s, box-shadow .25s;
}
.grotto-card:nth-child(1) { background: var(--mt-teal-light);  border: 3px dashed var(--mt-teal);  transform: rotate(-1.3deg); }
.grotto-card:nth-child(2) { background: var(--mt-amber-light); border: 3px solid  var(--mt-amber); transform: rotate(1deg); }
.grotto-card:nth-child(3) { background: var(--mt-berry-light); border: 3px dotted var(--mt-berry); transform: rotate(-.7deg); }
.grotto-card:nth-child(4) { background: var(--mt-plum-light);  border: 4px double var(--mt-plum);  transform: rotate(1.4deg); }
.grotto-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--mt-shadow-lg); }
.grotto-icon {
  width: 72px; height: 72px;
  margin: 0 auto .9rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: var(--mt-shadow);
}
.grotto-card:nth-child(1) .grotto-icon { box-shadow: 3px 3px 0 var(--mt-teal); }
.grotto-card:nth-child(2) .grotto-icon { box-shadow: 3px 3px 0 var(--mt-amber); }
.grotto-card:nth-child(3) .grotto-icon { box-shadow: 3px 3px 0 var(--mt-berry); }
.grotto-card:nth-child(4) .grotto-icon { box-shadow: 3px 3px 0 var(--mt-plum); }
.grotto-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.grotto-card:nth-child(1) h3 { color: var(--mt-teal-deep); }
.grotto-card:nth-child(2) h3 { color: var(--mt-amber-deep); }
.grotto-card:nth-child(3) h3 { color: var(--mt-berry); }
.grotto-card:nth-child(4) h3 { color: var(--mt-plum); }
.grotto-card p { margin: 0; font-size: 1rem; color: #4A3826; }

/* ---------------------------------------------------------------
   Cork noticeboard — latest stories
   --------------------------------------------------------------- */
.board {
  background-color: var(--mt-cork);
  background-image:
    radial-gradient(rgba(60,42,24,.14) 2px, transparent 3px),
    radial-gradient(rgba(255,248,237,.10) 2px, transparent 3px);
  background-size: 17px 17px, 23px 23px;
  background-position: 0 0, 8px 11px;
  border-top: 10px solid var(--mt-wood-mid);
  border-bottom: 10px solid var(--mt-wood-mid);
  box-shadow: inset 0 8px 24px rgba(60,42,24,.35), inset 0 -8px 24px rgba(60,42,24,.35);
}
.board-sign {
  width: fit-content;
  margin: 0 auto 2.4rem;
  background: linear-gradient(180deg, var(--mt-wood-mid), var(--mt-wood));
  color: var(--mt-cream);
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  padding: .45em 1.4em;
  border-radius: 10px;
  transform: rotate(-1.4deg);
  box-shadow: 0 6px 16px rgba(46,31,20,.35), inset 0 2px 0 rgba(255,248,237,.15);
  position: relative;
  text-align: center;
}
.board-sign::before, .board-sign::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2A1D10;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35);
}
.board-sign::before { left: 12px; }
.board-sign::after  { right: 12px; }

.notes-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.note {
  position: relative;
  background: #FFFDF7;
  padding: 2.2rem 1.6rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(46,31,20,.3);
  transition: transform .25s;
}
.note:nth-child(3n+1) { transform: rotate(-2deg); }
.note:nth-child(3n+2) { transform: rotate(1.4deg); }
.note:nth-child(3n+3) { transform: rotate(-1deg); }
.note:hover { transform: rotate(0deg) translateY(-5px); }
.pin {
  position: absolute;
  top: -12px; left: 50%;
  width: 24px; height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  box-shadow: 0 3px 5px rgba(46,31,20,.4), inset -3px -3px 5px rgba(0,0,0,.25), inset 3px 3px 5px rgba(255,255,255,.35);
}
.note:nth-child(3n+1) .pin { background: var(--mt-berry); }
.note:nth-child(3n+2) .pin { background: var(--mt-teal); }
.note:nth-child(3n+3) .pin { background: var(--mt-plum); }
.note h3 { font-size: 1.3rem; margin-bottom: .4em; }
.note h3 a { color: var(--mt-ink); text-decoration: none; }
.note h3 a:hover { color: var(--mt-berry); }
.note p { font-size: .98rem; color: #4A3826; margin-bottom: 1em; }
.note-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.note-cat {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .35em .9em;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}
.note:nth-child(3n+1) .note-cat { background: var(--mt-berry); }
.note:nth-child(3n+2) .note-cat { background: var(--mt-teal); }
.note:nth-child(3n+3) .note-cat { background: var(--mt-plum); }
.note-date { font-size: .85rem; color: #8C7A6A; font-weight: 700; }
.board-foot {
  text-align: center;
  color: rgba(255,248,237,.85);
  font-style: italic;
  font-size: .92rem;
  margin-top: 2.2rem;
  text-shadow: 0 1px 2px rgba(60,42,24,.5);
}

/* ---------------------------------------------------------------
   The cabin in the woods — night scene
   --------------------------------------------------------------- */
.woods {
  position: relative;
  background: linear-gradient(180deg, var(--mt-night-deep) 0%, #0A3B33 55%, var(--mt-night-mid) 100%);
  color: var(--mt-cream);
  overflow: hidden;
}
.woods-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,248,237,.8) 1px, transparent 2px),
    radial-gradient(rgba(255,248,237,.45) 1px, transparent 2px);
  background-size: 190px 170px, 110px 140px;
  background-position: 20px 30px, 70px 90px;
  pointer-events: none;
}
.woods-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 1rem;
}
.woods-inner .sec-title { color: var(--mt-cream); --dec: var(--mt-amber-glow); }
.woods-inner p { color: rgba(255,248,237,.9); font-size: 1.08rem; }
.woods-inner .woods-joke { font-family: var(--mt-font-heading); font-style: italic; color: var(--mt-amber-soft); }
.woods-scene { position: relative; z-index: 1; margin-top: -1rem; }
.woods-scene svg { display: block; width: 100%; height: clamp(190px, 30vw, 300px); }
.win-glow { fill: #FFD98A; filter: drop-shadow(0 0 8px rgba(255,217,138,.95)); }
.lantern-glow { fill: #FFE9B8; filter: drop-shadow(0 0 7px rgba(255,233,184,.95)); }
.moon-glow { fill: #FFF3D6; filter: drop-shadow(0 0 14px rgba(255,243,214,.8)); }

/* ---------------------------------------------------------------
   CTA
   --------------------------------------------------------------- */
.cta {
  position: relative;
  background-color: var(--mt-berry);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,248,237,.14), transparent 70%),
    radial-gradient(ellipse 50% 45% at 12% 90%, rgba(46,31,20,.25), transparent 70%);
  color: var(--mt-cream);
  overflow: hidden;
}
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; position: relative; }
.cta h2 {
  color: var(--mt-cream);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: .35em;
}
.cta p { font-size: 1.15rem; color: rgba(255,248,237,.92); margin-bottom: 1.6em; }
.cta .domain {
  margin-top: 1.8rem;
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-size: .98rem;
  color: #F2C1CB;
}
.cta-heart { position: absolute; font-size: 1.5rem; opacity: .5; }

/* ---------------------------------------------------------------
   Page headers (inner pages)
   --------------------------------------------------------------- */
.page-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.page-header__title { margin-bottom: .2em; }
.page-header__sub { font-size: 1.15rem; opacity: .88; margin: 0; }

/* ---------------------------------------------------------------
   About page
   --------------------------------------------------------------- */
.about-inner { max-width: 780px; margin: 0 auto; }
.about-inner h2:not(.section-title) { color: var(--mt-teal); }
.about-text p { font-size: 1.1rem; }

.mt-quote {
  font-family: var(--mt-font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--mt-teal);
  border-left: 5px solid var(--mt-amber);
  padding: .8em 1.2em;
  margin: 1.5em 0;
  font-style: italic;
  background: var(--mt-amber-light);
  border-radius: 0 var(--mt-radius) var(--mt-radius) 0;
}

/* ---------------------------------------------------------------
   Treasure cards / post cards (inner pages)
   --------------------------------------------------------------- */
.treasures-grid,
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.treasure-card,
.post-card {
  background: #fff;
  border-radius: var(--mt-radius-lg);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  transition: transform .2s, box-shadow .2s;
  border-left: 5px solid var(--mt-teal);
}
.treasure-card:nth-child(3n+2),
.post-card:nth-child(3n+2) { border-left-color: var(--mt-amber); }
.treasure-card:nth-child(3n+3),
.post-card:nth-child(3n+3) { border-left-color: var(--mt-berry); }

.treasure-card:hover,
.post-card:hover {
  transform: translateY(-4px) rotate(-.5deg);
  box-shadow: var(--mt-shadow-lg);
}

.treasure-card__image img,
.post-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.treasure-card__body,
.post-card__body { padding: 1.2rem 1.4rem; }
.treasure-card__title,
.post-card__title { font-size: 1.2rem; margin-bottom: .3em; }
.treasure-card__title a,
.post-card__title a { color: var(--mt-ink); text-decoration: none; }
.treasure-card__title a:hover,
.post-card__title a:hover { color: var(--mt-teal); }

.treasure-card__excerpt,
.post-card__excerpt { color: #5A4636; font-size: .95rem; margin-bottom: .6em; }

.entry-date,
.post-card__meta { font-size: .85rem; color: #8C7A6A; }
.post-card__meta a { color: var(--mt-teal); font-size: .85rem; }

.no-posts {
  text-align: center;
  font-size: 1.2rem;
  color: #8C7A6A;
  padding: 3rem 0;
  font-style: italic;
}

/* ---------------------------------------------------------------
   Blog / single post
   --------------------------------------------------------------- */
.post-header {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.post-header__meta { font-size: .9rem; color: #8C7A6A; }

.post-hero { padding: 0 0 1rem; }
.post-hero img {
  border-radius: var(--mt-radius-lg);
  box-shadow: var(--mt-shadow);
}

.post-content { font-size: 1.1rem; }
.post-content img {
  border-radius: var(--mt-radius);
  margin: 1.5em 0;
}
.post-content blockquote {
  font-family: var(--mt-font-heading);
  font-style: italic;
  font-size: 1.25rem;
  border-left: 4px solid var(--mt-amber);
  padding: .6em 1em;
  margin: 1.5em 0;
  color: var(--mt-teal);
}

.post-nav {
  border-top: 2px solid var(--mt-amber-light);
  padding: 1.5rem 0;
}
.post-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.post-nav a { font-weight: 600; font-size: .95rem; }

/* Pagination */
.pagination { padding: 2rem 0 0; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: inline-block;
  padding: .5em 1em;
  border-radius: var(--mt-radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.pagination a { background: var(--mt-teal-light); color: var(--mt-teal); }
.pagination a:hover { background: var(--mt-teal); color: #fff; }
.pagination .current { background: var(--mt-teal); color: #fff; }

/* ---------------------------------------------------------------
   Contact form
   --------------------------------------------------------------- */
.mt-form { max-width: 560px; margin: 0 auto; }
.mt-form__group { margin-bottom: 1.4rem; }
.mt-form__group label {
  display: block;
  font-weight: 700;
  margin-bottom: .3em;
  font-size: .95rem;
}
.mt-form__group input,
.mt-form__group textarea {
  width: 100%;
  padding: .8em 1em;
  border: 2px solid #d9cfc3;
  border-radius: var(--mt-radius);
  font-family: var(--mt-font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s;
}
.mt-form__group input:focus,
.mt-form__group textarea:focus {
  outline: none;
  border-color: var(--mt-teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 107, .15);
}
.mt-form__hp { position: absolute; left: -9999px; }

.contact-note {
  text-align: center;
  font-size: .9rem;
  color: #8C7A6A;
  margin-top: 1.5rem;
  font-style: italic;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--mt-ink);
  color: #D9CFC3;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 2rem;
  border-top: 8px solid var(--mt-wood-dark);
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}
.footer-hearts { font-size: 1.3rem; letter-spacing: .5em; }
.footer-hearts .h1c { color: var(--mt-teal); }
.footer-hearts .h2c { color: var(--mt-amber); }
.footer-hearts .h3c { color: var(--mt-berry); }
.footer-logo {
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--mt-amber);
}
.footer-tagline { font-style: italic; color: #B0A090; margin: 0; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a { color: #D9CFC3; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--mt-amber); }
.footer-copy { font-size: .85rem; color: #8C7A6A; margin: 0; }
.footer-copy a { color: #B0A090; }

/* ---------------------------------------------------------------
   "Designed & built by Three Monkey IT" credit band
   Cream strip below the ink footer — the brown monkey line art
   needs a light ground to read, and the contrast makes the credit
   feel deliberate rather than tacked on.
   --------------------------------------------------------------- */
.made-by {
  background: var(--mt-amber-wash);
  border-top: 6px solid var(--mt-wood-dark);
  padding: clamp(1.4rem, 3vw, 2rem) 0;
}
.made-by-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
  text-decoration: none;
  color: var(--mt-ink);
  background: #FFFDF7;
  border: 3px solid var(--mt-wood-mid);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 5px 0 var(--mt-wood-dark);
  transition: transform .18s, box-shadow .18s;
}
.made-by-card:hover,
.made-by-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--mt-wood-dark);
  color: var(--mt-ink);
}
.made-by-mark {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}
.made-by-text { display: flex; flex-direction: column; gap: .1rem; }
.made-by-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mt-amber-deep);
}
.made-by-name {
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  color: var(--mt-teal);
  line-height: 1.15;
}
.made-by-tag {
  font-size: .92rem;
  color: #5A4636;
  max-width: 34ch;
}
.made-by-cta {
  font-weight: 800;
  font-size: .82rem;
  color: #fff;
  background: var(--mt-burgundy);
  border-radius: 999px;
  padding: .42em 1em;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--mt-burgundy-deep);
}
.made-by-card:hover .made-by-cta { background: var(--mt-burgundy-deep); }

@media (min-width: 700px) {
  .made-by-card {
    flex-direction: row;
    text-align: left;
    gap: 1.4rem;
    padding: 1.3rem 1.8rem;
  }
  .made-by-text { flex: 1; }
  .made-by-mark { width: 118px; }
}

/* ---------------------------------------------------------------
   404
   --------------------------------------------------------------- */
.error-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 0;
}
.error-title { color: var(--mt-berry); margin-bottom: .4em; }
.error-text { font-size: 1.15rem; margin-bottom: 1.5em; color: #5A4636; }

/* ---------------------------------------------------------------
   Responsive — tablet (640px+)
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  .grotto-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .treasures-grid,
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------
   Responsive — desktop (920px+)
   --------------------------------------------------------------- */
@media (min-width: 920px) {
  .nav-toggle { display: none !important; }
  .hero-panel { margin: 0; }
  .marge-inner { flex-direction: row; gap: 4rem; justify-content: center; }
  .marge-copy { text-align: left; }
  .marge-copy .sec-title { text-align: left; }
  .marge-copy .sec-title::before { content: ""; }
  .grotto-grid { grid-template-columns: repeat(4, 1fr); }
  .fow-inner { flex-direction: row; justify-content: center; gap: 4.5rem; }
  .fow-copy { text-align: left; }
  .fow-copy .sec-title { text-align: left; }
  .fow-copy .sec-title::before { content: ""; }
  .treasures-grid--full { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { gap: 1.1rem; }
}

/* ---------------------------------------------------------------
   Responsive — mobile nav (below 920px)
   --------------------------------------------------------------- */
@media (max-width: 919px) {
  .scene-bg { background-position: 66% 50%; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFDF7;
    border-bottom: 6px solid var(--mt-teal);
    box-shadow: var(--mt-shadow);
    padding: 1rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
}

/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam-track { animation: none; }
  .door-glow, .door-tag { animation: none; }
  .scene-bg { transition: none; }
  .enter-flash { transition: none; }
  * { transition: none !important; }
}
