@import url("/assets/styles/brand-fonts.css?v=20261025-ready1");
:root {
    touch-action: pan-x pan-y;
    color-scheme: light;
    --page-background: #efe5d5;
    --surface-color: rgba(255, 252, 247, 0.62);
    --text-color: #5b3a29;
    --muted-color: rgba(91, 58, 41, 0.72);
    --border-color: rgba(91, 58, 41, 0.2);
    --accent-color: #5b3a29;
    --shadow-color: rgba(67, 40, 27, 0.12);
    --page-glow-primary: rgba(255, 255, 255, 0.68);
    --page-glow-secondary: rgba(153, 110, 77, 0.13);
}

html[data-theme="sand"] {
    color-scheme: light;
    --page-background: #efe5d5;
    --surface-color: rgba(255, 252, 247, 0.62);
    --text-color: #5b3a29;
    --muted-color: rgba(91, 58, 41, 0.72);
    --border-color: rgba(91, 58, 41, 0.2);
    --accent-color: #5b3a29;
    --shadow-color: rgba(67, 40, 27, 0.12);
    --page-glow-primary: rgba(255, 255, 255, 0.68);
    --page-glow-secondary: rgba(153, 110, 77, 0.13);
}

html[data-theme="sage"] {
    color-scheme: light;
    --page-background: #dfe5d6;
    --surface-color: rgba(229, 234, 223, 0.72);
    --text-color: #24543d;
    --muted-color: rgba(36, 84, 61, 0.74);
    --border-color: rgba(36, 84, 61, 0.2);
    --accent-color: #24543d;
    --shadow-color: rgba(25, 61, 43, 0.12);
    --page-glow-primary: rgba(255, 255, 255, 0.5);
    --page-glow-secondary: rgba(63, 116, 90, 0.12);
}

html[data-theme="lavender"] {
    color-scheme: light;
    --page-background: #e7e0ed;
    --surface-color: rgba(236, 230, 241, 0.74);
    --text-color: #5b3a78;
    --muted-color: rgba(91, 58, 120, 0.74);
    --border-color: rgba(91, 58, 120, 0.2);
    --accent-color: #5b3a78;
    --shadow-color: rgba(68, 39, 91, 0.12);
    --page-glow-primary: rgba(255, 255, 255, 0.5);
    --page-glow-secondary: rgba(118, 84, 149, 0.12);
}

html[data-theme="rose"] {
    color-scheme: light;
    --page-background: #eededc;
    --surface-color: rgba(241, 228, 226, 0.74);
    --text-color: #7a3346;
    --muted-color: rgba(122, 51, 70, 0.74);
    --border-color: rgba(122, 51, 70, 0.2);
    --accent-color: #7a3346;
    --shadow-color: rgba(89, 34, 49, 0.12);
    --page-glow-primary: rgba(255, 255, 255, 0.5);
    --page-glow-secondary: rgba(150, 81, 104, 0.12);
}

html[data-theme="night"] {
    color-scheme: dark;
    --page-background: #121416;
    --surface-color: rgba(27, 30, 33, 0.82);
    --text-color: #f1eee8;
    --muted-color: rgba(241, 238, 232, 0.74);
    --border-color: rgba(241, 238, 232, 0.2);
    --accent-color: #f7f2e8;
    --shadow-color: rgba(0, 0, 0, 0.34);
    --page-glow-primary: rgba(247, 242, 232, 0.06);
    --page-glow-secondary: rgba(247, 242, 232, 0.08);
}

html[data-theme="terminal"] {
    color-scheme: dark;
    --page-background: #000000;
    --surface-color: rgba(0, 20, 0, 0.88);
    --text-color: #20ff04;
    --muted-color: rgba(32, 255, 4, 0.76);
    --border-color: rgba(32, 255, 4, 0.3);
    --accent-color: #20ff04;
    --shadow-color: rgba(0, 0, 0, 0.42);
    --page-glow-primary: rgba(32, 255, 4, 0.05);
    --page-glow-secondary: rgba(32, 255, 4, 0.09);
}

html[data-theme="midnight"] {
    color-scheme: dark;
    --page-background: #09142b;
    --surface-color: rgba(16, 31, 61, 0.84);
    --text-color: #dbe8ff;
    --muted-color: rgba(219, 232, 255, 0.75);
    --border-color: rgba(143, 200, 255, 0.24);
    --accent-color: #8fc8ff;
    --shadow-color: rgba(0, 5, 18, 0.38);
    --page-glow-primary: rgba(143, 200, 255, 0.08);
    --page-glow-secondary: rgba(143, 200, 255, 0.11);
}

html[data-theme="sepia"] {
    color-scheme: dark;
    --page-background: #2a2017;
    --surface-color: rgba(55, 41, 29, 0.86);
    --text-color: #f0dfc2;
    --muted-color: rgba(240, 223, 194, 0.76);
    --border-color: rgba(245, 215, 155, 0.24);
    --accent-color: #f5d79b;
    --shadow-color: rgba(8, 5, 2, 0.38);
    --page-glow-primary: rgba(245, 215, 155, 0.07);
    --page-glow-secondary: rgba(245, 215, 155, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page-background);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 12% 8%,
            var(--page-glow-primary),
            transparent 28%
        ),
        radial-gradient(
            circle at 86% 48%,
            var(--page-glow-secondary),
            transparent 32%
        ),
        var(--page-background);
    color: var(--text-color);
    font-family: var(--brand-support-font);
}

a {
    color: inherit;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 26px;
}

.brand {
    display: inline-flex;
}

.brand-logo {
    display: block;
    width: min(176px, 45vw);
    aspect-ratio: 284 / 104;
    background: var(--brand-ink, var(--text-color));
    -webkit-mask: url("/assets/logos/flumenta-logo.svg?v=20261013-espresso1") center / contain no-repeat;
    mask: url("/assets/logos/flumenta-logo.svg?v=20261013-espresso1") center / contain no-repeat;
}

.header-action,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
}

.primary-action {
    margin-top: 28px;
    border-color: var(--text-color);
    background: var(--text-color);
    color: var(--page-background);
}

.hero {
    max-width: 900px;
    padding: clamp(76px, 11vw, 150px) 0 clamp(90px, 13vw, 170px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-color);
    font-family: var(--brand-support-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 880px;
    margin-bottom: 26px;
    font-size: clamp(44px, 7.8vw, 92px);
    font-weight: normal;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-copy {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--muted-color);
    font-size: clamp(19px, 2.4vw, 25px);
    line-height: 1.55;
}

.hero-copy,
.feature-grid p,
.prose p,
.about-page h1,
.about-page h2,
.about-page h3 {
    text-align: start;
    overflow-wrap: break-word;
}

.content-section {
    padding: clamp(70px, 9vw, 110px) 0;
    border-top: 1px solid var(--border-color);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 46px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: normal;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-grid article {
    min-height: 300px;
    padding: clamp(25px, 3.5vw, 38px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--surface-color);
    box-shadow: 0 18px 55px var(--shadow-color);
    backdrop-filter: blur(12px);
}

.feature-number {
    display: block;
    margin-bottom: 56px;
    color: var(--accent-color);
    font-family: var(--brand-support-font);
    font-size: 13px;
}

.feature-grid h3 {
    min-height: 2.6em;
    margin-bottom: 13px;
    font-size: 25px;
    font-weight: normal;
    line-height: 1.3;
}

.about-page h1 {
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.24;
}

.about-page .hero,
.about-page .hero h1 {
    max-width: none;
}

.about-page h2 {
    line-height: 1.3;
}

.about-page .feature-grid h3 {
    min-height: 2.7em;
    line-height: 1.35;
}

.feature-grid p,
.prose p,
.quiet-section > p {
    margin-bottom: 0;
    color: var(--muted-color);
    font-size: 17px;
    line-height: 1.65;
}

.split-section,
.quiet-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    column-gap: clamp(40px, 8vw, 110px);
    align-items: center;
}

.split-section .section-heading,
.quiet-section .section-heading {
    display: contents;
    margin-bottom: 0;
}

.split-section .eyebrow,
.quiet-section .eyebrow {
    grid-column: 1 / -1;
}

.split-section h2,
.quiet-section h2 {
    grid-column: 1;
    grid-row: 2;
}

.prose {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    gap: 22px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0 48px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-color);
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 0;
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer a {
    text-underline-offset: 4px;
}

a:hover {
    transform: translateY(-1px);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 760px) {
    body {
        background: var(--page-background);
    }

    .site-header,
    main,
    .site-footer {
        width: min(100% - 28px, 1120px);
    }

    .header-action {
        padding-inline: 15px;
        font-size: 14px;
    }

    .feature-grid,
    .split-section,
    .quiet-section {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: 0;
    }

    .feature-number {
        margin-bottom: 34px;
    }

    .feature-grid h3,
    .about-page .feature-grid h3 {
        min-height: 0;
    }

    .split-section,
    .quiet-section {
        row-gap: 28px;
    }

    .split-section .section-heading,
    .quiet-section .section-heading {
        display: block;
    }

    .prose {
        grid-column: 1;
        grid-row: auto;
    }

    .site-footer {
        flex-direction: column;
    }
}

.statement-hero {
    max-width: 880px;
    padding-bottom: clamp(60px, 8vw, 100px);
}

.statement-hero h1 {
    max-width: 820px;
}

.statement-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: start;
}

.statement-section .section-heading {
    margin-bottom: 0;
}

.statement-section h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.statement-copy {
    display: grid;
    gap: 22px;
}

.statement-copy p,
.statement-copy li {
    color: var(--muted-color);
    font-size: 17px;
    line-height: 1.7;
}

.statement-copy p,
.statement-copy ul {
    margin: 0;
}

.statement-copy ul {
    display: grid;
    gap: 11px;
    padding-left: 22px;
}

.statement-copy a {
    text-underline-offset: 4px;
}

.statement-callout {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--surface-color);
    box-shadow: 0 18px 55px var(--shadow-color);
}

.statement-callout strong {
    color: var(--text-color);
}

@media (max-width: 760px) {
    .statement-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        align-items: flex-start;
        padding-top: 20px;
    }

    .brand-logo {
        width: 142px;
    }

    .header-action {
        min-height: 42px;
        padding: 10px 13px;
    }

    .hero {
        padding-top: 68px;
    }
}

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