/* NotBeWeary theme
   Palette: slate ink, sunrise amber for action, pine for buoyancy, cool trail-grey neutrals.
   Type: Archivo (display), Source Sans 3 (body), Source Serif 4 italic (scripture). */

:root {
    --bg: #F3F6F8;
    --surface: #FFFFFF;
    --ink: #1B2733;
    --body: #3E4C5A;
    --muted: #4A5867;
    --line: #D5DDE3;
    --ridge: #8FA1AF;
    --accent: #A84A16;
    --accent-hover: #8E3D11;
    --accent-ink: #FFFFFF;
    --accent-soft: #FBF1EA;
    --accent-soft-line: #E8C8B3;
    --pine: #2E5B4F;
    --pine-soft: #EAF2EF;
    --pine-soft-line: #BDD3CB;
    --band-ink: #1B2733;
    --band-ink-text: #DCE5EB;
    --amber-light: #F0B48E;
    --font-display: var(--gh-font-heading, 'Archivo', 'Helvetica Neue', Arial, sans-serif);
    --font-body: var(--gh-font-body, 'Source Sans 3', 'Segoe UI', system-ui, sans-serif);
    --font-verse: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --radius: 16px;
    --max: 1200px;
    --narrow: 720px;
    --gutter: max(20px, env(safe-area-inset-left, 0px));
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141C24;
        --surface: #1C2733;
        --ink: #EEF2F5;
        --body: #C7D1DA;
        --muted: #A9B6C2;
        --line: #2E3B48;
        --ridge: #5C6E7E;
        --accent: #E8894F;
        --accent-hover: #F09C68;
        --accent-ink: #1B1209;
        --accent-soft: #2A2019;
        --accent-soft-line: #5A3B27;
        --pine: #8FC4B2;
        --pine-soft: #17282A;
        --pine-soft-line: #2F4D47;
        --band-ink: #0E141A;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.inner {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow {
    max-width: var(--narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section { padding-block: 72px; }
.section-tight { padding-block: 0 72px; }
.section-flush { padding-block: 0 72px; }

/* Type */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(44px, 7vw, 68px);
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin: 0;
}
.display-small { font-size: clamp(36px, 5vw, 52px); letter-spacing: -1px; }
.display-article { font-size: clamp(36px, 5.5vw, 54px); letter-spacing: -1px; }
.lead { font-size: 21px; color: var(--body); margin: 0; max-width: 36em; text-wrap: pretty; }
.eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow-pine { color: var(--pine); }
.eyebrow-light { color: #CFE3DB; }
.eyebrow-amber { color: var(--amber-light); }
.eyebrow-amber-dark { color: var(--accent); }
.tag-reflect, .tag-reframe { color: var(--muted); }
.tag-restore { color: var(--accent); }
.tag-rhythm, .tag-rise { color: var(--pine); }
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}
.section-title-small { font-size: clamp(26px, 3vw, 32px); }
.section-sub { margin: 0 0 40px; color: var(--muted); max-width: 40em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head .section-title { margin: 0; }
.text-link { font-weight: 600; }
.text-link-amber { color: var(--amber-light); }
.empty { color: var(--muted); }

/* Wordmark */
.wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--ink);
    text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark span { color: var(--accent); }
.wordmark-small { font-size: 20px; }
.wordmark-plain { margin: 0; font-size: 22px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: 0.9; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--surface); }
.btn-light { background: #FFFFFF; color: #2E5B4F; }
.btn-light:hover { color: #2E5B4F; opacity: 0.92; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding-block: 14px;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-list a:hover, .nav-current a { color: var(--accent); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 40px;
}
.footer-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.care-note { margin: 0; font-size: 15px; color: var(--body); max-width: 44em; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; font-size: 15px; }
.footer-links .nav-list { gap: 12px 20px; }
.footer-links .nav-list a { font-weight: 400; font-size: 15px; color: var(--accent); }
.footer-copy { color: var(--muted); }

/* Trail line */
.trail-line { width: 100%; height: auto; display: block; }
.trail-fill { fill: var(--line); opacity: 0.55; }
.trail-stroke { fill: none; stroke: var(--ridge); stroke-width: 2; stroke-linejoin: round; }
.trail-dot { fill: var(--accent); }
.trail-label { fill: var(--muted); font-family: var(--font-body); font-size: 12px; letter-spacing: 1px; }
.band-ink .trail-fill { fill: #2E3B48; }
.band-ink .trail-label { fill: #A9B6C2; }
@media (prefers-reduced-motion: no-preference) {
    .trail-dot { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
    @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
}

/* Coming soon */
.coming-soon {
    max-width: var(--narrow);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-block: 40px 64px;
    display: flex; flex-direction: column; gap: 48px;
}
.cs-hero { display: flex; flex-direction: column; gap: 20px; }
.cs-hero .display { font-size: clamp(44px, 9vw, 76px); letter-spacing: -2px; line-height: 1; }
.cs-coming h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0 0 16px; }
.cs-coming ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.cs-coming li { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--ink); padding-top: 12px; }
.cs-coming strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.cs-coming span { color: var(--muted); font-size: 16px; line-height: 1.5; }

.verse { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.verse p { margin: 0; font-family: var(--font-verse); font-style: italic; font-size: clamp(22px, 4vw, 28px); line-height: 1.45; text-wrap: balance; }
.verse cite { font-style: normal; font-size: 15px; color: var(--muted); }
.verse-inline { margin: 32px 0 0; font-family: var(--font-verse); font-style: italic; font-size: 17px; color: var(--muted); }

/* Signup */
.signup {
    background: var(--accent-soft);
    border-radius: 20px;
    padding: 32px;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end;
}
.coming-soon .signup { background: var(--surface); border: 1px solid var(--line); }
.signup-copy { flex: 1 1 320px; min-width: 0; }
.signup-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin: 0 0 6px; }
.signup-copy p { margin: 0; color: var(--body); }
.signup-form { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input {
    min-height: 48px; padding: 10px 16px;
    border: 1.5px solid var(--ridge); border-radius: 12px;
    background: var(--surface); color: var(--ink); font: inherit;
}
.form-fine { margin: 0; font-size: 15px; color: var(--muted); }
.form-message { display: none; margin: 0; font-size: 15px; font-weight: 600; }
.form-success { color: var(--pine); }
.form-error { color: var(--accent); }
.signup-form.success .form-success { display: block; }
.signup-form.error .form-error { display: block; }
.signup-form.success .signup-row { display: none; }
.btn-loading { display: none; }
.signup-form.loading .btn-label { display: none; }
.signup-form.loading .btn-loading { display: inline; }

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 80px 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-copy .verse-inline { margin-top: 12px; }
.hero-media { flex: 1 1 400px; min-width: 0; }
.hero-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; max-width: 100%; }

/* Bands */
.band { padding-block: 72px; }
.band-white { background: var(--surface); border-block: 1px solid var(--line); }
.band-pine { background: #2E5B4F; color: #FFFFFF; }
.band-pine p { color: #E6F0EC; }
.band-ink { background: var(--band-ink); color: #FFFFFF; }
.band-ink p { color: var(--band-ink-text); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split-copy p { margin: 0; font-size: 19px; }
.split-media { flex: 1 1 380px; min-width: 0; }
.run-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.door {
    display: flex; flex-direction: column; gap: 12px;
    padding: 32px; border-radius: var(--radius); border: 1.5px solid var(--line);
    color: var(--ink); text-decoration: none; background: var(--bg);
}
.door:hover { color: var(--ink); border-color: var(--ink); }
.door h3 { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.2; margin: 0; }
.door p { margin: 0; color: var(--body); }
.door .eyebrow { color: var(--muted); }
.door-cta { margin-top: auto; font-weight: 600; }
.door-recover { background: var(--accent-soft); border-color: var(--accent-soft-line); }
.door-recover .eyebrow, .door-recover .door-cta { color: var(--accent); }
.door-buoyancy { background: var(--pine-soft); border-color: var(--pine-soft-line); }
.door-buoyancy .eyebrow, .door-buoyancy .door-cta { color: var(--pine); }

/* Path */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.path li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.path li:hover { border-color: var(--ridge); }
.path a { display: block; height: 100%; padding: 24px; color: var(--ink); text-decoration: none; }
.path a:hover { color: var(--ink); }
.path-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.path h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 6px; }
.path p { margin: 0; font-size: 16px; color: var(--body); }

/* Lift list */
.lift-list { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lift-list li { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.lift-wide { grid-column: span 2; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card:hover { border-color: var(--ridge); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.post-card-link:hover { color: var(--ink); }
.post-card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0; }
.post-card-excerpt { margin: 0; font-size: 16px; color: var(--body); line-height: 1.5; }
.post-card-meta { margin: auto 0 0; padding-top: 8px; font-size: 14px; color: var(--muted); }

/* TLC */
.tlc {
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 48px;
    display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.tlc > div { flex: 1 1 440px; min-width: 0; }
.tlc p { margin: 0; color: var(--body); }
.tlc .eyebrow { margin-bottom: 12px; }

/* Archive header */
.archive-header { display: flex; flex-direction: column; gap: 16px; }
.section:has(.archive-header) { padding-bottom: 40px; }

/* Article */
.article { padding-block: 64px 32px; }
.article-header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.article-meta { margin: 0; font-size: 15px; color: var(--muted); }
.article-image { margin: 0 auto 48px; padding-inline: var(--gutter); }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.care-aside { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); line-height: 1.55; }

/* Ghost editor content */
.gh-content { font-size: 19px; line-height: 1.7; color: var(--ink); }
.gh-content > * + * { margin-top: 1.25em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content p, .gh-content ul, .gh-content ol { margin-bottom: 0; }
.gh-content h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 2em 0 0; }
.gh-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.25; margin: 1.6em 0 0; }
.gh-content h2 + *, .gh-content h3 + * { margin-top: 0.6em; }
.gh-content blockquote {
    margin: 2em 0 0; padding: 28px 32px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    font-family: var(--font-verse); font-style: italic; font-size: 23px; line-height: 1.45;
}
.gh-content blockquote p { margin: 0; }
.gh-content blockquote.kg-blockquote-alt { text-align: center; border: 0; background: none; font-size: 28px; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0 0; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content img { border-radius: 12px; }
.gh-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.gh-content .kg-callout-card { border-radius: var(--radius); }
.kg-width-wide { position: relative; width: min(1040px, 100vw - 40px); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img { border-radius: 0; }

/* Weariness check */
.check-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.check-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.check-main .lead { margin-bottom: 24px; }
.check-form { display: flex; flex-direction: column; gap: 16px; }
.check-q { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.check-q-missing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.check-q legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-weight: 600; font-size: 19px; }
.q-num { color: var(--accent); margin-right: 8px; }
.q-options { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.q-options label {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 16px;
    border: 1.5px solid var(--line); border-radius: 999px;
    font-size: 16px; cursor: pointer; background: var(--bg);
}
.q-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.q-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.check-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.check-error { margin: 0; font-weight: 600; color: var(--accent); }
.check-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.check-result { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.result-pre { margin: 0; color: var(--muted); font-size: 16px; }
.result-stage { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--accent); margin: 0 0 20px; }
.stage-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.stage-bar span { height: 10px; border-radius: 5px; background: var(--line); }
.stage-bar span.is-past { background: var(--pine-soft-line); }
.stage-bar span.is-current { background: var(--accent); }
.stage-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.check-result p { font-size: 16px; color: var(--body); }
.check-result h3 { font-family: var(--font-display); font-size: 18px; margin: 20px 0 8px; }
.check-result ul { margin: 0; padding-left: 20px; font-size: 16px; color: var(--body); }
.result-link { display: block; margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-weight: 600; text-decoration: none; }
.result-care { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--pine-soft); }
.check-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; font-size: 15px; color: var(--body); line-height: 1.55; }

/* Error */
.error-page { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-block: 120px; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; font-size: 16px; color: var(--muted); }

@media (max-width: 900px) {
    .check-side { position: static; }
}
@media (max-width: 600px) {
    body { font-size: 17px; }
    .section, .band { padding-block: 56px; }
    .hero { padding-block: 48px 56px; }
    .signup, .tlc { padding: 24px; }
    .door { padding: 24px; }
    .check-q { padding: 20px; }
    .gh-content { font-size: 18px; }
}
