/*
Theme Name: Trovey Inspiration
Theme URI: https://explore.trovey.com
Author: Trovey
Author URI: https://explore.trovey.com
Description: Editorial WordPress theme for the Trovey "Inspiration" blog. A calm, premium, mobile-first design system that mirrors the main Trovey marketing website so the blog feels completely seamless — same header, footer, typography, colour palette and motion. Built for a blog: one main posts index and individual articles, ready for a client to manage.
Version: 1.0.0
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: trovey
Tags: blog, editorial, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   TROVEY INSPIRATION — WordPress theme stylesheet
   --------------------------------------------------------------------------
   Sections 1–17 below are the shared Trovey design system, kept identical to
   the marketing website (public_html/assets/css/styles.css) so the blog and
   the main site feel like one continuous experience.

   Section 18 adds the WordPress-specific styling (post content, comments,
   pagination, search, alignments, blocks) — all built on the same tokens.
   ========================================================================== */

/* ==========================================================================
   TROVEY — premium travel discovery
   A calm, editorial design system. Mobile-first.
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Header & navigation
   7.  Mobile menu
   8.  Hero
   9.  Editorial sections (split, problem, steps, pathways, features…)
   10. Cards & media
   11. Pricing
   12. Quote / mission
   13. CTA bands
   14. Forms
   15. Footer
   16. Motion / reveal
   17. Responsive scaling
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
    --paper:        #EDEAD9;
    --paper-deep:   #E4E0CC;   /* subtle alternate background */
    --ink:          #14170C;
    --forest:       #272E1C;
    --sea:          #6A89A5;
    --earth:        #361E12;
    --city:         #3B3B3B;
    --sand:         #D5AD69;

    --ink-70:       rgba(20, 23, 12, 0.70);
    --ink-55:       rgba(20, 23, 12, 0.55);
    --ink-12:       rgba(20, 23, 12, 0.12);
    --ink-08:       rgba(20, 23, 12, 0.08);
    --paper-70:     rgba(237, 234, 217, 0.70);

    --font-head: "DM Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --maxw:       1240px;
    --maxw-text:  720px;
    --gutter:     1.5rem;

    --radius:     2px;
    --radius-lg:  6px;

    --ease:       cubic-bezier(0.22, 1, 0.36, 1);
    --header-h:   72px;
}

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
picture {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--sea);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1.25rem;
    z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

body.no-scroll { overflow: hidden; }

/* 3. Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.display {
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    line-height: 1.02;
}

h2, .h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h3, .h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.lead {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-70);
    font-weight: 400;
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sand);
    display: inline-block;
    margin-bottom: 1.25rem;
}
.eyebrow--ink { color: var(--ink-55); }

p + p { margin-top: 1.1rem; }

.muted { color: var(--ink-55); }

/* 4. Layout primitives --------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(4rem, 10vw, 8.5rem);
}
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section--paper-deep { background: var(--paper-deep); }
.section--forest {
    background: var(--forest);
    color: var(--paper);
}
.section--ink {
    background: var(--ink);
    color: var(--paper);
}
.section--forest .eyebrow,
.section--ink .eyebrow { color: var(--sand); }
.section--forest .lead,
.section--ink .lead { color: var(--paper-70); }
.section--forest .muted,
.section--ink .muted { color: var(--paper-70); }

.measure { max-width: var(--maxw-text); }
.center { text-align: center; }
.center.measure { margin-inline: auto; }

/* small spacing / alignment utilities (keeps markup free of inline styles) */
.u-center { margin-inline: auto; }
.u-mt { margin-top: 1.75rem; }
.u-mt-lg { margin-top: 2.5rem; }
.u-row-center { justify-content: center; }
.quote--intro { max-width: 28ch; margin-inline: auto; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.25rem; }

.hairline {
    border: 0;
    border-top: 1px solid var(--ink-12);
}
.section--forest .hairline,
.section--ink .hairline { border-color: rgba(237, 234, 217, 0.18); }

/* 5. Buttons & links ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
                border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--ink    { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--forest); }

.btn--paper  { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }

.btn--sand   { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: #e2c084; }

.btn--ghost  { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--ghost-light { background: transparent; border-color: var(--paper-70); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.text-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: gap 0.3s var(--ease), opacity 0.3s var(--ease);
}
.text-link:hover { gap: 0.85rem; opacity: 0.7; }
.text-link .arrow { transition: transform 0.3s var(--ease); }

/* 6. Header & navigation ------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease),
                border-color 0.45s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-header__logo {
    height: 26px;
    width: auto;
    /* over the dark hero the ink logo is rendered white */
    filter: brightness(0) invert(1);
    transition: filter 0.45s var(--ease);
}

.site-nav { display: none; }
.site-nav__list { display: flex; gap: 2.1rem; }
.site-nav__link {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--paper);
    position: relative;
    padding-block: 0.4rem;
    transition: opacity 0.3s var(--ease);
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.site-nav__link:hover { opacity: 0.75; }
.site-nav__link.is-active::after { transform: scaleX(1); }

.site-header__cta {
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.6rem 1.3rem;
    border: 1px solid var(--paper-70);
    border-radius: 100px;
    color: var(--paper);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header__cta:hover { background: var(--paper); color: var(--ink); }

/* Scrolled / solid state */
.site-header.is-solid {
    background: var(--paper);
    border-bottom-color: var(--ink-12);
}
.site-header.is-solid .site-header__logo { filter: none; }
.site-header.is-solid .site-nav__link { color: var(--ink); }
.site-header.is-solid .site-header__cta { color: var(--ink); border-color: var(--ink); }
.site-header.is-solid .site-header__cta:hover { background: var(--ink); color: var(--paper); }
.site-header.is-solid .nav-toggle__bar { background: var(--ink); }

/* Hamburger */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    padding: 0 10px;
}
.nav-toggle__bar {
    display: block;
    height: 1.5px;
    width: 24px;
    background: var(--paper);
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background-color 0.4s var(--ease);
}
.nav-toggle.is-open .nav-toggle__bar { background: var(--paper); }
.nav-toggle.is-open .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* 7. Mobile menu --------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--forest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu[hidden] { display: flex; }   /* keep transitions; JS toggles class */

.mobile-menu__nav {
    text-align: center;
    padding: 2rem;
    width: 100%;
}
.mobile-menu__list { display: grid; gap: 0.4rem; margin-bottom: 2.5rem; }
.mobile-menu__link {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(2rem, 9vw, 3rem);
    color: var(--paper);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
    display: inline-block;
    padding-block: 0.15rem;
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu__link.is-active,
.mobile-menu__link:hover { color: var(--sand); }
/* staggered entrance */
.mobile-menu.is-open .mobile-menu__link {
    transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.mobile-menu__cta { margin-top: 0.5rem; }

/* 8. Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: var(--paper);
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {  /* legibility wash */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20,23,12,0.45) 0%, rgba(20,23,12,0.05) 35%, rgba(20,23,12,0.65) 100%);
}
.hero__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    width: 100%;
    padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}
.hero__content { max-width: 760px; }
.hero h1 { color: var(--paper); margin-bottom: 1.5rem; }
.hero .lead { color: rgba(237,234,217,0.86); max-width: 36ch; }
.hero .eyebrow { color: var(--sand); }

.hero--short { min-height: 78vh; }

.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--paper-70);
    display: none;
}

/* 9. Editorial sections -------------------------------------------------- */

/* Split: text + image side by side */
.split {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.split__media--wide img { aspect-ratio: 3 / 2; }

/* Problem cards (image-led) */
.problem-grid {
    display: grid;
    gap: 1.5rem;
}
.problem-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-deep);
}
.problem-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.problem-card__body { padding: 1.6rem 1.5rem 1.9rem; }
.problem-card h3 { margin-bottom: 0.6rem; }
.problem-card p { color: var(--ink-55); font-size: 0.98rem; }

/* Steps (how it works) */
.steps {
    display: grid;
    gap: 2.5rem;
    counter-reset: step;
}
.step {
    border-top: 1px solid var(--ink-12);
    padding-top: 1.75rem;
}
.section--forest .step,
.section--ink .step { border-color: rgba(237,234,217,0.18); }
.step__num {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--sand);
    display: block;
    margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.65rem; }
.step p { color: var(--ink-55); }
.section--forest .step p,
.section--ink .step p { color: var(--paper-70); }

/* Pathways (three user groups) */
.pathways { display: grid; gap: 1.5rem; }
.pathway {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    color: var(--paper);
}
.pathway img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.9s var(--ease);
}
.pathway::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20,23,12,0) 30%, rgba(20,23,12,0.82) 100%);
}
.pathway:hover img { transform: scale(1.05); }
.pathway__body { padding: 2rem 1.75rem; }
.pathway__body .eyebrow { color: var(--sand); }
.pathway h3 { color: var(--paper); margin-bottom: 0.5rem; }
.pathway p { color: rgba(237,234,217,0.85); margin-bottom: 1.1rem; font-size: 0.98rem; }

/* Feature list (benefits) */
.feature-grid { display: grid; gap: 2.25rem; }
.feature {
    border-top: 1px solid var(--ink-12);
    padding-top: 1.5rem;
}
.section--forest .feature,
.section--ink .feature { border-color: rgba(237,234,217,0.18); }
.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}
.feature p { color: var(--ink-55); font-size: 0.98rem; }
.section--forest .feature p,
.section--ink .feature p { color: var(--paper-70); }

/* Stat row */
.stats {
    display: grid;
    gap: 2.5rem;
    text-align: center;
}
.stat__num {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 4rem);
    line-height: 1;
    color: var(--ink);
}
.section--forest .stat__num,
.section--ink .stat__num { color: var(--sand); }
.stat__label {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--ink-55);
}
.section--forest .stat__label,
.section--ink .stat__label { color: var(--paper-70); }

/* Inline checklist */
.checklist { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.checklist li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink-70);
}
.section--forest .checklist li,
.section--ink .checklist li { color: var(--paper-70); }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--sand);
}

/* 10. Cards & media ------------------------------------------------------ */
.editorial-grid { display: grid; gap: 2rem; }
.article-card { display: block; }
.article-card__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.article-card__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__cat {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 500;
}
.article-card h3 {
    font-size: 1.45rem;
    margin: 0.6rem 0 0.5rem;
}
.article-card p { color: var(--ink-55); font-size: 0.98rem; }

.feature-article {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.feature-article__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature-article__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.feature-article__body h2 { margin: 0.6rem 0 0.75rem; }
.feature-article__body .text-link { margin-top: 1.5rem; }

/* Device / app showcase */
.showcase {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.showcase__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* App store badges */
.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-top: 2rem;
}
.store-badge { height: 50px; width: auto; }

/* 11. Pricing ------------------------------------------------------------ */
.pricing-grid { display: grid; gap: 1.5rem; }
.price-card {
    background: var(--paper);
    border: 1px solid var(--ink-12);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
}
.price-card--featured {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}
.price-card--featured .price-card__price,
.price-card--featured h3 { color: var(--paper); }
.price-card__tag {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 500;
    margin-bottom: 1rem;
}
.price-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.price-card__price {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 2.6rem;
    line-height: 1;
    margin: 0.5rem 0 0.25rem;
}
.price-card__price span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-55);
}
.price-card--featured .price-card__price span { color: var(--paper-70); }
.price-card__desc { color: var(--ink-55); font-size: 0.95rem; margin-bottom: 1.5rem; }
.price-card--featured .price-card__desc { color: var(--paper-70); }
.price-card__features {
    display: grid;
    gap: 0.8rem;
    margin: 0 0 2rem;
    flex-grow: 1;
}
.price-card__features li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.95rem;
    color: var(--ink-70);
}
.price-card--featured .price-card__features li { color: var(--paper-70); }
.price-card__features li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--sand);
}
.price-card .btn { width: 100%; }

/* 12. Quote / mission ---------------------------------------------------- */
.quote {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(1.7rem, 4.5vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
    max-width: 18ch;
}
.mission-grid { display: grid; gap: 2.5rem; }
.mission-block h3 { color: var(--sand); margin-bottom: 0.85rem; font-size: 1.1rem;
    font-family: var(--font-body); font-weight: 500; letter-spacing: 0.04em; }

/* 13. CTA bands ---------------------------------------------------------- */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta--image { color: var(--paper); }
.cta--image .cta__media {
    position: absolute;
    inset: 0; z-index: -2;
}
.cta--image .cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta--image::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: rgba(20,23,12,0.6);
}
.cta h2 { margin-bottom: 1.25rem; }
.cta .lead { margin-inline: auto; }
.cta--image .lead { color: rgba(237,234,217,0.88); }
.cta .btn-row { justify-content: center; }

/* 14. Forms -------------------------------------------------------------- */
.form-layout { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.form {
    display: grid;
    gap: 1.5rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--ink-70);
}
.field input,
.field select,
.field textarea {
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink-12);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field--row { display: grid; gap: 1.5rem; }

.contact-aside { display: grid; gap: 2rem; }
.contact-aside__item h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}
.contact-aside__item p { color: var(--ink-55); font-size: 0.97rem; }
.contact-aside__item a { border-bottom: 1px solid var(--ink-12); }

.form-success {
    border: 1px solid var(--ink-12);
    border-left: 3px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    background: var(--paper-deep);
}
.form-success h3 { margin-bottom: 0.6rem; }

/* 15. Footer ------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: var(--paper-70);
    padding-top: clamp(3.5rem, 7vw, 6rem);
}
.site-footer__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: grid;
    gap: 3rem;
    padding-bottom: 3.5rem;
}
.site-footer__logo {
    height: 26px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.25rem;
}
.site-footer__tagline { max-width: 30ch; font-size: 1.05rem; color: var(--paper); line-height: 1.5; }
.site-footer__apps { display: flex; gap: 0.8rem; margin-top: 1.75rem; flex-wrap: wrap; }
.site-footer__apps .store-badge { height: 44px; }
.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.site-footer__heading {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1.1rem;
}
.site-footer__col ul { display: grid; gap: 0.7rem; }
.site-footer__col a { font-size: 0.95rem; transition: color 0.3s var(--ease); }
.site-footer__col a:hover { color: var(--paper); }

.site-footer__base {
    border-top: 1px solid rgba(237,234,217,0.14);
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 1.75rem var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
}
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a:hover { color: var(--paper); }

/* 16. Motion / reveal ---------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn:hover { transform: none; }
}

/* 17. Responsive scaling ------------------------------------------------- */
@media (min-width: 600px) {
    :root { --gutter: 2rem; }
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
    .field--row { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .scroll-cue { display: block; }
    .pathways { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
    .editorial-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .mission-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .site-footer__inner { grid-template-columns: 1.4fr 2fr; gap: 4rem; }
    .site-footer__base { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 960px) {
    :root { --header-h: 84px; }
    .site-nav { display: block; }
    .nav-toggle { display: none; }
    .site-header__cta { display: inline-flex; }

    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
    .split--text-lead { grid-template-columns: 1.05fr 1fr; }

    .showcase { grid-template-columns: 1fr 1fr; }
    .showcase--reverse .showcase__media { order: 2; }

    .feature-article { grid-template-columns: 1.1fr 0.9fr; }
    .feature-article--reverse .feature-article__media { order: 2; }

    .editorial-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid--3 { grid-template-columns: repeat(3, 1fr); }

    .form-layout { grid-template-columns: 1.4fr 1fr; }

    .quote-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
}

@media (min-width: 1200px) {
    .feature-grid { gap: 3rem 4rem; }
}

/* ==========================================================================
   18. WordPress — blog, content & editorial article layout
   Built entirely on the tokens defined in section 1.
   ========================================================================== */

/* --- Accessibility helper (WP standard) -------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--paper);
    color: var(--ink);
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto; width: auto;
    left: 1rem; top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    z-index: 200;
}

/* --- Hero variants used by blog templates ------------------------------ */
.hero--post .hero__content { max-width: 900px; }
.hero--post h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.06; }

/* Solid (imageless) hero for archives, search & 404 — calm forest field   */
.hero--solid {
    min-height: 60vh;
    background: var(--forest);
}
.hero--solid::after { display: none; }

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.9rem;
    margin-top: 1.5rem;
    color: rgba(237, 234, 217, 0.86);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.hero__meta .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--sand);
    display: inline-block;
}
.hero__meta a { border-bottom: 1px solid rgba(237, 234, 217, 0.4); }

/* --- Article body: the_content ----------------------------------------- */
.entry-content {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink);
}
.entry-content > * + * { margin-top: 1.4rem; }
.entry-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin-top: 2.8rem;
}
.entry-content h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    margin-top: 2.2rem;
}
.entry-content h4 { font-size: 1.2rem; margin-top: 1.8rem; }
.entry-content p { color: var(--ink); }
.entry-content a {
    color: var(--ink);
    border-bottom: 1px solid var(--sand);
    transition: opacity 0.3s var(--ease);
}
.entry-content a:hover { opacity: 0.65; }
.entry-content strong { font-weight: 600; }
.entry-content ul,
.entry-content ol {
    padding-left: 1.35rem;
    display: grid;
    gap: 0.55rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { color: var(--ink-70); padding-left: 0.25rem; }
.entry-content li::marker { color: var(--sand); }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content figure { margin-block: 2rem; }
.entry-content figcaption,
.wp-caption-text,
.wp-element-caption {
    font-size: 0.85rem;
    color: var(--ink-55);
    margin-top: 0.6rem;
    text-align: center;
}
.entry-content blockquote,
.wp-block-quote {
    border-left: 2px solid var(--sand);
    padding-left: 1.6rem;
    margin-block: 2.25rem;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.35;
    color: var(--forest);
}
.entry-content blockquote cite,
.wp-block-quote cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.9rem;
    color: var(--ink-55);
    margin-top: 0.9rem;
}
.wp-block-pullquote {
    border: 0;
    text-align: center;
    padding: 1rem 0;
}
.wp-block-pullquote blockquote { border: 0; padding: 0; margin-inline: auto; max-width: 28ch; }
.entry-content pre,
.wp-block-code {
    background: var(--forest);
    color: var(--paper);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}
.entry-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}
.entry-content :not(pre) > code {
    background: var(--paper-deep);
    padding: 0.15em 0.4em;
    border-radius: var(--radius);
}
.entry-content hr {
    border: 0;
    border-top: 1px solid var(--ink-12);
    margin-block: 3rem;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 2rem;
    font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
    border-bottom: 1px solid var(--ink-12);
    padding: 0.75rem 1rem;
    text-align: left;
}
.entry-content th { font-weight: 600; }

/* --- WordPress alignments ---------------------------------------------- */
.alignleft {
    float: left;
    margin: 0.4rem 1.75rem 1.25rem 0;
    max-width: 50%;
}
.alignright {
    float: right;
    margin: 0.4rem 0 1.25rem 1.75rem;
    max-width: 50%;
}
.aligncenter {
    display: block;
    margin-inline: auto;
}
.entry-content > .alignwide {
    width: min(calc(100vw - 2 * var(--gutter)), 1080px);
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
}
.entry-content > .alignfull {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
    border-radius: 0;
}
.entry-content > .alignfull img { border-radius: 0; width: 100%; }
.wp-block-image { margin-block: 2rem; }
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-image.alignfull img { border-radius: 0; }

/* --- Buttons block: match brand ---------------------------------------- */
.wp-block-button__link,
.wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    padding: 0.95rem 1.9rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.wp-block-button__link:hover,
.wp-element-button:hover { background: var(--forest); transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

/* --- Post footer: tags -------------------------------------------------- */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.5rem;
}
.post-tags__label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-55);
    align-self: center;
    margin-right: 0.25rem;
}
.post-tags a {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--ink-12);
    border-radius: 100px;
    padding: 0.4rem 0.95rem;
    color: var(--ink-70);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.post-tags a:hover { border-color: var(--ink); color: var(--ink); }

/* --- Author box --------------------------------------------------------- */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border-top: 1px solid var(--ink-12);
    margin-top: 3rem;
    padding-top: 2rem;
}
.author-box__avatar img {
    border-radius: 50%;
    width: 60px; height: 60px;
    object-fit: cover;
}
.author-box__name {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 1.3rem;
}
.author-box__bio {
    color: var(--ink-55);
    font-size: 0.97rem;
    margin-top: 0.35rem;
}

/* --- Prev / next post navigation --------------------------------------- */
.post-nav { display: grid; gap: 1rem; margin-top: 3rem; }
.post-nav__item {
    display: block;
    border: 1px solid var(--ink-12);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.post-nav__item:hover { border-color: var(--ink); background: var(--paper-deep); }
.post-nav__label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 500;
}
.post-nav__title {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 1.2rem;
    margin-top: 0.4rem;
    color: var(--ink);
}
.post-nav__item--next { text-align: right; }
@media (min-width: 700px) {
    .post-nav { grid-template-columns: 1fr 1fr; }
}

/* --- Pagination --------------------------------------------------------- */
.pagination {
    margin-top: clamp(3rem, 6vw, 5rem);
    display: flex;
    justify-content: center;
}
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.9rem;
    border: 1px solid var(--ink-12);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--ink-70);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.pagination .page-numbers.dots { border-color: transparent; }

/* --- Article card meta (date / author on listing cards) ---------------- */
.article-card__meta {
    color: var(--ink-55);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.article-card__excerpt { margin-top: 0.5rem; }

/* --- Comments ----------------------------------------------------------- */
.comments {
    margin-top: 3.5rem;
    border-top: 1px solid var(--ink-12);
    padding-top: 2.5rem;
}
.comments__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.75rem;
}
.comment-list { display: grid; gap: 1.75rem; }
.comment-list .children {
    list-style: none;
    padding-left: 1.5rem;
    display: grid;
    gap: 1.75rem;
    margin-top: 1.75rem;
}
.comment-body {
    border: 1px solid var(--ink-12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.comment-author { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem; }
.comment-author img { border-radius: 50%; }
.comment-metadata { color: var(--ink-55); font-size: 0.82rem; margin: 0.35rem 0 0.75rem; }
.comment-metadata a { color: inherit; }
.comment-content { color: var(--ink-70); }
.comment-content p + p { margin-top: 0.8rem; }
.reply { margin-top: 0.75rem; }
.comment-reply-link {
    font-size: 0.85rem;
    color: var(--sea);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.comment-respond { margin-top: 2.5rem; }
.comment-reply-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
.comment-form { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.comment-form p { display: grid; gap: 0.4rem; margin: 0; }
.comment-form label { font-size: 0.8rem; font-weight: 500; color: var(--ink-70); letter-spacing: 0.04em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink-12);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit { margin: 0; }
.comment-notes, .comment-form-cookies-consent { color: var(--ink-55); font-size: 0.88rem; }
.comment-form-cookies-consent { grid-template-columns: auto 1fr; display: grid; align-items: start; gap: 0.6rem; }

/* --- Search form -------------------------------------------------------- */
.search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 480px;
}
.search-form .search-field {
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    flex: 1;
    background: var(--paper);
    border: 1px solid var(--ink-12);
    border-radius: 100px;
    padding: 0.85rem 1.25rem;
}
.search-form .search-field:focus { outline: none; border-color: var(--ink); background: #fff; }
.hero .search-form .search-field {
    background: rgba(237, 234, 217, 0.12);
    border-color: rgba(237, 234, 217, 0.35);
    color: var(--paper);
}
.hero .search-form .search-field::placeholder { color: rgba(237, 234, 217, 0.7); }

/* --- Widgets (optional, e.g. if a sidebar is added later) -------------- */
.widget { margin-bottom: 2.5rem; }
.widget-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1rem;
}

/* --- Sticky post flag --------------------------------------------------- */
.article-card__flag {
    color: var(--sand);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

/* --- Empty state (no posts / no results) ------------------------------- */
.notice-block {
    border: 1px solid var(--ink-12);
    border-left: 3px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    background: var(--paper-deep);
}
.notice-block h3 { margin-bottom: 0.6rem; }
