@font-face {
    font-family: "Satoshi";
    src: url("/assets/fonts/satoshi-regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("/assets/fonts/satoshi-medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("/assets/fonts/satoshi-bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --page: #faf8f4;
    --paper: #ffffff;
    --surface: #f3f1ec;
    --ink: #23201d;
    --ink-secondary: #655e57;
    --ink-tertiary: #6d655c;
    --rule: #e8e2d6;
    --accent: #80662f;
    --accent-secondary: #766b5a;
    --accent-soft: rgba(128, 102, 47, 0.1);
    --on-accent: #faf8f4;
    --ember: #0d1112;
    --ember-paper: #191918;
    --ember-surface: #222221;
    --ember-ink: #fbf5ea;
    --ember-secondary: #e2d7c5;
    --ember-muted: #98907f;
    --ember-gold: #f4c079;
    --mint: #1e745f;
    --rose: #9f5555;
    --purple: #74549a;
    --blue: #396784;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --shadow-sm: 0 8px 30px rgba(35, 32, 29, 0.08);
    --shadow-lg: 0 32px 90px rgba(35, 32, 29, 0.16);
    --content: 1200px;
    --reading: 760px;
    --section-space: clamp(104px, 12vw, 168px);
    --section-space-compact: clamp(80px, 9vw, 124px);
    --content-gap: clamp(48px, 8vw, 112px);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page);
    color: var(--ink-secondary);
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

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

img {
    height: auto;
}

button,
input,
summary {
    font: inherit;
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.08em;
}

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

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--page);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 48px), var(--content));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--rule) 86%, transparent);
    background: color-mix(in srgb, var(--page) 92%, transparent);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.site-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(35, 32, 29, 0.14);
}

.nav-group,
.nav-links {
    display: flex;
    align-items: center;
}

.nav-group {
    gap: 24px;
}

.nav-links {
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--ink-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

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

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ink);
    color: var(--page);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms ease;
}

.button:hover {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 12px 28px rgba(128, 102, 47, 0.24);
    transform: translateY(-2px);
}

.button-secondary {
    border-color: var(--rule);
    background: var(--paper);
    color: var(--ink);
}

.button-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
    box-shadow: none;
}

.button-small {
    min-height: 44px;
    padding: 10px 17px;
    font-size: 0.86rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.section-heading {
    max-width: 780px;
    margin-bottom: clamp(48px, 7vw, 82px);
}

.section-heading h2,
.display-heading {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.15rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.section-heading p {
    max-width: 620px;
    margin: 26px 0 0;
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    line-height: 1.65;
}

.site-footer {
    border-top: 1px solid var(--rule);
    padding: clamp(64px, 8vw, 96px) 0 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, 0.7fr));
    gap: clamp(42px, 7vw, 92px);
}

.footer-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    color: var(--ink-tertiary);
    font-size: 0.92rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li + li {
    margin-top: 10px;
}

.footer-list a {
    color: var(--ink-secondary);
    font-size: 0.92rem;
    text-decoration: none;
}

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

.footer-label {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    color: var(--ink-tertiary);
    font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #0d1112;
        --paper: #191918;
        --surface: #222221;
        --ink: #fbf5ea;
        --ink-secondary: #e2d7c5;
        --ink-tertiary: #98907f;
        --rule: #2b2b29;
        --accent: #f4c079;
        --accent-secondary: #c2a57d;
        --accent-soft: rgba(244, 192, 121, 0.16);
        --on-accent: #0d1112;
        --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.42);
    }

    .brand img {
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
    }

    .button {
        background: var(--accent);
        color: var(--on-accent);
    }

    .button:hover {
        background: var(--ember-secondary);
        color: var(--ember);
    }

    .button-secondary {
        border-color: var(--rule);
        background: var(--paper);
        color: var(--ink);
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 30px), var(--content));
    }

    .site-nav {
        min-height: 66px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .nav-group {
        gap: 10px;
    }

    .button-small {
        padding-inline: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .skip-link {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }
}
