/* Fonts (self-hosted) */
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-ExtraLightItalic.ttf") format("truetype");
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-MediumItalic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/static/fonts/Spectral-ExtraBoldItalic.ttf") format("truetype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/static/fonts/Inter-VariableFont_opsz\,wght.ttf") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/static/fonts/Inter-Italic-VariableFont_opsz\,wght.ttf")
        format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --white: #ffffff;
    --beige: #f5f1ea;
    --beige-deep: #efe9de;
    --sand: #e9e1d3;
    --sand-deep: #ded4c3;
    --ink: #46443c;
    --text: #4a483f;
    --text-muted: #7c7a70;
    --muted: #9a9891;
    --khaki: #7c7558;
    --khaki-light: #b9b39e;
    --line: #e6e2da;
    --serif: "Spectral", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
    --max: 1240px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 22px;
    --radius-small: 12px;
    --danger: #a3473a;
    --danger-soft: rgba(163, 71, 58, 0.09);
    --success-soft: rgba(124, 117, 88, 0.12);
    --shadow-soft: 0 18px 40px rgba(60, 55, 40, 0.07);
    --header-height: 92px;
}
/* .btn and friends set display, which would otherwise beat the hidden
   attribute — the account and auth pages toggle sections with it. */
[hidden] {
    display: none !important;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--white);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.018em;
}
h1 {
    font-size: clamp(42px, 5.4vw, 68px);
    line-height: 1.06;
    max-width: 16ch;
}
h1 em,
h2 em {
    font-style: italic;
    color: var(--khaki);
}
h2 {
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.08;
    max-width: 18ch;
}
h3 {
    font-size: clamp(22px, 1.9vw, 26px);
    line-height: 1.2;
    font-weight: 500;
}
h4 {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}
p {
    max-width: 58ch;
}
.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.subtitle {
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: clamp(20px, 1.7vw, 25px);
    line-height: 1.4;
    max-width: 40ch;
}
.lead {
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.65;
    color: var(--text-muted);
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--khaki);
    outline-offset: 4px;
    border-radius: 100px;
}

/* Layout */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    row-gap: 48px;
    align-items: center;
}
.col-2 {
    grid-column-end: span 2;
}
.col-3 {
    grid-column-end: span 3;
}
.col-4 {
    grid-column-end: span 4;
}
.col-5 {
    grid-column-end: span 5;
}
.col-6 {
    grid-column-end: span 6;
}
.col-7 {
    grid-column-end: span 7;
}
.col-8 {
    grid-column-end: span 8;
}
.start-2 {
    grid-column-start: 2;
}
.start-5 {
    grid-column-start: 5;
}
.start-7 {
    grid-column-start: 7;
}
.start-8 {
    grid-column-start: 8;
}

/* Buttons: pills */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 100px;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
}
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
.btn-primary {
    background: var(--sand);
    color: var(--ink);
}
.btn-primary:hover {
    background: var(--sand-deep);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--white);
}
.btn-outline:hover {
    border-color: var(--ink);
}
.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}
.btn-dark {
    background: var(--ink);
    color: var(--white);
}
.btn-dark:hover {
    background: #2f2e28;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover {
    color: var(--ink);
    background: var(--beige);
}
.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background: #8a3a2f;
}
.btn-block {
    display: block;
    width: 100%;
}

/* Form controls */
input,
textarea,
select,
button {
    font: inherit;
    color: inherit;
}
.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 7px;
}
.input,
.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--white);
    color: var(--ink);
    font-size: 15.5px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.input:focus,
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--khaki-light);
    box-shadow: 0 0 0 4px var(--beige);
}
.field-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}
.field input:disabled {
    background: var(--beige);
    color: var(--text-muted);
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--khaki);
}
.link {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--khaki);
    padding-bottom: 3px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.link:hover {
    color: var(--khaki);
}

/* Brand (used in header and footer) */
.brand {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
}
.brand::after {
    content: ".";
    color: var(--khaki);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8 {
        grid-column: auto;
    }
    .start-2,
    .start-5,
    .start-7,
    .start-8 {
        grid-column-start: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
