/* Footprints site template — the Footprints Journal design (Figma "Footprints · Journal",
   pages 01 · Journal and 02 · Components; colours from footprints/docs/footprints-color-palette.md,
   "Kapradí" greens) on every public page: site_wide_stylesheet in template.json loads it on the
   blog listing and posts too, after the CMS's public.css. Light mode only.

   The CMS reads colours from two layers: --color-* (injected by ThemeService, overridable in
   Site settings) and --hb-* (derived from them in public.css). Setting --color-* retints both;
   a few --hb-* tokens that public.css hard-codes are set directly.

   Everything here styles the markup the CMS renders. Parts of the design that still need new
   markup (tag filter, article CTA, related articles, info boxes) are listed in
   REDESIGN-CHECKLIST.md, phase 3. */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700,800&display=swap');

:root {
    /* Palette */
    --fp-forest: #141a0e;
    --fp-deep-forest: #2a3a1c;
    --fp-fern: #3f7420;
    --fp-fern-dark: #335f1a;
    --fp-fern-light: #a9d46e;
    --fp-mist: #f5f7ee;
    --fp-surface: #ffffff;
    --fp-text: #1f2619;
    --fp-text-muted: #616a58;
    --fp-border: #dce3d0;
    --fp-soft-green: #e7f0da;
    --fp-mist-82: rgb(245 247 238 / 82%);
    --fp-mist-15: rgb(245 247 238 / 15%);

    /* Status, for article callouts */
    --fp-info-bg: #e2f0fb;
    --fp-warning-bg: #fcf0da;

    /* Sports: main for the dot, light for the chip (tags carry their slug as a class) */
    --fp-running: #e56b43;
    --fp-running-light: #fbe8df;
    --fp-cycling: #3189c9;
    --fp-cycling-light: #e2f0fb;
    --fp-hiking: #39865a;
    --fp-hiking-light: #e2f1e5;
    --fp-swimming: #8b72d9;
    --fp-swimming-light: #eee9fc;
    --fp-workout: #d99535;
    --fp-workout-light: #fcf0da;
    --fp-yoga: #c65d91;
    --fp-yoga-light: #f9e6ef;
    --fp-other: #78857b;
    --fp-other-light: #e9ede8;

    /* Layout: 1200 px of content, 24 px gutters on a phone */
    --fp-content: 75rem;
    --fp-article: 45rem;
    --fp-gutter: 1.5rem;
    --fp-radius: 1rem;
    --fp-shadow-hover: 0 10px 30px rgb(20 26 14 / 10%);

    --color-primary: var(--fp-fern);
    --color-primary-hover: var(--fp-fern-dark);
    --color-accent: var(--fp-fern-light);
    --color-text: var(--fp-text);
    --color-text-muted: var(--fp-text-muted);
    --color-bg: var(--fp-mist);
    --color-surface: var(--fp-surface);
    --color-border: var(--fp-border);

    --hb-primary-fg: #ffffff;
    --hb-link: var(--fp-fern);
    --hb-gradient: var(--fp-fern);
    --hb-container: calc(var(--fp-content) + 2 * var(--fp-gutter));

    --font-heading: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

/* The full-bleed hero is wider than its column; clip, not hidden, so nothing becomes a
   scroll container and sticky/anchor behaviour is unchanged. */
body {
    overflow-x: clip;
}

/* An article reads on white, as in the design; everything else sits on Mist. */
body:has(.blog-post) {
    background: var(--fp-surface);
}

/* public.css boxes <main> into the container; each page part sets its own width here. */
main {
    max-width: none;
    padding: 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fp-text);
}

a {
    color: var(--fp-fern);
}

::selection {
    background: var(--fp-soft-green);
    color: var(--fp-text);
}

/* 3 px ring, 3 px off the element (02 · Components, Buttons). */
:focus-visible {
    outline: 3px solid var(--fp-fern);
    outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--fp-surface);
    border-bottom: 1px solid var(--fp-border);
}

.site-header__inner {
    max-width: var(--hb-container);
    margin: 0 auto;
    padding: 1.125rem var(--fp-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fp-text);
    text-decoration: none;
}

/* The uploaded logo is the hexagon mark alone (assets/logo.svg); the design pairs it with
   the lower-case wordmark. Decorative — the image's alt already names the link. */
.site-header__logo:has(.site-header__logo-image)::after {
    content: 'footprints' / '';
}

.site-header__logo-image {
    height: 2.25rem;
    width: auto;
}

.site-header__nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0.5rem 2rem;
    list-style: none;
}

.site-header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fp-text);
    text-decoration: none;
}

.site-header__nav-link:hover {
    color: var(--fp-fern);
}

/* The last menu item is the way into the app: a primary pill, as in the design. */
.site-header__nav-item:last-child > .site-header__nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    background: var(--fp-fern);
    color: #ffffff;
    font-weight: 600;
}

.site-header__nav-item:last-child > .site-header__nav-link:hover {
    background: var(--fp-fern-dark);
    color: #ffffff;
}

/* The CMS's mobile menu (public.css, up to 48rem): the panel drops below the header on white,
   and "Open Footprints" stays a full-width pill at its foot. */
.site-header.is-menu-open .site-header__nav {
    padding: 0.5rem var(--fp-gutter) 1.5rem;
    background: var(--fp-surface);
    border-bottom-color: var(--fp-border);
    box-shadow: var(--fp-shadow-hover);
}

.site-header.is-menu-open .site-header__nav-link {
    font-size: 1rem;
}

.site-header.is-menu-open .site-header__nav-item:last-child > .site-header__nav-link {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0 1.5rem;
}

.site-header__toggle:hover {
    color: var(--fp-fern);
}

@media (max-width: 47.99rem) {
    .site-header__inner {
        padding-block: 1rem;
    }

    .site-header__nav-list {
        gap: 0.5rem 1.25rem;
    }

    .site-header__nav-item:last-child > .site-header__nav-link {
        min-height: 2.75rem;
        padding: 0 1.125rem;
    }
}

/* ==========================================================================
   Page-builder grid (the homepage)
   ========================================================================== */

.page-content {
    background: none;
    border: 0;
    padding: 0;
}

.pb-grid {
    padding: 4.5rem var(--fp-gutter);
    row-gap: 4.5rem;
}

/* A page that opens with the hero starts right under the header. */
.pb-grid:has(> .pb-block:first-child .pb-hero) {
    padding-top: 0;
}

.pb-section__header {
    margin-bottom: 2rem;
}

.pb-section__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.pb-section__description {
    font-size: 1.0625rem;
    color: var(--fp-text-muted);
}

/* ==========================================================================
   Buttons — pill, 48 px (44 px minimum target)
   ========================================================================== */

.pb-button {
    min-height: 3rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.pb-button--primary {
    background: var(--fp-fern);
    color: #ffffff;
}

.pb-button--primary:hover {
    background: var(--fp-fern-dark);
    color: #ffffff;
    filter: none;
}

.pb-button--secondary {
    border: 2px solid var(--fp-fern);
    background: transparent;
    color: var(--fp-fern);
}

.pb-button--secondary:hover {
    border-color: var(--fp-fern-dark);
    background: var(--fp-soft-green);
    color: var(--fp-fern-dark);
}

.pb-button--inert {
    opacity: 1;
    background: var(--fp-border);
    border-color: var(--fp-border);
    color: var(--fp-text-muted);
}

/* ==========================================================================
   Hero — full-bleed Forest, the globe beside the text
   ========================================================================== */

.pb-block:has(> .pb-hero) {
    margin-inline: calc(50% - 50vw);
}

.pb-hero {
    border-radius: 0;
    padding: 4rem max(var(--fp-gutter), calc((100vw - var(--fp-content)) / 2));
    background: radial-gradient(90% 100% at 44% 50%, var(--fp-deep-forest) 0%, var(--fp-forest) 100%);
    color: var(--fp-mist);
}

.pb-hero__inner {
    max-width: 34.5rem;
}

.pb-hero__eyebrow {
    margin-bottom: 1.5rem;
    color: var(--fp-fern-light);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pb-hero__title {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.pb-hero__description {
    max-width: 32rem;
    margin-bottom: 1.5rem;
    color: var(--fp-mist-82);
    font-size: 1.25rem;
    line-height: 1.55;
}

/* "On dark": Forest fill, a Mist outline. */
.pb-hero .pb-button--secondary {
    border-color: var(--fp-mist);
    background: var(--fp-forest);
    color: var(--fp-mist);
}

.pb-hero .pb-button--secondary:hover {
    border-color: #ffffff;
    background: var(--fp-deep-forest);
    color: #ffffff;
}

.pb-hero :focus-visible {
    outline-color: var(--fp-fern-light);
}

/* With a background image (the globe, picked in the admin) the image is not a backdrop but
   the right-hand picture of a two-column hero, captioned below. */
.pb-hero:has(.pb-hero__bg) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 37.5rem);
    grid-template-areas:
        'text picture'
        'text caption';
    align-items: center;
    column-gap: 3rem;
    row-gap: 0.75rem;
}

.pb-hero:has(.pb-hero__bg) .pb-hero__inner {
    grid-area: text;
}

.pb-hero .pb-hero__bg {
    grid-area: picture;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 1.5rem;
    object-fit: cover;
    align-self: end;
}

.pb-hero:has(.pb-hero__bg)::after {
    content: 'Every route. One globe.' / '';
    grid-area: caption;
    align-self: start;
    color: var(--fp-fern-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 47.99rem) {
    .pb-hero {
        padding-block: 2.75rem;
    }

    .pb-hero .pb-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-hero:has(.pb-hero__bg) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'text'
            'picture'
            'caption';
        row-gap: 0.75rem;
    }

    .pb-hero:has(.pb-hero__bg) .pb-hero__inner {
        margin-bottom: 1.25rem;
    }

    .pb-hero .pb-hero__bg {
        aspect-ratio: 342 / 306;
    }
}

/* ==========================================================================
   Article cards (blog listing, the homepage's latest posts)
   ========================================================================== */

.blog-listing__grid,
.blog-related__grid,
.pb-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

@media (max-width: 74.99rem) {
    .blog-listing__grid,
    .blog-related__grid,
    .pb-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 47.99rem) {
    .blog-listing__grid,
    .blog-related__grid,
    .pb-posts {
        grid-template-columns: minmax(0, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    background: var(--fp-surface);
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: var(--fp-shadow-hover);
}

.blog-card__cover {
    border-radius: var(--fp-radius);
}

/* Design order: tags, title, perex, then "date · author" on one line. The CMS renders date
   and tags together in __meta, so __meta dissolves and the parts are placed by order. */
.blog-card__body {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.875rem 0;
    padding: 1.5rem;
}

.blog-card__meta {
    display: contents;
}

.blog-card__tags {
    order: 1;
    width: 100%;
}

.blog-card__title {
    order: 2;
    width: 100%;
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.blog-card__perex {
    order: 3;
    width: 100%;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--fp-text-muted);
}

.blog-card__date,
.blog-card__author {
    order: 4;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fp-text-muted);
}

.blog-card__author::before {
    content: '·';
    margin: 0 0.4em;
}

.blog-card__link {
    color: var(--fp-text);
}

.blog-card__link:hover,
.blog-card:hover .blog-card__link {
    color: var(--fp-fern);
}

/* --- Featured: the first of the homepage's latest posts ------------------- */

.pb-posts > .blog-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
}

.pb-posts > .blog-card:first-child .blog-card__cover {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 20.625rem;
    aspect-ratio: auto;
    border-radius: 0;
}

.pb-posts > .blog-card:first-child .blog-card__body {
    grid-column: 1;
    grid-row: 1;
    align-content: center;
    gap: 1rem 0;
    padding: 2rem;
}

.pb-posts > .blog-card:first-child .blog-card__title {
    font-size: clamp(1.625rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.pb-posts > .blog-card:first-child .blog-card__perex {
    font-size: 1.0625rem;
    line-height: 1.5;
}

/* The featured story's tag reads as an eyebrow, not a chip. */
.pb-posts > .blog-card:first-child .blog-card__tag {
    height: auto;
    padding: 0;
    background: none;
    clip-path: none;
    color: var(--fp-fern);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* One eyebrow, not a run-on list of them. */
.pb-posts > .blog-card:first-child .blog-card__tag:not(:first-child) {
    display: none;
}

@media (max-width: 47.99rem) {
    .pb-posts > .blog-card:first-child {
        grid-template-columns: minmax(0, 1fr);
    }

    .pb-posts > .blog-card:first-child .blog-card__cover {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .pb-posts > .blog-card:first-child .blog-card__body {
        padding: 1.5rem;
    }
}

/* "All articles" under the latest posts: a centred outline pill. */
.pb-posts + .pb-buttons {
    justify-content: center;
    margin-top: 2rem;
}

.pb-posts + .pb-buttons .pb-button--primary {
    border: 2px solid var(--fp-fern);
    background: transparent;
    color: var(--fp-fern);
}

.pb-posts + .pb-buttons .pb-button--primary:hover {
    background: var(--fp-soft-green);
    color: var(--fp-fern-dark);
}

/* ==========================================================================
   Tags — hex-cut chips
   ========================================================================== */

.blog-card__tags,
.blog-post__tags {
    gap: 0.5rem;
}

.blog-card__tag,
.blog-post__tag {
    display: inline-flex;
    align-items: center;
    height: 1.75rem;
    padding: 0 0.875rem;
    border-radius: 0;
    background: var(--fp-tag-light, var(--fp-soft-green));
    color: var(--fp-fern-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    clip-path: polygon(0.5rem 0, calc(100% - 0.5rem) 0, 100% 50%, calc(100% - 0.5rem) 100%, 0.5rem 100%, 0 50%);
}

/* Sport tags (the CMS adds the tag slug as a modifier): the chip takes the sport's light tint
   and leads with a dot in its main colour. Text stays dark, since the sport colours are too
   light for small text on their tints. Any other tag keeps the neutral Soft Green chip. */
.blog-card__tag--running,
.blog-post__tag--running,
.blog-listing__filter--running {
    --fp-tag: var(--fp-running);
    --fp-tag-light: var(--fp-running-light);
    --fp-tag-dot: '';
    color: var(--fp-text);
}

.blog-card__tag--cycling,
.blog-post__tag--cycling,
.blog-listing__filter--cycling {
    --fp-tag: var(--fp-cycling);
    --fp-tag-light: var(--fp-cycling-light);
    --fp-tag-dot: '';
    color: var(--fp-text);
}

.blog-card__tag--hiking,
.blog-post__tag--hiking,
.blog-listing__filter--hiking {
    --fp-tag: var(--fp-hiking);
    --fp-tag-light: var(--fp-hiking-light);
    --fp-tag-dot: '';
    color: var(--fp-text);
}

.blog-card__tag--swimming,
.blog-post__tag--swimming,
.blog-listing__filter--swimming {
    --fp-tag: var(--fp-swimming);
    --fp-tag-light: var(--fp-swimming-light);
    --fp-tag-dot: '';
    color: var(--fp-text);
}

.blog-card__tag--workout,
.blog-post__tag--workout,
.blog-listing__filter--workout {
    --fp-tag: var(--fp-workout);
    --fp-tag-light: var(--fp-workout-light);
    --fp-tag-dot: '';
    color: var(--fp-text);
}

.blog-card__tag--yoga,
.blog-post__tag--yoga,
.blog-listing__filter--yoga {
    --fp-tag: var(--fp-yoga);
    --fp-tag-light: var(--fp-yoga-light);
    --fp-tag-dot: '';
    color: var(--fp-text);
}

/* `content: none` unless a sport rule above set the dot. */
.blog-card__tag::before,
.blog-post__tag::before {
    content: var(--fp-tag-dot, none);
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.375rem;
    border-radius: 50%;
    background: var(--fp-tag);
}

/* The featured story's eyebrow stays plain text. */
.pb-posts > .blog-card:first-child .blog-card__tag::before {
    content: none;
}

/* ==========================================================================
   Blog listing
   ========================================================================== */

.blog-listing {
    max-width: var(--hb-container);
    padding: 4rem var(--fp-gutter) 4.5rem;
    border: 0;
    border-radius: 0;
    background: none;
}

.blog-listing__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.blog-listing__eyebrow {
    margin: 0;
    color: var(--fp-fern);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-listing__title {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
}

.blog-listing__description {
    max-width: 40rem;
    margin: 0;
    color: var(--fp-text-muted);
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Tag filter: white pills, a sport's dot like its chip; the current one filled Fern. */
.blog-listing__filters {
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.blog-listing__filter {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid var(--fp-border);
    border-radius: 999px;
    background: var(--fp-surface);
    color: var(--fp-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-listing__filter::before {
    content: var(--fp-tag-dot, none);
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--fp-tag);
}

.blog-listing__filter:hover {
    border-color: var(--fp-fern);
    background: var(--fp-surface);
}

.blog-listing__filter.is-active {
    border-color: var(--fp-fern);
    background: var(--fp-fern);
    color: #ffffff;
    font-weight: 600;
}

/* "All stories · 18 articles" above the grid. */
.blog-listing__summary {
    margin-bottom: 1.75rem;
}

.blog-listing__summary-title {
    margin: 0;
    color: var(--fp-text);
    font-size: 1.125rem;
    font-weight: 700;
}

.blog-listing__count {
    margin: 0;
    color: var(--fp-text-muted);
    font-size: 0.875rem;
}

/* Laravel's default (Tailwind) paginator markup, without Tailwind: hide the phone-only
   prev/next pair, keep the numbered row and centre it above the "Showing …" line. */
.blog-listing__pagination {
    margin-top: 3.5rem;
}

.blog-listing__pagination nav > div:first-child {
    display: none;
}

.blog-listing__pagination nav > div:last-child {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.25rem;
}

.blog-listing__pagination p {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fp-text-muted);
}

.blog-listing__pagination nav > div:last-child > div:last-child > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.blog-listing__pagination nav > div:last-child > div:last-child > span > a,
.blog-listing__pagination nav > div:last-child > div:last-child > span > span > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--fp-border);
    border-radius: 999px;
    background: var(--fp-surface);
    color: var(--fp-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-listing__pagination nav > div:last-child > div:last-child > span > a:hover {
    border-color: var(--fp-fern);
    color: var(--fp-fern);
}

.blog-listing__pagination [aria-current='page'] > span {
    border-color: var(--fp-fern) !important;
    background: var(--fp-fern) !important;
    color: #ffffff !important;
}

.blog-listing__pagination [aria-disabled='true'] > span {
    color: var(--fp-border) !important;
}

.blog-listing__pagination svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   An article — a 720 px column, the cover wider (1200 px)
   ========================================================================== */

.blog-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--fp-article)) minmax(0, 1fr);
    max-width: var(--hb-container);
    padding: 3.5rem var(--fp-gutter) 4.5rem;
    border: 0;
    border-radius: 0;
    background: none;
}

.blog-post > * {
    grid-column: 2;
}

/* The CMS renders the cover first; the design puts it after the header. */
.blog-post__header {
    order: 1;
    gap: 1.375rem;
    margin-bottom: 2.5rem;
}

.blog-post__cover {
    order: 2;
    grid-column: 1 / -1;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
    margin-bottom: 3.5rem;
    border-radius: var(--fp-radius);
}

.blog-post__content {
    order: 3;
}

/* Header order: tags, title, "author · date", perex. */
.blog-post__tags {
    order: 1;
}

.blog-post__title {
    order: 2;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.blog-post__meta {
    order: 3;
    gap: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fp-text-muted);
}

.blog-post__author {
    order: -1;
}

.blog-post__author::after,
.blog-post__reading-time::before {
    content: '·' / '';
    margin: 0 0.4em;
}

.blog-post__back {
    justify-self: start;
    margin-bottom: 2rem;
    color: var(--fp-fern);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-post__back:hover {
    color: var(--fp-fern-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post__perex {
    order: 4;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--fp-text-muted);
}

/* --- Body typography ----------------------------------------------------- */

.blog-post__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--fp-text);
}

.blog-post__content > * + * {
    margin-top: 1.5rem;
}

.blog-post__content p,
.blog-post__content ul,
.blog-post__content ol {
    margin-bottom: 0;
}

.blog-post__content h2 {
    margin: 2.5rem 0 0;
    font-size: clamp(1.625rem, 3vw, 2rem);
    line-height: 1.2;
}

.blog-post__content h3 {
    margin: 2rem 0 0;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.3;
}

.blog-post__content a {
    color: var(--fp-fern);
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.blog-post__content a:hover {
    color: var(--fp-fern-dark);
}

.blog-post__content ul,
.blog-post__content ol {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post__content li + li {
    margin-top: 0.75rem;
}

.blog-post__content li > p {
    margin: 0;
}

.blog-post__content li::marker {
    color: var(--fp-fern);
}

.blog-post__content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--fp-fern-light);
    background: var(--fp-mist);
    color: var(--fp-text);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
}

.blog-post__content blockquote p {
    margin: 0;
}

.blog-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.blog-post__content figcaption {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--fp-text-muted);
}

.blog-post__content pre,
.blog-post__content :not(pre) > code {
    border-radius: 0.75rem;
    background: var(--fp-mist);
    color: var(--fp-fern-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-post__content pre {
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.6;
}

.blog-post__content :not(pre) > code {
    padding: 0.1em 0.4em;
    border-radius: 0.375rem;
}

/* Info / Warning boxes from the editor ("Good to know"): a tint, the first line as a label. */
.blog-post__content [data-callout] {
    margin: 2rem 0;
    padding: 1.25rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--fp-info-bg);
}

.blog-post__content [data-callout='warning'] {
    background: var(--fp-warning-bg);
}

.blog-post__content [data-callout] > * {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.blog-post__content [data-callout] > * + * {
    margin-top: 0.5rem;
}

.blog-post__content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid var(--fp-border);
}

/* ==========================================================================
   End of an article — the app CTA (Forest, like the hero), then related stories on Mist
   ========================================================================== */

.blog-cta {
    width: min(100% - 2 * var(--fp-gutter), var(--fp-content));
    margin: 0 auto 4.5rem;
    padding: 2.5rem 3rem;
    gap: 1.5rem 3rem;
    border: 0;
    border-radius: var(--fp-radius);
    background: radial-gradient(90% 140% at 30% 50%, var(--fp-deep-forest) 0%, var(--fp-forest) 100%);
    color: var(--fp-mist);
}

.blog-cta__body {
    max-width: 40rem;
}

.blog-cta__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.blog-cta__text {
    margin: 0.75rem 0 0;
    color: var(--fp-mist-82);
    font-size: 1.125rem;
    line-height: 1.55;
}

.blog-cta__button {
    min-height: 3rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--fp-fern);
    color: #ffffff;
    font-size: 0.875rem;
}

.blog-cta__button:hover {
    background: var(--fp-fern-dark);
    color: #ffffff;
}

.blog-cta :focus-visible {
    outline-color: var(--fp-fern-light);
}

@media (max-width: 47.99rem) {
    .blog-cta {
        padding: 2rem var(--fp-gutter);
    }
}

.blog-related {
    max-width: none;
    padding: 4rem max(var(--fp-gutter), calc((100% - var(--fp-content)) / 2)) 4.5rem;
    background: var(--fp-mist);
}

.blog-related__title {
    margin: 0 0 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

/* ==========================================================================
   Footer — Deep Forest
   ========================================================================== */

.site-footer {
    margin-top: 0;
    background: var(--fp-deep-forest);
    color: var(--fp-mist);
}

.site-footer__columns {
    max-width: var(--hb-container);
    padding: 3.5rem var(--fp-gutter) 2rem;
    grid-template-columns: minmax(0, 32.5rem) minmax(0, 13.75rem);
    column-gap: clamp(2rem, 20vw, 17.5rem);
    row-gap: 2.5rem;
}

@media (max-width: 47.99rem) {
    .site-footer__columns {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 2.5rem;
    }
}

.footer-column__title {
    margin-bottom: 0.875rem;
    color: var(--fp-fern-light);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* The first column is the brand: the wordmark, a tagline, a line about the app. */
.footer-column--text .footer-column__title {
    color: #ffffff;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.footer-column__content {
    max-width: 25.625rem;
    color: var(--fp-mist);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.footer-column__content p {
    margin: 0 0 0.875rem;
}

.footer-column--text .footer-column__content p:first-child {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-column__list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0;
}

.site-footer a,
.footer-column__link {
    color: var(--fp-mist);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.site-footer a:hover,
.footer-column__link:hover {
    color: var(--fp-fern-light);
}

.site-footer :focus-visible {
    outline-color: var(--fp-fern-light);
}

.site-footer__bar {
    max-width: var(--fp-content);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--fp-mist-15);
}

@media (max-width: 77.99rem) {
    .site-footer__bar {
        margin-inline: var(--fp-gutter);
    }
}

.site-footer__copy {
    margin: 0;
    padding: 0;
    color: var(--fp-mist);
    font-size: 0.8125rem;
}
