:root {
    --paper: #f7f2e8;
    --paper-soft: #fbf8f1;
    --ink: #252522;
    --muted: #6b665d;
    --stone: #9d9485;
    --moss: #66775a;
    --moss-dark: #44513e;
    --gold: #a98548;
    --line: #ded5c5;
    --white: #fffdf8;
    --shadow: 0 24px 60px rgba(54, 48, 39, 0.08);
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(169, 133, 72, 0.08), transparent 28rem),
        linear-gradient(180deg, var(--paper-soft), var(--paper));
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration-color: rgba(102, 119, 90, 0.45);
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--moss-dark);
}

:focus-visible {
    outline: 3px solid rgba(169, 133, 72, 0.5);
    outline-offset: 4px;
}

.skip-link {
    background: var(--ink);
    color: var(--white);
    left: 1rem;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 1rem;
    transform: translateY(-150%);
    z-index: 20;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.site-footer {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.25rem clamp(1rem, 4vw, 2rem);
}

.brand,
.site-footer strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

.site-nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
    justify-content: flex-end;
}

.site-nav a,
.site-footer a {
    color: var(--muted);
    font-size: 0.93rem;
    text-decoration: none;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.section__inner {
    margin: 0 auto;
    max-width: 1120px;
}

.narrow {
    max-width: 780px;
}

.hero {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 8vw, 6rem);
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    margin: 0 auto;
    max-width: 1180px;
    min-height: calc(100vh - 86px);
    padding-top: clamp(3rem, 6vw, 5rem);
}

.hero h1,
.section h1,
.section h2 {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.hero h1 {
    font-size: clamp(3.2rem, 9vw, 6.8rem);
    max-width: 9ch;
}

.section h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3.7rem);
}

.section h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.kicker {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.hero__lede {
    color: var(--muted);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    margin: 1.4rem 0 0;
    max-width: 38rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.2rem;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: 600 0.96rem/1 var(--sans);
    justify-content: center;
    min-height: 3rem;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--moss-dark);
    color: var(--white);
}

.button--primary:hover {
    background: #303b2c;
    color: var(--white);
}

.button--secondary {
    background: rgba(255, 253, 248, 0.72);
    border-color: var(--line);
    color: var(--ink);
}

.quiet-line,
.privacy-note,
.closing-note,
.legal-page p {
    color: var(--muted);
}

.quiet-line {
    margin-top: 1.5rem;
}

.garden-mark {
    aspect-ratio: 1;
    background:
        repeating-radial-gradient(ellipse at center, rgba(157, 148, 133, 0.26) 0 1px, transparent 1px 16px),
        linear-gradient(135deg, rgba(255, 253, 248, 0.8), rgba(235, 228, 216, 0.55));
    border: 1px solid rgba(157, 148, 133, 0.35);
    border-radius: 50%;
    box-shadow: var(--shadow);
    position: relative;
}

.garden-mark span {
    background: linear-gradient(145deg, #8d887e, #c8bda9);
    border-radius: 48% 52% 45% 55%;
    box-shadow: 0 14px 24px rgba(54, 48, 39, 0.16);
    display: block;
    position: absolute;
}

.garden-mark span:nth-child(1) {
    height: 19%;
    left: 39%;
    top: 37%;
    width: 24%;
}

.garden-mark span:nth-child(2) {
    background: linear-gradient(145deg, #5d6c52, #94a184);
    height: 11%;
    left: 28%;
    top: 56%;
    width: 15%;
}

.garden-mark span:nth-child(3) {
    height: 9%;
    right: 25%;
    top: 59%;
    width: 13%;
}

.philosophy {
    background: rgba(255, 253, 248, 0.5);
    border-block: 1px solid rgba(222, 213, 197, 0.7);
}

.philosophy p:not(.kicker) {
    color: var(--muted);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.55;
    margin: 1.5rem 0 0;
}

.section-heading {
    margin-bottom: 2rem;
    max-width: 760px;
}

.steps-grid,
.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 17rem;
    padding: 1.5rem;
}

.step-card p {
    color: var(--muted);
    margin: 0;
}

.step-number {
    color: var(--gold);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.quiet-band {
    background: #e9e2d4;
}

.split,
.signup-layout {
    display: grid;
    gap: clamp(2rem, 6vw, 5rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.plain-list,
.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plain-list li {
    border-top: 1px solid rgba(37, 37, 34, 0.14);
    padding: 0.78rem 0;
}

.feature-grid li {
    background: rgba(255, 253, 248, 0.56);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 6.5rem;
    padding: 1.25rem;
}

.signup-section {
    background: var(--paper-soft);
}

.signup-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.field {
    display: grid;
    gap: 0.42rem;
    margin-bottom: 1rem;
}

label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"] {
    background: #fffdf9;
    border: 1px solid #cfc5b5;
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    min-height: 3.1rem;
    padding: 0.75rem 0.85rem;
    width: 100%;
}

.checkbox {
    align-items: flex-start;
    display: flex;
    gap: 0.65rem;
    margin: 0.5rem 0 1.2rem;
}

.checkbox input {
    accent-color: var(--moss-dark);
    margin-top: 0.42rem;
}

.signup-form .button {
    width: 100%;
}

.form-status {
    font-weight: 600;
    margin-bottom: 0;
}

.form-status[data-state="success"] {
    color: var(--moss-dark);
}

.form-status[data-state="error"] {
    color: #8f3d2f;
}

.legal-page .section {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.legal-page h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-top: 2.3rem;
}

.site-footer {
    border-top: 1px solid var(--line);
}

.site-footer p {
    color: var(--muted);
    margin: 0.2rem 0 0;
}

.consent-banner {
    align-items: center;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 50%;
    max-width: min(940px, calc(100% - 2rem));
    padding: 1rem;
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner p {
    color: var(--muted);
    margin: 0.2rem 0 0;
}

.consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

@media (max-width: 860px) {
    .site-header,
    .site-footer,
    .hero,
    .split,
    .signup-layout,
    .consent-banner {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .garden-mark {
        max-width: 24rem;
        width: 100%;
    }

    .steps-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: auto;
    }

    .step-number {
        margin-bottom: 1.4rem;
    }

    .consent-banner {
        display: grid;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav,
    .site-footer nav,
    .hero__actions,
    .consent-actions {
        width: 100%;
    }

    .hero__actions .button,
    .consent-actions .button {
        width: 100%;
    }
}

.constitution-body {
    background: #faf9f6;
    color: #222;
}

.constitution-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 760px;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 5vw, 2rem);
}

.constitution-brand {
    color: #222;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.constitution-return {
    color: #66625a;
    font-size: 0.9rem;
    text-decoration-color: rgba(102, 98, 90, 0.4);
}

.constitution-page {
    animation: constitutionFadeIn 900ms ease both;
    padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 2rem) 18rem;
}

.constitution-document {
    margin: 0 auto;
    max-width: 700px;
}

.constitution-title {
    margin-bottom: clamp(5rem, 10vw, 8rem);
    text-align: center;
}

.constitution-title h1 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 8vw, 4.8rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 1.25rem;
}

.constitution-title p {
    color: #56524c;
    margin: 0.45rem 0;
}

.constitution-version {
    font-size: 0.9rem;
}

.constitution-document section {
    margin: 0 0 clamp(4.25rem, 9vw, 7rem);
}

.constitution-document h2 {
    color: #222;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0 0 2rem;
}

.constitution-document p {
    color: #2d2d2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.12rem, 2.2vw, 1.24rem);
    line-height: 1.82;
    margin: 0 0 1.08rem;
}

.constitution-document strong {
    font-weight: 700;
}

.constitution-closing {
    margin-top: clamp(5rem, 12vw, 9rem);
    text-align: center;
}

.constitution-closing p {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    margin-bottom: 1.25rem;
}

.constitution-note {
    margin: clamp(14rem, 22vw, 19rem) auto 0;
    max-width: 560px;
    text-align: center;
}

.constitution-note p {
    color: #5f5b54;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

@keyframes constitutionFadeIn {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .constitution-page {
        animation: none;
    }
}

@media (max-width: 560px) {
    .constitution-header {
        gap: 0.7rem;
    }

    .constitution-page {
        padding-bottom: 13rem;
    }
}
