:root {
    --bg: #f5efe5;
    --bg-strong: #efe6d8;
    --surface: rgba(255, 252, 247, 0.82);
    --surface-strong: #fffaf3;
    --line: rgba(76, 54, 31, 0.14);
    --text: #23180f;
    --muted: #5b4938;
    --accent: #b96d2d;
    --accent-deep: #8f4c15;
    --accent-soft: #eed1b4;
    --shadow: 0 22px 60px rgba(61, 39, 17, 0.12);
    --radius: 28px;
    --radius-sm: 18px;
    --content: min(1160px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 28rem),
        linear-gradient(180deg, #f8f2e8 0%, #f2eadf 44%, #ece3d7 100%);
}

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

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

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

p,
li {
    color: var(--muted);
    line-height: 1.7;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 5.8rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
}

h3 {
    font-size: 1.35rem;
}

.page-shell {
    position: relative;
    overflow: clip;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    opacity: 0.32;
    filter: blur(18px);
}

.page-shell::before {
    top: -12rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(229, 190, 145, 0.9), transparent 70%);
}

.page-shell::after {
    right: -12rem;
    bottom: -14rem;
    background: radial-gradient(circle, rgba(215, 156, 92, 0.75), transparent 70%);
}

.container {
    width: var(--content);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(248, 242, 232, 0.72);
    border-bottom: 1px solid rgba(76, 54, 31, 0.08);
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand__mark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    box-shadow: 0 10px 24px rgba(39, 27, 16, 0.18);
}

.brand__text {
    display: grid;
    gap: 0.1rem;
}

.brand__text strong {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.brand__text span {
    font-size: 0.78rem;
    color: var(--muted);
}

.site-nav,
.site-footer__nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.site-nav a,
.site-footer__nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.94rem;
}

.site-nav a:hover,
.site-footer__nav a:hover {
    color: var(--accent);
}

.hero,
.section {
    padding: 5.5rem 0;
}

.hero__grid,
.story-grid,
.legal-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 2rem;
}

.eyebrow {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.lede {
    font-size: 1.18rem;
    max-width: 42rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 2.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
}

.button--primary {
    color: #fff8ef;
    background: linear-gradient(135deg, var(--accent) 0%, #d48638 100%);
    box-shadow: 0 16px 30px rgba(160, 92, 28, 0.24);
}

.button--primary:hover {
    color: #fff8ef;
    transform: translateY(-1px);
}

.button--secondary {
    color: var(--text);
    border-color: rgba(76, 54, 31, 0.12);
    background: rgba(255, 252, 247, 0.7);
}

.hero__stats,
.feature-grid,
.type-grid,
.faq-list {
    display: grid;
    gap: 1rem;
}

.hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero__stats div,
.feature-card,
.type-card,
.faq-item,
.story-panel__card,
.legal-summary,
.legal-copy section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__stats div {
    padding: 1.2rem;
}

.hero__stats dt {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

.hero__stats dd {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.hero-card {
    overflow: hidden;
    margin: 0;
    padding: 0.9rem;
    background: var(--surface-strong);
    border: 1px solid rgba(76, 54, 31, 0.12);
    border-radius: calc(var(--radius) + 0.4rem);
    box-shadow: 0 28px 70px rgba(57, 38, 19, 0.16);
}

.hero-card img {
    width: 100%;
    border-radius: calc(var(--radius) - 0.2rem);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-card__caption,
.hero-note p {
    margin: 0;
}

.hero-card__caption {
    padding: 1rem 0.4rem 0.2rem;
}

.hero-note {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--accent);
    background: rgba(255, 250, 243, 0.85);
    border-radius: var(--radius-sm);
}

.hero-note__label {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-deep);
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.type-card,
.faq-item,
.story-panel__card,
.legal-copy section {
    padding: 1.55rem;
}

.feature-card h3,
.type-card h3,
.faq-item h3,
.story-panel__card h3,
.legal-copy h2 {
    margin-bottom: 0.8rem;
}

.section--tinted {
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.45), rgba(236, 227, 215, 0.32));
    border-top: 1px solid rgba(76, 54, 31, 0.06);
    border-bottom: 1px solid rgba(76, 54, 31, 0.06);
}

.type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
    grid-template-columns: 1fr 0.8fr;
}

.checklist {
    padding-left: 1.2rem;
}

.checklist li + li {
    margin-top: 0.4rem;
}

.story-panel {
    display: grid;
    gap: 1rem;
}

.story-panel__card--accent {
    background: linear-gradient(160deg, #fff8ef 0%, #f3dfc9 100%);
}

.faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
    padding: 0 0 2rem;
}

.site-footer__title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    color: var(--text);
}

.page-shell--legal .section {
    padding-top: 3rem;
}

.legal-layout {
    grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 1fr);
}

.legal-summary {
    position: sticky;
    top: 6.2rem;
    padding: 1.5rem;
}

.legal-summary dl {
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

.legal-summary dt {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.legal-summary dd {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.legal-copy {
    display: grid;
    gap: 1rem;
}

.legal-copy ul {
    padding-left: 1.2rem;
}

.legal-copy li + li {
    margin-top: 0.35rem;
}

@media (max-width: 1080px) {
    .hero__grid,
    .story-grid,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-summary {
        position: static;
    }
}

@media (max-width: 780px) {
    .site-header__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .section {
        padding: 4rem 0;
    }

    .hero__stats,
    .feature-grid,
    .faq-list,
    .type-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}
