/*
Theme Name: Wildverse GP Child
Theme URI: https://wildverse.org
Description: The Field Lab — Wildverse design system on GeneratePress. Evergreen hero with node-lattice pattern, Space Grotesk display, mono annotations, amber action color.
Author: Wildverse Digital Media
Template: generatepress
Version: 2.1
Text Domain: wildverse-gp-child
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    /* Evergreen scale — the "wild" */
    --w-ever-950: #071f19;
    --w-ever-900: #0b2b22;
    --w-ever-800: #10382d;
    --w-ever-700: #175243;
    --w-primary: #1a6b5a;
    --w-primary-hover: #15594a;
    --w-primary-light: #e9f4f0;
    --w-mint: #9fd8c6;

    /* Amber — the action */
    --w-accent: #f59e0b;
    --w-accent-deep: #d97706;
    --w-accent-hover: #b45309;
    --w-accent-light: #fffaeb;

    /* Ink & surfaces */
    --w-ink: #16241f;
    --w-ink-2: #45564f;
    --w-ink-3: #8aa39a;
    --w-paper: #ffffff;
    --w-surface: #f5f8f6;
    --w-border: #e3ebe7;
    --w-border-2: #cddad4;

    /* Type */
    --w-display: 'Space Grotesk', system-ui, sans-serif;
    --w-body: 'Inter', system-ui, sans-serif;
    --w-mono: 'JetBrains Mono', ui-monospace, monospace;

    --w-content: 860px;
    --w-wide: 1200px;
    --w-r-sm: 6px;
    --w-r: 10px;
    --w-r-lg: 16px;
    --w-gap: 4.5rem;

    --w-shadow: 0 1px 2px rgba(7,31,25,.06), 0 4px 16px rgba(7,31,25,.06);
    --w-shadow-lg: 0 2px 4px rgba(7,31,25,.08), 0 16px 40px rgba(7,31,25,.10);

    /* Node-lattice pattern (hero background) */
    --w-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%239fd8c6' stroke-opacity='0.13'%3E%3Cpath d='M20 20h40M60 20v40M60 60h50M110 60v50M20 20v90M20 110h90'/%3E%3C/g%3E%3Cg fill='%239fd8c6' fill-opacity='0.22'%3E%3Ccircle cx='20' cy='20' r='2.5'/%3E%3Ccircle cx='60' cy='20' r='2.5'/%3E%3Ccircle cx='60' cy='60' r='2.5'/%3E%3Ccircle cx='110' cy='60' r='2.5'/%3E%3Ccircle cx='110' cy='110' r='2.5'/%3E%3Ccircle cx='20' cy='110' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--w-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--w-ink);
    background: var(--w-paper);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--w-mint); color: var(--w-ever-900); }

a { color: var(--w-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--w-ever-700); }

h1,h2,h3,h4,h5,h6, .entry-title, .main-title {
    font-family: var(--w-display);
    color: var(--w-ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.entry-title { font-size: 2.4rem; font-weight: 700; }

h2 { font-size: 1.6rem; font-weight: 700; margin: 2.6em 0 .8em; }

/* Mono annotation before every h2 — the build-log signature */
.entry-content h2::before {
    content: '//';
    font-family: var(--w-mono);
    font-weight: 600;
    color: var(--w-accent-deep);
    margin-right: .55em;
    font-size: .85em;
}

h3 { font-size: 1.2rem; font-weight: 600; color: var(--w-ever-700); margin-top: 2rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

strong { font-weight: 600; color: inherit; }

code {
    font-family: var(--w-mono); font-size: .85em;
    background: var(--w-surface); border: 1px solid var(--w-border);
    padding: .12em .4em; border-radius: var(--w-r-sm);
}

pre {
    background: var(--w-ever-950) !important; color: #d7e8e1;
    font-family: var(--w-mono); font-size: .88em; line-height: 1.65;
    padding: 1.25rem 1.5rem; border-radius: var(--w-r);
    border: 1px solid var(--w-ever-800);
    overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

blockquote {
    border-left: 3px solid var(--w-accent) !important;
    background: var(--w-accent-light);
    margin: 1.6em 0; padding: 1rem 1.4rem;
    border-radius: 0 var(--w-r) var(--w-r) 0;
    font-style: normal !important;
}
blockquote p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-content .inside-article {
    max-width: var(--w-content);
    margin: 0 auto;
    padding: 2.25rem 1.5rem 3rem;
}
#right-sidebar, #left-sidebar { display: none !important; }
.content-area { width: 100% !important; }
.site-description { display: none; }
.page .entry-meta { display: none; }

section[aria-label] { margin-bottom: var(--w-gap); }

/* Scroll reveal */
.w-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.w-reveal.w-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .w-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--w-paper) !important;
    border-bottom: 1px solid var(--w-border) !important;
}
.inside-header {
    max-width: var(--w-wide); margin: 0 auto;
    padding: .7rem 1.5rem !important;
}
.main-title { font-size: 1.15rem !important; font-weight: 700 !important; letter-spacing: .08em; }
.main-title a { color: var(--w-ink) !important; text-decoration: none !important; }
.main-title a::before {
    content: ''; display: inline-block;
    width: .55em; height: .55em; margin-right: .5em;
    background: var(--w-primary);
    transform: rotate(45deg) translateY(-1px);
    border-radius: 2px;
}
.main-title a:hover { color: var(--w-primary) !important; }

.main-navigation .main-nav ul li a {
    font-family: var(--w-body) !important;
    font-size: .875rem !important; font-weight: 500 !important;
    color: var(--w-ink-2) !important;
}
.main-navigation .main-nav ul li a:hover { color: var(--w-primary) !important; }
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
    color: var(--w-primary) !important; font-weight: 600 !important;
}
.menu-toggle { background: none !important; color: var(--w-ink) !important; font-family: var(--w-display) !important; }

/* ============================================================
   HERO — first section of the front page, full-bleed evergreen
   ============================================================ */
.home .entry-content > section:first-of-type {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -2.25rem;
    margin-bottom: var(--w-gap);
    background:
        radial-gradient(1100px 480px at 78% -10%, rgba(26,107,90,.55), transparent 62%),
        var(--w-ever-950);
    color: #eaf4f0;
    padding: 5.5rem 1.5rem 5rem;
    overflow: hidden;
}
.home .entry-content > section:first-of-type::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--w-lattice);
    background-size: 140px 140px;
    mask-image: linear-gradient(115deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 55%, transparent 80%);
    -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 55%, transparent 80%);
    pointer-events: none;
}
.home .entry-content > section:first-of-type > * {
    position: relative;
    max-width: var(--w-content);
    margin-left: auto; margin-right: auto;
}
/* Mono kicker above the headline */
.home .entry-content > section:first-of-type::after { display: none; }
.home .entry-content > section:first-of-type h2 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700; letter-spacing: -0.02em;
    color: #ffffff; margin: 0 auto .8em;
}
.home .entry-content > section:first-of-type h2::before {
    content: '// FIELD LAB — DOCUMENTED BUILDS';
    display: block;
    font-family: var(--w-mono); font-size: .72rem; font-weight: 600;
    letter-spacing: .14em; color: var(--w-mint);
    margin: 0 0 1.4em;
}
.home .entry-content > section:first-of-type p {
    color: #c7ddd5; font-size: 1.1rem; line-height: 1.8;
}
.home .entry-content > section:first-of-type p strong { color: #ffffff; }
.home .entry-content > section:first-of-type a { color: var(--w-mint); }

/* Hero CTA — amber */
.home .entry-content > section:first-of-type a strong,
.home .entry-content > section:first-of-type strong a {
    display: inline-block;
    background: var(--w-accent); color: var(--w-ever-950) !important;
    font-family: var(--w-display); font-weight: 700; font-size: .95rem;
    padding: .8rem 1.7rem; border-radius: var(--w-r);
    text-decoration: none !important;
    box-shadow: 0 6px 24px rgba(245,158,11,.35);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.home .entry-content > section:first-of-type a:hover strong,
.home .entry-content > section:first-of-type strong a:hover {
    background: #fbbf24; transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,158,11,.45);
}

/* ============================================================
   CTA BUTTONS — everywhere else
   ============================================================ */
.entry-content a strong, .entry-content strong a {
    display: inline-block;
    background: var(--w-primary); color: #fff !important;
    font-family: var(--w-display); font-weight: 700; font-size: .92rem;
    padding: .65rem 1.5rem; border-radius: var(--w-r);
    text-decoration: none !important;
    transition: background .12s ease, transform .12s ease;
}
.entry-content a:hover strong, .entry-content strong a:hover {
    background: var(--w-primary-hover); transform: translateY(-1px);
}

/* ============================================================
   CARDS — grid sections (built by wildverse.js)
   ============================================================ */
.w-has-cards { }
.home section[aria-label="What you can build"] {
    background: var(--w-surface);
    border: 1px solid var(--w-border);
    border-radius: var(--w-r-lg);
    padding: 2.4rem 2.2rem 2.2rem;
    margin-left: -2.2rem; margin-right: -2.2rem;
}
.home section[aria-label="What you can build"].w-has-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.home section[aria-label="What you can build"] > h2 {
    grid-column: 1 / -1; margin-top: 0;
}
.w-card {
    background: var(--w-paper);
    border: 1px solid var(--w-border);
    border-radius: var(--w-r);
    padding: 1.4rem 1.5rem 1.2rem;
    box-shadow: var(--w-shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
}
.w-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--w-shadow-lg);
    border-color: var(--w-border-2);
}
.w-card h3 { margin: 0 0 .5rem; font-size: 1.08rem; }
.w-card h3 a { color: var(--w-ever-700); text-decoration: none; font-weight: 700; }
.w-card h3 a::after { content: ' →'; color: var(--w-accent-deep); }
.w-card p { margin: 0; font-size: .95rem; color: var(--w-ink-2); line-height: 1.7; }
/* node dot in card corner */
.w-card::before {
    content: ''; position: absolute; top: 1.2rem; right: 1.2rem;
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--w-primary); transform: rotate(45deg);
    opacity: .5;
}

/* ============================================================
   LISTS
   ============================================================ */
.entry-content section ul { list-style: none; padding-left: 0; }
.entry-content section ul li {
    padding: .65rem 0 .65rem 1.6rem; position: relative;
    border-bottom: 1px solid var(--w-border);
}
.entry-content section ul li:last-child { border-bottom: 0; }
.entry-content section ul li::before {
    content: ''; position: absolute; left: 0; top: 1.15rem;
    width: 8px; height: 8px; border-radius: 2px;
    background: var(--w-primary); transform: rotate(45deg);
}

.entry-content ol { counter-reset: step; list-style: none; padding-left: 0; }
.entry-content ol li {
    counter-increment: step; position: relative;
    padding-left: 2.6rem; margin-bottom: .8rem;
}
.entry-content ol li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: .22em;
    font-family: var(--w-mono); font-weight: 600; font-size: .8rem;
    color: var(--w-accent-deep);
    border: 1px solid var(--w-border-2); border-radius: var(--w-r-sm);
    padding: .05rem .35rem; background: var(--w-paper);
}

/* ============================================================
   TOOLKIT / LEAD-GEN SECTIONS
   ============================================================ */
section[aria-label="Free toolkit"] {
    position: relative;
    background: var(--w-ever-950);
    color: #eaf4f0;
    border-radius: var(--w-r-lg);
    padding: 2.4rem 2.2rem;
    overflow: hidden;
}
section[aria-label="Free toolkit"]::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--w-lattice); background-size: 140px 140px;
    opacity: .5; pointer-events: none;
}
section[aria-label="Free toolkit"] > * { position: relative; }
section[aria-label="Free toolkit"] h2 { color: #fff; margin-top: 0; }
section[aria-label="Free toolkit"] p { color: #c7ddd5; }
section[aria-label="Free toolkit"] a strong,
section[aria-label="Free toolkit"] strong a {
    background: var(--w-accent); color: var(--w-ever-950) !important;
    box-shadow: 0 6px 24px rgba(245,158,11,.3);
}
section[aria-label="Free toolkit"] a:hover strong,
section[aria-label="Free toolkit"] strong a:hover { background: #fbbf24; }

/* ============================================================
   PAGE INTROS & CALLOUTS
   ============================================================ */
.page .entry-content > p:first-child {
    font-size: 1.15rem; color: var(--w-ink-2); line-height: 1.8;
}
/* Milestone callouts (Start Here) */
.entry-content p > strong:first-child:only-child {
    display: block;
    background: var(--w-primary-light);
    border-left: 3px solid var(--w-primary);
    border-radius: 0 var(--w-r) var(--w-r) 0;
    padding: .75rem 1.2rem; margin: .8rem 0 1.6rem;
    font-size: .92rem; color: var(--w-ever-700);
}
/* Disclosure notice */
.entry-content > p:first-child > em:only-child {
    display: block; font-style: normal;
    background: var(--w-surface); border: 1px solid var(--w-border);
    border-radius: var(--w-r);
    padding: .75rem 1.2rem; margin-bottom: 2rem;
    font-size: .9rem; color: var(--w-ink-2);
}

/* ============================================================
   TOOLS PAGE CARDS
   ============================================================ */
.page-slug-recommended-tools .entry-content.w-has-cards { display: block; }
.page-slug-recommended-tools .w-card { margin-bottom: 1.2rem; }
.page-slug-recommended-tools .w-card p { margin-top: .6rem; }
.page-slug-recommended-tools .w-card h3 a::after { content: none; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
body[class*="page-slug-privacy"] .entry-content,
body[class*="page-slug-terms"] .entry-content,
body[class*="page-slug-affiliate"] .entry-content,
body[class*="page-slug-editorial"] .entry-content {
    font-size: .95rem; max-width: 740px;
}

/* ============================================================
   POSTS INDEX & SINGLE
   ============================================================ */
.blog .entry-title, .archive .entry-title { font-size: 1.5rem !important; }
.blog .entry-title a, .archive .entry-title a { color: var(--w-ink); text-decoration: none; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--w-primary); }
.entry-meta { font-size: .85rem; color: var(--w-ink-3); }
.cat-links a {
    font-family: var(--w-mono); font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--w-ever-700) !important; background: var(--w-primary-light);
    padding: .15rem .5rem; border-radius: var(--w-r-sm);
    text-decoration: none !important;
}
.cat-links a:hover { background: var(--w-primary) !important; color: #fff !important; }

/* ============================================================
   FOOTER — columned, evergreen
   ============================================================ */
.site-footer {
    background: var(--w-ever-950) !important;
    margin-top: var(--w-gap);
}
.w-footer { border-bottom: 1px solid var(--w-ever-800); }
.w-footer-inner {
    max-width: var(--w-wide); margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
.w-footer-logo {
    font-family: var(--w-display); font-weight: 700;
    letter-spacing: .08em; color: #fff; font-size: 1.05rem;
}
.w-footer-logo::before {
    content: ''; display: inline-block;
    width: .5em; height: .5em; margin-right: .5em;
    background: var(--w-accent); transform: rotate(45deg);
    border-radius: 2px;
}
.w-footer-tag {
    color: #7fa79a; font-size: .9rem; line-height: 1.7;
    margin-top: .8rem; max-width: 34ch;
}
.w-footer-head {
    display: block;
    font-family: var(--w-mono); font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--w-mint); margin-bottom: .9rem;
}
.w-footer-col a {
    display: block; color: #a9c6bc !important;
    font-size: .9rem; padding: .22rem 0;
    text-decoration: none !important;
}
.w-footer-col a:hover { color: #fff !important; }

.inside-site-info {
    max-width: var(--w-wide); margin: 0 auto;
    padding: 1.4rem 1.5rem !important;
    font-size: .85rem; color: #5f8377 !important;
    text-align: center;
}
.site-info a { color: #7fa79a !important; }

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"], input[type="email"], input[type="url"],
input[type="search"], textarea, select {
    font-family: var(--w-body);
    border: 1px solid var(--w-border-2) !important;
    border-radius: var(--w-r) !important;
    padding: .65rem 1rem;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--w-primary) !important;
    box-shadow: 0 0 0 3px var(--w-primary-light) !important;
}
button, input[type="submit"], .wp-block-button__link {
    font-family: var(--w-display) !important; font-weight: 700;
    background: var(--w-primary) !important; color: #fff !important;
    border: 0; border-radius: var(--w-r) !important;
    padding: .7rem 1.5rem;
    transition: background .12s ease, transform .12s ease;
}
button:hover, input[type="submit"]:hover { background: var(--w-primary-hover) !important; transform: translateY(-1px); }

.ml-form-embedWrapper { border-radius: var(--w-r-lg) !important; box-shadow: var(--w-shadow) !important; }
.ml-form-embedWrapper .ml-form-embedSubmit button {
    background: var(--w-accent) !important; color: var(--w-ever-950) !important;
    font-family: var(--w-display) !important; font-weight: 700 !important;
    border-radius: var(--w-r) !important;
}
.ml-form-embedWrapper .ml-form-embedSubmit button:hover { background: #fbbf24 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .w-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .w-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .entry-title { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
    .inside-article { padding: 1.5rem 1.1rem 2rem; }
    .home .entry-content > section:first-of-type { padding: 3.5rem 1.25rem 3rem; }
    .home section[aria-label="What you can build"] {
        margin-left: -0.6rem; margin-right: -0.6rem;
        padding: 1.4rem 1.1rem;
    }
    .home section[aria-label="What you can build"].w-has-cards { grid-template-columns: 1fr; }
    section[aria-label="Free toolkit"] { padding: 1.6rem 1.3rem; }
}
@media (max-width: 560px) {
    .w-footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   A11Y & PRINT
   ============================================================ */
:focus-visible { outline: 2px solid var(--w-accent-deep); outline-offset: 2px; }
.screen-reader-text:focus {
    background: var(--w-primary); color: #fff;
    padding: .5rem 1rem; border-radius: var(--w-r);
    position: fixed; top: .5rem; left: .5rem; z-index: 9999;
}
@media print {
    .site-header, .site-footer, .main-navigation { display: none; }
    body { font-size: 11pt; color: #000; }
    a { color: #000; }
}

/* ============================================================
   v2.1 PATCHES
   ============================================================ */

/* FIX 1: hero — neutralize callout styling inside the dark hero */
.home .entry-content > section:first-of-type p > strong:first-child:only-child {
    display: inline;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: inherit;
    color: #ffffff;
    border-radius: 0;
}

/* FIX 2: footer — force evergreen background on every GP footer wrapper */
.site-footer,
footer.site-footer,
.site-footer .footer-widgets,
.site-footer .inside-site-info,
.site-info {
    background: var(--w-ever-950) !important;
    color: #a9c6bc !important;
}
.w-footer { background: var(--w-ever-950); }
.w-footer-logo { color: #ffffff !important; }
.w-footer-col a { color: #a9c6bc !important; }
.w-footer-col a:hover { color: #ffffff !important; }
.w-footer-tag { color: #7fa79a !important; }
.inside-site-info, .site-info .copyright { color: #5f8377 !important; }

/* FIX 3: toolkit CTA gets its own line */
section[aria-label="Free toolkit"] a strong,
section[aria-label="Free toolkit"] strong a {
    display: block;
    width: max-content;
    margin-top: 1rem;
}
