/* Gosforth Digital — editorial theme (shared by blog + scorecard pages) */
:root {
    --paper: #f5efe3;
    --paper-deep: #ede4d2;
    --ink: #1c1712;
    --ink-soft: #57493c;
    --rust: #a3441e;
    --rust-deep: #7e3315;
    --steel: #45525e;
    --line: #cfc2ab;
    --good: #1a7a3c;
    --warn: #b45309;
    --bad: #b91c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust-deep); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rust);
}

/* Masthead */
header.masthead { border-bottom: 1px solid var(--ink); position: relative; }
header.masthead::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 3px;
    border-bottom: 1px solid var(--ink);
}
.masthead-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 13px;
    flex-wrap: wrap;
}
.wordmark {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.wordmark .dot { color: var(--rust); }
.masthead .back {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}
.masthead .back:hover { color: var(--rust); }

/* Buttons */
.btn {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 26px;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }

/* Article */
article.post { padding: 56px 0 72px; }
article.post .kicker { display: block; margin-bottom: 16px; }
article.post h1 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    margin-bottom: 14px;
}
article.post .dateline {
    font-size: 0.85rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 22px;
    margin-bottom: 34px;
}
article.post h2 { font-size: 1.5rem; margin: 40px 0 12px; }
article.post h3 { font-size: 1.15rem; margin: 28px 0 10px; }
article.post p { color: #2d2317; margin-bottom: 16px; }
article.post ul, article.post ol { padding-left: 24px; margin-bottom: 16px; }
article.post li { margin-bottom: 9px; color: #2d2317; }
article.post strong { color: var(--ink); }

/* Footer */
footer.site {
    margin-top: 40px;
    background: var(--ink);
    color: var(--paper);
}
footer.site .foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 26px;
    padding-bottom: 26px;
}
footer.site a { color: var(--paper); }
footer.site a:hover { color: #d98e63; }
footer.site .made { font-family: "Fraunces", Georgia, serif; font-style: italic; }

/* ── Scorecard widgets ─────────────────────── */
.score-intro { text-align: center; padding: 64px 0 40px; }
.score-intro .stamp {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    padding: 5px 12px;
    margin-bottom: 24px;
}
.score-intro h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.score-intro p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 14px; }
.score-intro .fine { font-size: 0.85rem; margin-bottom: 30px; }

.progress-wrap { margin: 44px 0 26px; }
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.progress-track { width: 100%; height: 6px; background: var(--paper-deep); border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--rust); transition: width 0.4s ease; }

.q-title { font-size: 1.35rem; margin-bottom: 20px; }
.options { display: grid; gap: 10px; }
.option-btn {
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 15px 18px;
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.option-btn:hover { background: var(--paper-deep); }
.option-btn.selected { background: var(--ink); color: var(--paper); }

.fade-in { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.score-dial { position: relative; width: 168px; height: 168px; margin: 0 auto 22px; }
.score-dial .pct {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: "Fraunces", Georgia, serif;
    font-size: 2.3rem; font-weight: 700;
}
.results-head { text-align: center; padding-top: 48px; margin-bottom: 36px; }
.results-head h2 { font-size: 1.7rem; margin-bottom: 26px; }
.results-head .level { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.results-head .rec { color: var(--ink-soft); max-width: 460px; margin: 0 auto 6px; }
.results-head .detail { color: var(--ink-soft); font-size: 0.9rem; max-width: 460px; margin: 0 auto; }

.gate {
    border: 2px solid var(--ink);
    background: var(--paper-deep);
    padding: 28px;
    text-align: center;
    margin-bottom: 30px;
}
.gate h3 { font-size: 1.2rem; margin-bottom: 8px; }
.gate p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.gate form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.gate input[type="email"] {
    flex: 1 1 220px;
    background: var(--paper);
    border: 1px solid var(--ink);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}
.gate input:focus { outline: 2px solid var(--rust); outline-offset: -1px; }

.breakdown { border: 1px solid var(--ink); padding: 26px; margin-bottom: 30px; }
.breakdown h3 { font-size: 1.2rem; margin-bottom: 16px; }
.bd-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.bd-row:last-child { border-bottom: none; }
.bd-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.bd-head .area { font-weight: 600; font-size: 0.95rem; }
.bd-head .pts { font-weight: 700; font-size: 0.9rem; }
.bd-track { width: 100%; height: 5px; background: var(--paper-deep); border: 1px solid var(--line); margin-bottom: 8px; }
.bd-fill { height: 100%; }
.bd-row p { font-size: 0.85rem; color: var(--ink-soft); }

.results-cta { text-align: center; border-top: 1px solid var(--ink); padding-top: 28px; }
.results-cta p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }

.hidden { display: none !important; }
