:root {
    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: #8d5c3f;
    --shadow-color: rgba(67, 40, 27, 0.12);
}

* {
    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%,
            rgba(255, 255, 255, 0.68),
            transparent 28%
        ),
        radial-gradient(
            circle at 86% 48%,
            rgba(153, 110, 77, 0.13),
            transparent 32%
        ),
        var(--page-background);
    color: var(--text-color);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: inherit;
}

.word-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.word-field span {
    position: absolute;
    color: rgba(91, 58, 41, 0.08);
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(17px, 2vw, 28px);
    white-space: nowrap;
}

.word-field span:nth-child(1) { top: 9%; left: 5%; transform: rotate(-5deg); }
.word-field span:nth-child(2) { top: 18%; right: 9%; transform: rotate(4deg); }
.word-field span:nth-child(3) { top: 52%; left: 3%; transform: rotate(3deg); }
.word-field span:nth-child(4) { top: 66%; right: 5%; transform: rotate(-4deg); }
.word-field span:nth-child(5) { bottom: 12%; left: 11%; transform: rotate(-3deg); }
.word-field span:nth-child(6) { right: 14%; bottom: 5%; transform: rotate(5deg); }

.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 img {
    display: block;
    width: min(176px, 45vw);
    height: auto;
}

.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: "Courier New", Courier, monospace;
    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;
}

.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: "Courier New", Courier, monospace;
    font-size: 13px;
}

.feature-grid h3 {
    margin-bottom: 13px;
    font-size: 25px;
    font-weight: normal;
}

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

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

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

.prose {
    display: grid;
    gap: 22px;
    padding-top: 28px;
}

.quiet-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(38px, 8vw, 110px);
    align-items: center;
}

.quiet-section h2 {
    font-size: clamp(34px, 4.5vw, 54px);
}

.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) {
    .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;
    }

    .quiet-section {
        gap: 28px;
    }

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

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

    .brand img {
        width: 142px;
    }

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

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

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