:root {
    color-scheme: light;
    --background: #f6f3ec;
    --surface: #fffdf8;
    --ink: #17202a;
    --muted: #5c6873;
    --accent: #245f73;
    --accent-dark: #173f4d;
    --line: #d9d3c7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--ink);
    line-height: 1.6;
}

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

.skip-link {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 1rem;
    padding: 0.65rem 1rem;
    background: var(--ink);
    color: white;
    transform: translateY(-110%);
}

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

.site-header,
.site-footer {
    padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
}

.site-nav,
.site-footer {
    width: min(70rem, 100%);
    margin: 0 auto;
}

.site-nav,
.site-links,
.site-footer,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav,
.site-footer { justify-content: space-between; }

.site-nav a,
.site-footer a { text-decoration: none; }

.inline-form { margin: 0; }

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}

.link-button:hover { color: var(--accent); }

.site-brand {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 750;
}

.site-links a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35rem;
}

main {
    width: min(70rem, calc(100% - 2.5rem));
    margin: 0 auto;
}

.hero {
    max-width: 54rem;
    padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    max-width: 15ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 8vw, 6.4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.lede {
    max-width: 42rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
}

.button {
    display: inline-flex;
    margin-top: 1rem;
    border-radius: 0.55rem;
    border: 0;
    padding: 0.75rem 1rem;
    background: var(--accent-dark);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 5rem;
    border: 1px solid var(--line);
    background: var(--line);
}

.feature-grid article {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: var(--surface);
}

.feature-grid h2 { margin-top: 0; font-size: 1.1rem; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }

.content-sheet {
    width: min(52rem, 100%);
    margin: clamp(3rem, 8vw, 7rem) auto;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1.5rem, 6vw, 4.5rem);
    background: var(--surface);
    box-shadow: 0 1.5rem 4rem rgb(35 42 49 / 8%);
}

.page-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 2.5rem;
}

.page-header h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }

.prose { padding-top: 1.5rem; }
.prose h2 { margin: 2rem 0 0.5rem; font-family: Georgia, "Times New Roman", serif; }
.prose p { color: #3f4a53; }

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .feature-grid { grid-template-columns: 1fr; }
    .site-footer { align-items: flex-start; flex-direction: column; }
}
