:root {
    /* ---------- Colors ---------- */
    --color-white: #fff;
    --color-ink: #222;
    --color-ink-hover: #424242;
    --color-text: #444;
    --color-text-mid: #565656;
    --color-muted: #666;
    --color-subtle: #777;
    --color-faint: #8b8b8b;
    --color-bg: #fff;
    --color-bg-soft: #f4f4f2;
    --color-hover-soft: #e7e7e4;
    --color-line: #d6d6d4;
    --color-line-strong: #c6c6c3;
    --color-input-border: #bdbdbb;
    --color-whatsapp: #25d366;
    --color-whatsapp-border: #1aaf50;

    /* ---------- Fonts ---------- */
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', Arial, sans-serif;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;

    /* ---------- Font sizes ---------- */
    --fs-xxs: 11px;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-md: 14px;
    --fs-base: 15px;

    --fs-h1: clamp(57px, 5.35vw, 111px);
    --fs-h2: clamp(40px, 4.3vw, 58px);
    --fs-h2-large: clamp(39px, 4.1vw, 54px);
    --fs-h3: clamp(25px, 2.4vw, 32px);
    --fs-lead: clamp(17px, 1.2vw, 21px);
    --fs-intro: clamp(29px, 3.3vw, 44px);
    --fs-section-note: clamp(13px, .95vw, 16px);
    --fs-method: 27px;
    --fs-quote: 22px;
    --fs-contact-lead: 25px;
    --fs-person-name: 30px;
    --fs-brand: 28px;

    /* ---------- Line heights ---------- */
    --lh-body: 1.75;
    --lh-text: 1.85;
    --lh-heading: 1.16;

    /* ---------- Letter spacing ---------- */
    --ls-heading: -.038em;
    --ls-hero: -.055em;
    --ls-eyebrow: .15em;

    /* ---------- Layout ---------- */
    --gutter: clamp(20px, 4.2vw, 112px);
    --gap-editorial: clamp(34px, 5.5vw, 118px);
    --space-section: 98px;
    --header-height: 83px;

    /* ---------- Misc ---------- */
    --transition: .2s ease;
    --z-header: 10;
    --z-float: 70;
}

/* Larger screens: only the variable values change */
@media (min-width: 1600px) {
    :root {
        --space-section: clamp(105px, 7vw, 150px);
        --fs-h2: clamp(54px, 3.4vw, 78px);
    }
}

@media (min-width: 1700px) {
    :root {
        --space-section: 110px;
    }
}

/* Smaller screens */
@media (max-width: 1100px) {
    :root {
        --fs-h1: clamp(52px, 5.5vw, 70px);
    }
}

@media (max-width: 1020px) {
    :root {
        --gutter: clamp(22px, 4vw, 42px);
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 20px;
        --space-section: 74px;
        --header-height: 72px;
        --fs-h1: clamp(49px, 9vw, 69px);
        --fs-brand: 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --gutter: 17px;
    }
}

@media (max-width: 460px) {
    :root {
        --fs-h2: 41px;
        --fs-intro: 31px;
        --fs-quote: 20px;
        --fs-contact-lead: 23px;
        --fs-brand: 21px;
    }
}

@media (max-width: 420px) {
    :root {
        --fs-h1: 46px;
    }
}

/* ---------- Reset and base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
    width: 100%;
    min-width: 320px;
}

[id] {
    scroll-margin-top: 95px;
}

body {
    margin: 0;
    width: 100%;
    min-width: 320px;
    overflow-x: clip;
    color: var(--color-ink);
    background: var(--color-bg);
    font: var(--fw-regular) var(--fs-base)/var(--lh-body) var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3 {
    margin: 0;
}

p {
    line-height: var(--lh-text);
}

:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 3px;
}

.container {
    width: calc(100% - (var(--gutter) * 2));
    margin-inline: auto;
}

.section {
    padding: var(--space-section) 0;
    min-width: 0;
}

.section-soft {
    background: var(--color-bg-soft);
}

.eyebrow {
    display: block;
    color: var(--color-muted);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    margin-bottom: 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-heading);
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.subtle {
    color: var(--color-text-mid);
}

/* ---------- Inner pages (every page except the home page) ----------
   The client preview uses slightly different base values on inner pages.
   Only variables and zero-specificity selectors are used here, so section CSS still wins. */
body.mb-inner {
    --fs-h2: clamp(37px, 4.3vw, 56px);
    --fs-h3: clamp(28px, 2.6vw, 37px);
    --ls-heading: -.035em;
    --lh-body: 1.8;
    --space-section: 104px;
    --header-height: 86px;
    --z-header: 30;
    --color-muted: #6b6b6b;
    --color-text-mid: #5f5f5f;
    --color-line: #d8d8d5;
    --color-ink-hover: #444;
}

@media (min-width: 1600px) {
    body.mb-inner {
        --space-section: clamp(105px, 7vw, 150px);
        --fs-h2: clamp(54px, 3.4vw, 78px);
    }
}

@media (min-width: 1700px) {
    body.mb-inner {
        --space-section: 110px;
    }
}

@media (max-width: 760px) {
    body.mb-inner {
        --space-section: 75px;
        --header-height: 72px;
    }
}

:where(body.mb-inner) h1 {
    font-size: clamp(51px, 6.2vw, 83px);
    line-height: 1.06;
}

:where(body.mb-inner) h3 {
    line-height: 1.22;
}
