/*
Theme Name: Green Hampshire Child
Theme URI: https://greenhampshire.co.uk/
Description: Editorial WordPress block child theme with a nature-inspired design system, responsive layouts, and accessible native blocks. Concept preview; confirm brand and editorial copy before production.
Author: Green Hampshire
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: green-hampshire-child
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Green Hampshire design system: native WordPress blocks, no frameworks or external fonts. */
:root {
  --gh-ink: #172e25;
  --gh-forest: #204a36;
  --gh-moss: #426e4e;
  --gh-leaf: #91a979;
  --gh-lime: #d7e3b5;
  --gh-ivory: #f8f7f0;
  --gh-sand: #ece9df;
  --gh-mist: #e5ebe3;
  --gh-muted: #5f7164;
  --gh-coral: #c57d62;
  --gh-serif: Georgia, 'Times New Roman', serif;
  --gh-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --gh-container: 1240px;
  --gh-gap: clamp(1.25rem,3vw,3.25rem);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:6.5rem}
body{background:var(--gh-ivory);color:var(--gh-ink);font-family:var(--gh-sans);line-height:1.6;-webkit-font-smoothing:antialiased}
body,.wp-site-blocks{margin:0}
.wp-site-blocks{overflow:hidden}
:where(.wp-site-blocks) > *{margin-block-start:0}
a{color:inherit;text-underline-offset:.2em}
a:focus-visible,button:focus-visible{outline:3px solid var(--gh-coral);outline-offset:4px}
::selection{background:var(--gh-lime);color:var(--gh-ink)}
.gh-skip-link{position:absolute;left:1rem;top:-10rem;z-index:200;padding:.7rem 1rem;background:#fff;color:var(--gh-ink);font-weight:700}
.gh-skip-link:focus{top:1rem}
.gh-inner{width:min(calc(100% - 3rem),var(--gh-container));margin-inline:auto}
.gh-section{padding:clamp(4.5rem,9vw,9.5rem) 0}
.gh-section-heading{font-family:var(--gh-serif);font-size:clamp(2.6rem,5vw,5.6rem);letter-spacing:-.055em;line-height:1.08;font-weight:400;margin:0}
.gh-section-heading em,.gh-display em{font-weight:400;color:var(--gh-moss)}
.gh-kicker{font-size:.72rem;font-weight:750;letter-spacing:.2em;text-transform:uppercase;color:var(--gh-moss);margin:0 0 1.45rem}
.gh-body{font-size:clamp(1.07rem,1.4vw,1.23rem);color:var(--gh-muted);line-height:1.8;max-width:42rem}
.gh-hr{height:1px;background:rgba(23,46,37,.15);border:0}
.gh-page-content{min-height:45vh}
.gh-page-content :where(p,li){line-height:1.8}
.gh-page-content :where(h2,h3){font-family:var(--gh-serif);font-weight:400;letter-spacing:-.035em}
.gh-page-content :where(img){border-radius:.35rem}
/* Header, wordmark and navigation */
.gh-site-header{position:relative;z-index:40;background:var(--gh-ivory);border-bottom:1px solid rgba(23,46,37,.13)}
.gh-header-inner{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.gh-wordmark .wp-block-site-title{margin:0}
.gh-wordmark a{display:inline-flex;align-items:center;gap:.8rem;font-family:var(--gh-serif);font-size:1.6rem;line-height:1;font-weight:700;letter-spacing:-.045em;text-decoration:none;color:var(--gh-ink)}
.gh-wordmark a::before{content:'';display:inline-block;width:27px;height:27px;background:var(--gh-moss);border-radius:2px 26px 2px 26px;transform:rotate(-26deg);box-shadow:inset -6px -5px 0 rgba(215,227,181,.7)}
.gh-header-nav .wp-block-navigation-item__content{font-size:.83rem;font-weight:700;text-decoration:none;letter-spacing:.01em}
.gh-header-nav .wp-block-navigation-item__content:hover{color:var(--gh-moss)}
.gh-header-nav .wp-block-navigation__container{gap:clamp(.9rem,2.6vw,2rem)}
.gh-header-nav .wp-block-navigation__responsive-container-open{padding:.45rem}
/* Buttons */
.gh-button .wp-block-button__link,.wp-block-button.gh-button .wp-block-button__link{background:var(--gh-forest);color:#fff;border:1px solid var(--gh-forest);border-radius:3px;padding:1.05rem 1.65rem;display:inline-flex;align-items:center;justify-content:center;min-height:51px;font-size:.82rem;font-weight:800;letter-spacing:.025em;text-decoration:none;transition:background .2s,color .2s,transform .2s}
.gh-button .wp-block-button__link:hover{background:var(--gh-ink);transform:translateY(-2px)}
.gh-button.gh-button-ghost .wp-block-button__link{background:transparent;color:var(--gh-ink);border-color:rgba(23,46,37,.3)}
.gh-button.gh-button-ghost .wp-block-button__link:hover{background:var(--gh-mist)}
/* Hero and landscape illustration */
.gh-hero{background:var(--gh-ivory);padding:clamp(3.5rem,7.5vw,8rem) 0 clamp(4rem,8.5vw,8rem);position:relative}
.gh-hero-layout{display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(2.5rem,5vw,6.5rem);align-items:center}
.gh-hero-text{padding:1rem 0}
.gh-display{font-family:var(--gh-serif);font-size:clamp(3.8rem,7.25vw,8.1rem);line-height:.99;letter-spacing:-.075em;font-weight:400;margin:0 0 2.2rem;max-width:900px}
.gh-hero-lead{font-size:clamp(1.08rem,1.5vw,1.34rem);line-height:1.75;color:var(--gh-muted);max-width:31rem;margin:0 0 2.2rem}
.gh-hero-actions{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}
.gh-hero-visual{position:relative;isolation:isolate;min-height:clamp(360px,43vw,590px);background:#dfe8d6;overflow:hidden;border-radius:48% 48% 4px 4px/39% 39% 4px 4px;box-shadow:inset 0 12px 60px rgba(255,255,255,.35)}
.gh-sun{position:absolute;top:13%;right:13%;width:34%;aspect-ratio:1;border-radius:50%;background:#faf5cf;box-shadow:0 0 0 45px rgba(255,255,255,.09)}
.gh-visual-grain{position:absolute;inset:0;z-index:6;opacity:.09;background-image:radial-gradient(#1b4330 1px,transparent 1px);background-size:8px 8px}
.gh-hill{position:absolute;width:170%;height:72%;border-radius:50% 50% 0 0 / 46% 46% 0 0}
.gh-hill-back{left:-32%;bottom:-38%;z-index:1;background:#94ad8b;transform:rotate(-10deg)}
.gh-hill-mid{left:6%;bottom:-43%;z-index:2;background:#537b60;transform:rotate(12deg)}
.gh-hill-front{left:-34%;bottom:-57%;z-index:3;background:#244b38;transform:rotate(-3deg)}
.gh-visual-plant{position:absolute;bottom:6%;left:17%;width:2px;height:41%;background:rgba(250,249,232,.8);transform:rotate(-7deg);z-index:4;transform-origin:bottom}
.gh-visual-plant::before,.gh-visual-plant::after{content:'';position:absolute;width:46px;height:20px;border:2px solid rgba(250,249,232,.85);border-left:none;border-bottom-left-radius:100%;border-top-right-radius:100%;background:transparent}
.gh-visual-plant::before{top:20%;left:1px;transform:rotate(-18deg)}
.gh-visual-plant::after{top:46%;right:1px;transform:scaleX(-1) rotate(-18deg)}
.gh-visual-caption{position:absolute;z-index:7;right:7%;bottom:6%;color:#fff;text-align:right;letter-spacing:.19em;font-size:.67rem;font-weight:800;text-transform:uppercase;line-height:1.8}
.gh-hero-corner{position:absolute;right:8%;top:8%;width:1.5rem;height:1.5rem;border:1px solid var(--gh-moss);border-radius:50%}
/* Intro and pillars */
.gh-intro{background:#fff}
.gh-intro-top{display:grid;grid-template-columns:1.12fr .75fr;gap:clamp(2.5rem,8vw,9rem);align-items:end;margin-bottom:3.5rem}
.gh-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.gh-feature{border:1px solid #dce4d9;padding:clamp(1.5rem,2.5vw,3rem);min-height:320px;display:flex;flex-direction:column;align-items:flex-start;background:#f8faf5;transition:transform .25s,border-color .25s}
.gh-feature:hover{transform:translateY(-6px);border-color:var(--gh-leaf)}
.gh-feature-index{font-size:.75rem;font-weight:800;color:var(--gh-moss);letter-spacing:.15em}
.gh-feature-symbol{margin:2.5rem 0 2.2rem;height:44px;width:44px;border:2px solid var(--gh-moss);border-radius:50%;position:relative}
.gh-feature-symbol::after{content:'';display:block;position:absolute;width:16px;height:16px;left:21px;top:-7px;border:2px solid var(--gh-moss);border-radius:2px 15px 2px 15px;transform:rotate(10deg)}
.gh-feature h3{font-family:var(--gh-serif);font-size:clamp(1.7rem,2vw,2.2rem);line-height:1.16;font-weight:400;letter-spacing:-.045em;margin:auto 0 .85rem}
.gh-feature p{font-size:.96rem;line-height:1.65;color:var(--gh-muted);margin:0}
/* Editorial mission */
.gh-perspective{background:var(--gh-forest);color:#fff;position:relative;overflow:hidden}
.gh-perspective::after{content:'';width:42vw;height:42vw;max-width:600px;max-height:600px;border:1px solid rgba(255,255,255,.19);border-radius:50%;position:absolute;right:-12%;top:-15%;box-shadow:0 0 0 5vw rgba(255,255,255,.018),0 0 0 10vw rgba(255,255,255,.014);pointer-events:none}
.gh-perspective .gh-kicker{color:var(--gh-lime)}
.gh-perspective-grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:3rem;position:relative;z-index:1}
.gh-perspective .gh-section-heading{font-size:clamp(2.9rem,5.5vw,6.4rem);max-width:950px}
.gh-perspective .gh-section-heading em{color:var(--gh-lime)}
.gh-perspective .gh-body{color:#d8e8d9;max-width:36rem;margin-top:2rem}
.gh-quote-mark{font-family:var(--gh-serif);color:var(--gh-lime);font-size:8rem;line-height:.5;margin:0}
/* Journal */
.gh-journal{background:var(--gh-sand)}
.gh-journal-top{display:flex;justify-content:space-between;gap:2rem;align-items:end;margin-bottom:2.75rem}
.gh-journal-description{max-width:21rem;color:var(--gh-muted);font-size:1rem;line-height:1.7}
.gh-journal .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;padding:0;list-style:none}
.gh-journal .wp-block-post{background:var(--gh-ivory);padding:clamp(1.5rem,3vw,2.75rem);min-height:270px;display:flex;flex-direction:column;justify-content:space-between;border-bottom:4px solid var(--gh-moss)}
.gh-journal .wp-block-post-date{font-weight:800;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gh-moss)}
.gh-journal .wp-block-post-title{font-family:var(--gh-serif);font-size:clamp(1.65rem,2.2vw,2.5rem);font-weight:400;line-height:1.15;letter-spacing:-.035em}
.gh-journal .wp-block-post-title a{text-decoration:none}
.gh-journal .wp-block-post-title a:hover{text-decoration:underline}
.gh-journal .wp-block-post-excerpt{color:var(--gh-muted);font-size:.9rem}
/* Open invitation */
.gh-outro{padding:clamp(5rem,9vw,9rem) 0;background:var(--gh-lime);position:relative}
.gh-outro-inner{display:grid;grid-template-columns:1fr .6fr;gap:4rem;align-items:end}
.gh-outro .gh-section-heading{font-size:clamp(3.4rem,7vw,8rem)}
.gh-outro .gh-kicker{color:var(--gh-forest)}
.gh-outro .gh-body{color:var(--gh-ink)}
/* Footer */
.gh-site-footer{background:#152c22;color:#e9f0e5;padding:4rem 0 1.8rem}
.gh-footer-top{display:flex;justify-content:space-between;align-items:start;gap:2rem;padding-bottom:4rem}
.gh-site-footer .gh-wordmark a{color:#fff}
.gh-footer-tagline{color:#b5c9b9;max-width:25rem;font-size:1rem;line-height:1.75;margin-top:1.5rem}
.gh-footer-nav a{color:#e9f0e5;text-decoration:none;font-weight:700;font-size:.85rem}
.gh-footer-nav a:hover{text-decoration:underline}
.gh-footer-bottom{border-top:1px solid rgba(255,255,255,.2);padding-top:1.35rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:#b5c9b9;font-size:.75rem;letter-spacing:.04em}
/* Inner pages and journal */
.gh-subpage-heading{background:#e7eee5;padding:clamp(4rem,8vw,7rem) 0}
.gh-subpage-heading .gh-section-heading{max-width:1020px}
.gh-main-column{padding:clamp(3.5rem,6vw,6rem) 0 7rem}
.gh-main-column .wp-block-post-content{max-width:780px;margin-inline:auto;font-size:1.12rem;line-height:1.8}
.gh-main-column .wp-block-post-content > *{margin-block-start:1.5rem}
.gh-main-column .wp-block-post-content .alignwide{max-width:var(--gh-container);margin-inline:calc((100% - min(var(--gh-container),90vw))/2)}
.gh-post-meta{font-size:.72rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--gh-moss);margin-bottom:1.2rem}
.gh-archive-list .wp-block-post-template{padding:0;display:grid;gap:0}
.gh-archive-list .wp-block-post{padding:2.1rem 0;border-bottom:1px solid #ced9cb}
.gh-archive-list .wp-block-post-title{font-family:var(--gh-serif);font-weight:400;letter-spacing:-.035em;font-size:clamp(1.65rem,3vw,2.8rem);margin:.5rem 0}
.gh-archive-list .wp-block-post-title a{text-decoration:none}
.gh-archive-list .wp-block-post-title a:hover{text-decoration:underline}
.gh-archive-list .wp-block-post-date{font-size:.8rem;color:var(--gh-moss)}
.gh-archive-list .wp-block-post-excerpt{font-size:.98rem;color:var(--gh-muted)}
.wp-block-query-pagination{margin-block-start:3rem;gap:1rem}
.wp-block-query-pagination a{text-decoration:none}
/* Mobile, accessibility, print */
@media(max-width:1020px){
 .gh-hero-layout{gap:2.5rem}
 .gh-display{font-size:clamp(3.5rem,7.2vw,6.2rem)}
 .gh-hero-visual{min-height:400px}
 .gh-feature{min-height:290px}
 .gh-feature-grid{gap:.8rem}
 .gh-perspective-grid{grid-template-columns:.45fr 1fr}
}
@media(max-width:780px){
 html{scroll-padding-top:4.5rem}
 .gh-inner{width:min(calc(100% - 2rem),var(--gh-container))}
 .gh-header-inner{min-height:72px}
 .gh-wordmark a{font-size:1.35rem}
 .gh-hero{padding:3.5rem 0 4rem}
 .gh-hero-layout,.gh-intro-top,.gh-perspective-grid,.gh-outro-inner{grid-template-columns:1fr}
 .gh-display{font-size:clamp(3.7rem,11vw,6rem);max-width:10ch}
 .gh-hero-visual{min-height:420px;max-width:580px;width:100%;margin:1rem auto 0}
 .gh-intro-top{gap:1rem}
 .gh-feature-grid{grid-template-columns:1fr}
 .gh-feature{min-height:240px;padding:1.7rem}
 .gh-feature-symbol{margin:1.5rem 0}
 .gh-journal-top,.gh-footer-top{flex-direction:column;align-items:start}
 .gh-journal .wp-block-post-template{grid-template-columns:1fr}
 .gh-journal .wp-block-post{min-height:205px}
 .gh-perspective-grid{gap:1.2rem}
 .gh-quote-mark{display:none}
 .gh-outro-inner{gap:.7rem}
 .gh-footer-top{padding-bottom:2rem}
 .gh-main-column .wp-block-post-content{font-size:1.02rem}
 .gh-main-column .wp-block-post-content .alignwide{margin-inline:0}
}
@media(max-width:460px){
 .gh-display{font-size:clamp(3.3rem,13vw,4.3rem)}
 .gh-hero-visual{min-height:350px}
 .gh-hero-actions{align-items:stretch}
 .gh-hero-actions .wp-block-button{width:100%}
 .gh-hero-actions .wp-block-button__link{width:100%}
 .gh-section-heading{font-size:clamp(2.4rem,10vw,3.4rem)}
 .gh-outro .gh-section-heading{font-size:3.3rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.gh-feature,.gh-button .wp-block-button__link{transition:none}.gh-feature:hover,.gh-button .wp-block-button__link:hover{transform:none}}
@media print{.gh-site-header,.gh-site-footer,.gh-hero-visual{display:none!important}.gh-section{padding:1rem 0}body{background:#fff;color:#000}}

/* Live refinement: navigation and accessible footer, submitted via MCP approval. */
.gh-site-header{position:sticky;top:0;box-shadow:0 8px 26px rgba(23,46,37,.06)}
body.admin-bar .gh-site-header{top:32px}
.gh-header-nav .wp-block-navigation-item__content{transition:color .18s ease}
.gh-header-nav .wp-block-navigation-item__content:focus-visible{outline:3px solid var(--gh-coral);outline-offset:5px}
.gh-site-footer .gh-footer-bottom a{color:inherit;text-underline-offset:.25em}
.gh-site-footer .gh-footer-bottom a:hover{text-decoration-thickness:2px}
.gh-site-footer a:focus-visible{outline-color:var(--gh-lime)}
@media(max-width:782px){body.admin-bar .gh-site-header{top:46px}}
@media(max-width:600px){body.admin-bar .gh-site-header{top:0}}
@media(prefers-reduced-motion:reduce){.gh-header-nav .wp-block-navigation-item__content{transition:none}}

/* Green Hampshire account journeys & 404 experience */
.gh-account-journey{padding:clamp(1rem,3vw,2.5rem) 0;color:var(--gh-ink)}
.gh-account-journey>.wp-block-buttons{display:flex;gap:.85rem;margin:2rem 0 2.8rem}
.gh-account-journey .wp-block-button__link{min-height:52px;display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1.45rem;background:var(--gh-forest);color:#fff;font-weight:750;text-decoration:none;border-radius:4px;transition:background .18s}
.gh-account-journey .wp-block-button__link:hover{background:var(--gh-ink)}
.gh-account-journey .gh-button-ghost .wp-block-button__link{background:transparent;border:1px solid var(--gh-forest);color:var(--gh-forest)}
.gh-account-journey .gh-button-ghost .wp-block-button__link:hover{background:var(--gh-mist)}
.gh-account-benefits{gap:1rem;margin:2.5rem 0;padding:0}
.gh-account-benefits>.wp-block-column{background:#f1f5ed;border:1px solid #dbe6d5;padding:clamp(1.2rem,2.5vw,2rem);border-radius:8px;min-width:0}
.gh-account-benefits h3{margin:.1rem 0 .8rem;font-size:clamp(1.45rem,2vw,1.95rem)}
.gh-account-benefits p{font-size:.94rem;color:var(--gh-muted);line-height:1.7}
.gh-account-footnote{padding:1rem 1.2rem;border-left:3px solid var(--gh-moss);background:var(--gh-mist);font-size:.9rem;color:var(--gh-muted)}
.gh-not-found{min-height:70vh;position:relative;overflow:hidden;background:linear-gradient(130deg,#f8f7f0 0%,#e7eee5 100%)}
.gh-not-found::after{content:"";position:absolute;width:min(65vw,680px);aspect-ratio:1;right:-18%;top:-20%;border:1px solid #9cb997;border-radius:50%;box-shadow:0 0 0 5vw #d4e2d31a,0 0 0 11vw #91a9790d;pointer-events:none}
.gh-not-found-inner{position:relative;z-index:1;max-width:1000px}
.gh-not-found .gh-section-heading{max-width:890px;margin-bottom:1.6rem}
.gh-not-found .gh-body{max-width:36rem}
.gh-not-found .wp-block-buttons{margin-top:2rem;gap:.85rem}
.gh-404-discover{margin-top:clamp(3.5rem,7vw,6rem);padding-top:1.8rem;border-top:1px solid #b5c9b6}
.gh-404-discover h2{font:400 clamp(1.6rem,2.4vw,2.2rem) var(--gh-serif);margin:0 0 .6rem}
.gh-404-discover p{display:flex;gap:1rem;flex-wrap:wrap;font-size:.9rem}
.gh-404-discover a{color:var(--gh-forest);font-weight:750}
@media(max-width:780px){.gh-account-journey .wp-block-buttons{align-items:stretch}.gh-account-benefits{display:block}.gh-account-benefits>.wp-block-column{margin-bottom:1rem}}
@media(max-width:480px){.gh-account-journey>.wp-block-buttons{flex-direction:column;align-items:stretch}.gh-account-journey>.wp-block-buttons .wp-block-button{width:100%}.gh-account-journey>.wp-block-buttons .wp-block-button__link{width:100%}.gh-404-discover p{gap:.55rem}}
@media(prefers-reduced-motion:reduce){.gh-account-journey .wp-block-button__link{transition:none}}
