/* =========================================================
   That Norfolk Admin
   Colours and fonts are all set in :root. Change them there.
   ========================================================= */

:root {
    /* Brand colours, taken from the logo */
    --cream: #faf6f0;
    --sand: #f3ece2;
    --paper: #fffdf9;
    --line: #e7ddcf;
    --ink: #1f2b40;          /* navy: headings, primary buttons */
    --text: #3f4552;
    --muted: #6c6f76;
    --sage: #7d8c6e;
    --sage-dark: #56654b;    /* accessible sage for text */
    --sage-soft: #e5e9dc;
    --wheat: #c8ad86;

    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    /* Fluid type scale */
    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
    --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
    --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
    --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);

    /* Spacing */
    --space-2xs: 0.375rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.25rem;
    --space-xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);

    --radius-s: 10px;
    --radius-m: 18px;
    --radius-l: 28px;
    --shadow-s: 0 1px 2px rgb(31 43 64 / 0.05), 0 2px 8px rgb(31 43 64 / 0.04);
    --shadow-m: 0 2px 4px rgb(31 43 64 / 0.04), 0 12px 32px rgb(31 43 64 / 0.08);

    --container: 1180px;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
}

/* ---------- Reset & base ---------- */

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

html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, .h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 450;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
    font-variation-settings: "SOFT" 50;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-1); line-height: 1.3; }

h1 em,
h2 em {
    color: var(--sage-dark);
    font-style: italic;
}

p {
    text-wrap: pretty;
}

a {
    color: var(--sage-dark);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--sage-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 100;
    padding: var(--space-xs) var(--space-s);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-s);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* ---------- Layout helpers ---------- */

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.narrow {
    --container: 760px;
}

.section {
    padding-block: var(--space-section);
}

.section--tint {
    background: var(--sand);
}

.section--flush-top {
    padding-top: 0;
}

/* Two sections on the same background: don't double up the spacing */
.section:not(.section--tint) + .section:not(.section--tint),
.section--tint + .section--tint {
    padding-top: 0;
}

.center {
    text-align: center;
}

.section-heading {
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-heading > * + * {
    margin-top: var(--space-xs);
}

.section-heading--row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-s);
    max-width: none;
    text-align: left;
}

.eyebrow {
    color: var(--sage-dark);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow + h1,
.eyebrow + h2 {
    margin-top: var(--space-xs);
}

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--text);
}

/* ---------- Buttons & links ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.5em;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 600 var(--step-0) / 1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
    background: var(--sage-dark);
    border-color: var(--sage-dark);
    color: #fff;
    transform: translateY(-1px);
}

.button .icon {
    transition: transform 0.2s;
}

.button:hover .icon,
.text-link:hover .icon {
    transform: translateX(3px);
}

.button--ghost {
    background: transparent;
    color: var(--ink);
}

.button--ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.button--light {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--ink);
}

.button--light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.button--small {
    padding: 0.7em 1.2em;
    font-size: var(--step--1);
}

.button--block {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    text-decoration: none;
}

.text-link .icon {
    transition: transform 0.2s;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(250 246 240 / 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(231 221 207 / 0.7);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.1;
    white-space: nowrap;
}

.brand__name em {
    color: var(--sage-dark);
}

.nav-toggle,
.nav-close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle:hover,
.nav-close:hover {
    background: var(--sand);
}

/* Mobile: the nav is a native popover that slides in from the right */
.site-nav {
    inset: 0 0 0 auto;
    width: min(88vw, 360px);
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: var(--space-m);
    border: 0;
    background: var(--cream);
    box-shadow: var(--shadow-m);
    color: var(--text);
}

/* Layout lives on an inner wrapper so it doesn't change while the
   popover animates closed (it stops matching :popover-open then) */
.site-nav__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.site-nav::backdrop {
    background: rgb(31 43 64 / 0.35);
}

.nav-close {
    align-self: flex-end;
}

.site-nav ul {
    display: flex;
    flex-direction: column;
}

.site-nav ul a {
    display: block;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-2);
    text-decoration: none;
}

.site-nav ul a[aria-current="page"] {
    color: var(--sage-dark);
    font-style: italic;
}

@media (prefers-reduced-motion: no-preference) {
    .site-nav {
        transition: translate 0.3s ease, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
        translate: 100% 0;
    }

    .site-nav:popover-open {
        translate: 0 0;
    }

    @starting-style {
        .site-nav:popover-open {
            translate: 100% 0;
        }
    }
}

@media (min-width: 1000px) {
    .nav-toggle,
    .nav-close {
        display: none;
    }

    .site-nav,
    .site-nav:popover-open {
        position: static;
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        background: none;
        box-shadow: none;
        translate: none;
        transition: none;
    }

    .site-nav__inner,
    .site-nav ul {
        flex-direction: row;
        align-items: center;
        gap: var(--space-m);
    }

    .site-nav ul a {
        position: relative;
        padding: var(--space-2xs) 0;
        border: 0;
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 500;
    }

    .site-nav ul a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--sage);
        transform: scaleX(0);
        transition: transform 0.2s;
    }

    .site-nav ul a:hover::after,
    .site-nav ul a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    .site-nav ul a[aria-current="page"] {
        font-style: normal;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding-block: var(--space-xl) var(--space-section);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.hero__content > * + * {
    margin-top: var(--space-m);
}

.hero__content .eyebrow + h1 {
    margin-top: var(--space-s);
}

.hero__media {
    position: relative;
}

.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    object-position: 35% center;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-m);
}

.hero__badge {
    position: absolute;
    left: var(--space-s);
    bottom: var(--space-s);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    max-width: calc(100% - 2 * var(--space-s));
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-m);
    background: var(--paper);
    box-shadow: var(--shadow-m);
    color: var(--ink);
    font-family: var(--font-display);
    font-style: italic;
    line-height: 1.3;
}

.hero__badge-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

/* Stacked (mobile/tablet): centre the hero text */
@media (max-width: 899px) {
    .hero__content {
        text-align: center;
    }

    .hero__content .button-row,
    .hero__content .checklist {
        justify-content: center;
    }
}

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 1.05fr 1fr;
    }

    .hero__badge {
        left: calc(-1 * var(--space-l));
        bottom: var(--space-l);
    }
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    color: var(--text);
    font-size: var(--step--1);
    font-weight: 500;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.45em;
}

.checklist .icon {
    color: var(--sage-dark);
}

.checklist--inline {
    flex-flow: row wrap;
    column-gap: var(--space-m);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    padding-block: var(--space-xl);
}

.page-hero h1 + .lead,
.page-hero .eyebrow + h1 + .lead {
    margin-top: var(--space-s);
}

.page-hero--center {
    text-align: center;
}

.page-hero--center .container {
    max-width: 760px;
}

.page-hero .back-link {
    display: inline-block;
    margin-bottom: var(--space-s);
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    gap: var(--space-m);
}

@media (min-width: 640px) {
    .card-grid--2,
    .card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 960px) {
    .card-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    padding: var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper);
    box-shadow: var(--shadow-s);
}

.card h3,
.card .h3 {
    margin-block: var(--space-s) var(--space-2xs);
}

.card p {
    color: var(--muted);
}

.card--row {
    display: flex;
    gap: var(--space-s);
    align-items: flex-start;
}

.card--row h2 {
    margin-top: 0.3rem;
}

.card__icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

/* Intro text beside a grid of cards */
.split {
    display: grid;
    gap: var(--space-xl);
}

.split__intro > * + * {
    margin-top: var(--space-s);
}

@media (min-width: 960px) {
    .split {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: center;
    }
}

.note-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-s) var(--space-m);
    margin-top: var(--space-l);
    padding: var(--space-m);
    border: 1px dashed var(--wheat);
    border-radius: var(--radius-m);
    background: var(--paper);
}

.note-banner p {
    flex: 1 1 280px;
}

.note-banner strong {
    color: var(--ink);
}

.note-banner--flush {
    margin-top: 0;
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    gap: var(--space-m);
    counter-reset: step;
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    position: relative;
    padding: var(--space-m);
    border-top: 2px solid var(--sage);
    background: var(--paper);
    border-radius: 0 0 var(--radius-m) var(--radius-m);
    box-shadow: var(--shadow-s);
}

.step__number {
    display: block;
    color: var(--wheat);
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-style: italic;
    line-height: 1;
}

.step h3 {
    margin-block: var(--space-s) var(--space-2xs);
}

.step p {
    color: var(--muted);
}

.steps + .center {
    margin-top: var(--space-l);
}

/* ---------- Image + text feature ---------- */

.feature {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.feature__media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-m);
}

.feature__media--tall img {
    aspect-ratio: 4 / 4.2;
}

.feature__content > * + * {
    margin-top: var(--space-s);
}

.feature__content .button {
    margin-top: var(--space-m);
}

@media (min-width: 900px) {
    .feature {
        grid-template-columns: 1fr 1fr;
    }

    .feature--hero {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ---------- Quotes & testimonials ---------- */

.quote-feature {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.quote-feature::before {
    content: "\201C";
    display: block;
    height: 0.6em;
    color: var(--wheat);
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
}

.quote-feature blockquote {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1.4;
}

.quote-feature blockquote p + p {
    margin-top: var(--space-xs);
}

.quote-feature figcaption,
.testimonial figcaption {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-m);
    font-size: var(--step--1);
    color: var(--muted);
}

.quote-feature figcaption strong,
.testimonial figcaption strong {
    display: block;
    color: var(--ink);
    font-size: var(--step-0);
}

.quote-feature .text-link {
    margin-top: var(--space-m);
}

.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: var(--space-l);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--paper);
    box-shadow: var(--shadow-s);
}

.testimonial blockquote {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    line-height: 1.5;
}

.testimonial blockquote::before {
    content: "\201C";
    display: block;
    height: 0.5em;
    color: var(--wheat);
    font-size: 4rem;
    line-height: 1;
}

.testimonial blockquote p + p {
    margin-top: var(--space-xs);
}

.testimonial figcaption {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
    padding-top: var(--space-m);
    border-top: 1px solid var(--line);
}

.avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.pull-quote {
    max-width: 820px;
    margin: var(--space-xl) auto 0;
    padding: var(--space-l);
    border-radius: var(--radius-l);
    background: var(--sage-soft);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1.35;
    text-align: center;
}

.pull-quote em {
    color: var(--sage-dark);
}

/* ---------- Pricing ---------- */

.pricing {
    display: grid;
    gap: var(--space-m);
}

@media (min-width: 640px) {
    .pricing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1040px) {
    .pricing {
        grid-template-columns: repeat(4, 1fr);
    }
}

.price-card {
    position: relative;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
    gap: var(--space-2xs);
    padding: var(--space-l) var(--space-m) var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper);
    box-shadow: var(--shadow-s);
}

.price-card--featured {
    border-color: var(--sage);
    box-shadow: 0 0 0 1px var(--sage), var(--shadow-m);
}

.price-card__badge {
    position: absolute;
    top: 0;
    left: var(--space-m);
    translate: 0 -50%;
    padding: 0.3em 0.9em;
    border-radius: 999px;
    background: var(--sage-dark);
    color: #fff;
    font-size: var(--step--1);
    font-weight: 600;
}

.price-card h3 {
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sage-dark);
}

.price-card__price {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-4);
    line-height: 1.1;
}

.price-card__price span {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: var(--step-0);
}

.price-card__rate {
    color: var(--muted);
    font-size: var(--step--1);
}

.price-card__for {
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: 500;
}

.price-card__for span {
    display: block;
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 400;
}

.fine-print {
    max-width: 640px;
    margin: var(--space-l) auto 0;
    color: var(--muted);
    font-size: var(--step--1);
    text-align: center;
}

/* ---------- FAQ (native <details>) ---------- */

.faq {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-m) 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        linear-gradient(var(--sage-dark), var(--sage-dark)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--sage-dark), var(--sage-dark)) center / 1.5px 12px no-repeat,
        var(--sage-soft);
    transition: rotate 0.2s;
}

.faq details[open] summary::after {
    rotate: 45deg;
}

.faq details p {
    padding-bottom: var(--space-m);
    max-width: 65ch;
}

/* ---------- Blog ---------- */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    color: var(--muted);
    font-size: var(--step--1);
}

.tag {
    padding: 0.2em 0.75em;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-weight: 600;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper);
    box-shadow: var(--shadow-s);
    transition: box-shadow 0.2s, translate 0.2s;
}

.post-card:hover {
    box-shadow: var(--shadow-m);
    translate: 0 -3px;
}

.post-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-xs);
    padding: var(--space-m);
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
}

/* Makes the whole card clickable while keeping one link for screen readers */
.post-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.post-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.post-card time {
    margin-top: auto;
    color: var(--muted);
    font-size: var(--step--1);
}

.featured-post {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--paper);
    box-shadow: var(--shadow-m);
}

.featured-post__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.featured-post__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-s);
    padding: var(--space-l);
}

.featured-post h2 {
    font-size: var(--step-3);
}

.featured-post h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-post h2 a:hover {
    color: var(--sage-dark);
}

@media (min-width: 860px) {
    .featured-post {
        grid-template-columns: 1.1fr 1fr;
    }
}

.blog-grid {
    margin-top: var(--space-l);
}

/* Article */

.article__header {
    --container: 700px;
    padding-block: var(--space-xl) var(--space-l);
}

.article__header > * + * {
    margin-top: var(--space-s);
}

.back-link {
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
}

.article__image {
    --container: 1000px;
}

.article__image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-l);
}

.article > .prose {
    padding-block: var(--space-xl) 0;
}

/* Long-form text (blog posts, about page, policies) */
.prose {
    --container: 700px;
    font-size: 1.08rem;
    line-height: 1.75;
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose h2 {
    margin-top: 2em;
    font-size: var(--step-2);
}

.prose h3 {
    margin-top: 1.6em;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose li::marker {
    color: var(--sage-dark);
}

.prose strong {
    color: var(--ink);
}

.prose img {
    border-radius: var(--radius-m);
    margin-inline: auto;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 0.6em 0.75em;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.prose th {
    color: var(--ink);
}

.callout {
    padding: var(--space-m);
    border-left: 3px solid var(--sage);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    background: var(--sage-soft);
}

.callout > * + * {
    margin-top: 0.75em;
}

.callout table {
    background: var(--paper);
    border-radius: var(--radius-s);
}

/* ---------- Contact ---------- */

.contact {
    display: grid;
    gap: var(--space-xl);
    align-items: start;
}

.contact__intro > * + * {
    margin-top: var(--space-m);
}

.contact__details {
    display: grid;
    gap: var(--space-s);
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.contact__details strong {
    display: block;
    color: var(--ink);
    font-size: var(--step--1);
}

.contact__details a {
    word-break: break-word;
}

@media (min-width: 900px) {
    .contact {
        grid-template-columns: 1fr 1.1fr;
    }
}

.form-card {
    display: grid;
    gap: var(--space-m);
    padding: var(--space-l) var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--paper);
    box-shadow: var(--shadow-m);
}

@media (min-width: 640px) {
    .form-card {
        padding: var(--space-l);
    }
}

.field-row {
    display: grid;
    gap: var(--space-m);
}

@media (min-width: 640px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: grid;
    gap: var(--space-2xs);
}

.field label {
    color: var(--ink);
    font-size: var(--step--1);
    font-weight: 600;
}

.optional {
    color: var(--muted);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--cream);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
    resize: vertical;
    field-sizing: content;
    min-height: 8em;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px var(--sage-soft);
    background: #fff;
}

.consent {
    display: flex;
    gap: var(--space-xs);
    color: var(--muted);
    font-size: var(--step--1);
}

.consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
    accent-color: var(--sage-dark);
}

/* ---------- Policies list ---------- */

.link-list {
    display: grid;
    gap: var(--space-s);
}

.link-list a {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.link-list a:hover {
    border-color: var(--sage);
    box-shadow: var(--shadow-s);
}

.link-list a > .icon {
    margin-left: auto;
    color: var(--sage-dark);
}

/* ---------- Closing CTA ---------- */

.cta-band {
    display: grid;
    gap: var(--space-l);
    align-items: center;
    padding: var(--space-xl) var(--space-l);
    border-radius: var(--radius-l);
    background:
        radial-gradient(circle at 100% 0%, rgb(125 140 110 / 0.45), transparent 55%),
        var(--ink);
    color: rgb(255 255 255 / 0.82);
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    margin-top: var(--space-s);
    max-width: 56ch;
}

.cta-band__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
}

.cta-band__email {
    color: rgb(255 255 255 / 0.82);
    font-size: var(--step--1);
    word-break: break-word;
}

.cta-band__email:hover {
    color: #fff;
}

@media (min-width: 900px) {
    .cta-band {
        grid-template-columns: 1fr auto;
        padding: var(--space-xl);
    }

    .cta-band__actions {
        align-items: center;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: var(--space-xl) var(--space-m);
    background: var(--sand);
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    gap: var(--space-l);
}

@media (min-width: 760px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.site-footer__brand p {
    margin-top: var(--space-s);
    color: var(--muted);
}

.site-footer__heading {
    margin-bottom: var(--space-xs);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer nav li + li {
    margin-top: 0.3rem;
}

.site-footer a {
    color: var(--text);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--sage-dark);
    text-decoration: underline;
}

.site-footer a[href^="mailto"] {
    word-break: break-word;
}

.socials {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-s);
}

.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.socials a:hover {
    border-color: var(--sage);
    color: var(--sage-dark);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    padding-top: var(--space-m);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: var(--step--1);
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
