/* ==========================================================================
   Banks Create Money — site styles
   Editorial, source-driven, fast. No frameworks, no web fonts.
   ========================================================================== */

:root {
    --ink: #101820;
    --ink-soft: #26313a;
    --paper: #faf7f0;
    --surface: #fffdf8;
    --surface-alt: #f3eee3;
    --copper: #b4451f;
    --copper-dark: #8f3518;
    --teal: #1f5c5b;
    --teal-dark: #174746;
    --rule: #d9d2c3;
    --rule-dark: #c4bba9;
    --muted: #5e625f;
    --warning: #8a5a00;
    --white: #fffdf8;

    --max: 1180px;
    --reading: 70ch;
    --radius: 4px;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --shadow: 0 18px 50px rgba(16, 24, 32, 0.08);
    --shadow-small: 0 6px 18px rgba(16, 24, 32, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--copper);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

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

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

::selection {
    background: rgba(180, 69, 31, 0.2);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.container {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
}

.container--narrow {
    width: min(820px, calc(100% - 2.5rem));
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.65rem 1rem;
    background: var(--ink);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.15s ease;
}

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

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    width: 0;
    height: 3px;
    background: var(--copper);
    transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 240, 0.94);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    display: block;
    border-radius: 3px;
}

.brand__text {
    display: inline-block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
}

.nav-item > a,
.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.nav-item > a:hover,
.nav-dropdown > summary:hover,
.nav-item > a.is-active,
.nav-dropdown > summary.is-active {
    color: var(--copper-dark);
    background: rgba(180, 69, 31, 0.07);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-left: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.15s ease;
}

.nav-dropdown[open] > summary::after {
    transform: translateY(0.12rem) rotate(225deg);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 120;
    min-width: 240px;
    padding: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    list-style: none;
}

.nav-dropdown__menu li {
    margin: 0;
}

.nav-dropdown__menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.88rem;
    text-decoration: none;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
    color: var(--copper-dark);
    background: var(--surface-alt);
}

.nav-search {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--rule);
    border-radius: 3px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-search:hover {
    color: var(--ink);
    border-color: var(--rule-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0.65rem;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 3px;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons, links, eyebrows
   -------------------------------------------------------------------------- */

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--copper);
    color: var(--white);
}

.button--primary:hover {
    background: var(--copper-dark);
    color: var(--white);
}

.button--ghost {
    background: transparent;
    border-color: var(--rule-dark);
    color: var(--ink);
}

.button--ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.button--light {
    background: var(--white);
    color: var(--ink);
}

.button--light:hover {
    background: var(--surface-alt);
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--copper);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--copper-dark);
    text-decoration: underline;
}

.dot {
    margin: 0 0.3rem;
    color: var(--rule-dark);
}

/* --------------------------------------------------------------------------
   Homepage hero
   -------------------------------------------------------------------------- */

.hero {
    padding: 5.5rem 0 4.5rem;
    border-bottom: 1px solid var(--rule);
    background:
        radial-gradient(circle at 88% 12%, rgba(31, 92, 91, 0.08), transparent 34%),
        radial-gradient(circle at 12% 90%, rgba(180, 69, 31, 0.07), transparent 36%),
        var(--paper);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 4.5rem;
    align-items: center;
}

.hero h1 {
    max-width: 14ch;
    margin: 0 0 1.35rem;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6.2vw, 5.1rem);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -0.035em;
}

.hero-dek {
    max-width: 44ch;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.hero-note {
    margin-top: 1.2rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -1.2rem 1.2rem 1.2rem -1.2rem;
    border: 1px solid var(--rule);
    z-index: 0;
}

.t-account-card {
    position: relative;
    z-index: 1;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--copper);
    box-shadow: var(--shadow);
}

.t-account-card__label {
    margin-bottom: 1rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.t-account {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.t-account th {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--rule-dark);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.t-account td {
    padding: 0.8rem 0.65rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.t-account td:first-child {
    border-right: 1px solid var(--rule);
}

.t-account__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.25rem;
    border-radius: 50%;
    background: rgba(180, 69, 31, 0.12);
    color: var(--copper-dark);
    font-weight: 800;
}

.t-account-card__foot {
    margin-top: 0.9rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 5rem 0;
}

.section--tinted {
    background: var(--surface-alt);
    border-block: 1px solid var(--rule);
}

.section--dark {
    background: var(--ink);
    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
    color: var(--white);
}

.section--dark .eyebrow {
    color: #e2a58d;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.1;
}

.section-heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
    gap: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.6rem 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--rule);
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 800;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.step p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Cards and grids
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    gap: 1.15rem;
}

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

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

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

.topic-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    border-color: var(--rule-dark);
    box-shadow: var(--shadow-small);
    color: var(--ink);
}

.topic-card__index {
    margin-bottom: 1.1rem;
    color: var(--copper);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.topic-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.08rem;
    line-height: 1.2;
}

.topic-card p {
    flex: 1;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.topic-card__meta {
    margin-top: 1rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.feature-card {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--rule);
}

.feature-card--explainer {
    border-top: 4px solid var(--teal);
}

.feature-card--myth {
    border-top: 4px solid var(--copper);
}

.feature-card h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.feature-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.feature-card h2 a:hover {
    color: var(--copper-dark);
}

.feature-card p:not(.eyebrow) {
    margin-bottom: 1.1rem;
    color: var(--muted);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.path-card {
    display: block;
    padding: 1.6rem;
    background: transparent;
    border: 1px solid var(--rule-dark);
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.path-card:hover {
    background: var(--surface);
    border-color: var(--ink);
    color: var(--ink);
}

.path-card__kicker {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.path-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
}

.path-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Data teaser
   -------------------------------------------------------------------------- */

.data-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 4rem;
    align-items: center;
}

.data-teaser__copy h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.data-teaser__copy p:not(.eyebrow) {
    max-width: 48ch;
    margin-bottom: 1.4rem;
    color: #cfc9bd;
}

.data-teaser__list {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.data-teaser__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.data-teaser__item:hover {
    color: #e2a58d;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.section--trust {
    background: var(--surface);
    border-top: 1px solid var(--rule);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 3rem;
    align-items: start;
}

.trust-grid h2 {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.trust-grid p:not(.eyebrow) {
    max-width: 56ch;
    color: var(--muted);
}

.trust-list {
    list-style: none;
    border-top: 1px solid var(--rule);
}

.trust-list li {
    border-bottom: 1px solid var(--rule);
}

.trust-list a {
    display: block;
    padding: 0.9rem 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.trust-list a:hover {
    color: var(--copper-dark);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article {
    padding: 2.5rem 0 5.5rem;
}

.breadcrumbs {
    margin-bottom: 2.5rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.76rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.45rem;
    color: var(--rule-dark);
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--copper-dark);
}

.article-header {
    max-width: 860px;
}

.article-header h1 {
    margin-bottom: 1rem;
    font-family: var(--serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.article-dek {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.28rem;
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.article-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 1.1rem;
    color: var(--rule-dark);
}

.data-meta {
    max-width: 860px;
    margin-top: 1.8rem;
    padding: 1.15rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--teal);
}

.data-meta__title {
    margin-bottom: 0.6rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.data-meta dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 2rem;
    margin: 0;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.data-meta dl div {
    display: flex;
    gap: 0.4rem;
}

.data-meta dt {
    color: var(--muted);
    font-weight: 600;
}

.data-meta dd {
    margin: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--reading)) 220px;
    gap: 4.5rem;
    align-items: start;
    margin-top: 3rem;
}

.article-layout--wide {
    grid-template-columns: minmax(0, var(--reading));
}

.article-body {
    min-width: 0;
}

.article-aside {
    position: sticky;
    top: 100px;
}

.toc {
    padding-left: 1rem;
    border-left: 1px solid var(--rule);
}

.toc__title {
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.toc ol {
    list-style: none;
}

.toc__item {
    margin: 0;
}

.toc__item a {
    display: block;
    padding: 0.28rem 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.35;
    text-decoration: none;
}

.toc__item a:hover,
.toc__item a.is-active {
    color: var(--copper-dark);
}

.toc__item--h3 {
    padding-left: 0.8rem;
}

.aside-note {
    margin-top: 1.2rem;
    padding-left: 1rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.74rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose {
    font-size: 1.14rem;
    line-height: 1.72;
}

.prose > * + * {
    margin-top: 1.35em;
}

.prose h2 {
    margin-top: 2.5em;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    line-height: 1.18;
}

.prose h3 {
    margin-top: 2em;
    font-size: 1.18rem;
    line-height: 1.25;
}

.prose p {
    color: var(--ink-soft);
}

.prose strong {
    color: var(--ink);
}

.prose ul,
.prose ol {
    padding-left: 1.35em;
}

.prose li {
    margin-top: 0.45em;
    padding-left: 0.15em;
}

.prose li::marker {
    color: var(--copper);
}

.prose blockquote {
    margin: 2em 0;
    padding: 0.35em 0 0.35em 1.35em;
    border-left: 3px solid var(--copper);
    color: var(--muted);
    font-style: italic;
}

.prose blockquote p {
    color: var(--muted);
}

.prose a {
    text-decoration-thickness: 0.07em;
}

.prose hr {
    margin: 3em 0;
    border: 0;
    border-top: 1px solid var(--rule);
}

.prose img {
    display: block;
    width: 100%;
    height: auto;
    margin: 2em 0;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--rule);
}

.prose figure {
    margin: 2em 0;
}

.prose figcaption {
    margin-top: 0.5rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.78rem;
}

.prose table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.45;
}

.prose th,
.prose td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--surface-alt);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.prose tbody tr:hover {
    background: rgba(243, 238, 227, 0.55);
}

.prose code {
    padding: 0.12em 0.32em;
    background: var(--surface-alt);
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 0.88em;
}

.prose pre {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    background: var(--ink);
    color: var(--white);
    font-size: 0.86rem;
    line-height: 1.55;
}

.prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* --------------------------------------------------------------------------
   Callouts and citations
   -------------------------------------------------------------------------- */

.callout {
    margin: 2em 0;
    padding: 1.25rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--teal);
}

.callout--takeaways {
    background: #fbf3ea;
    border-left-color: var(--copper);
}

.callout--note {
    border-left-color: var(--teal);
}

.callout--caveat {
    background: #fbf6e8;
    border-left-color: var(--warning);
}

.callout--myth {
    background: #f1eee7;
    border-left-color: var(--ink);
}

.callout--definition {
    border-left-color: var(--teal);
}

.callout__title {
    margin: 0 0 0.7rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.callout--takeaways .callout__title {
    color: var(--copper-dark);
}

.callout--caveat .callout__title {
    color: var(--warning);
}

.callout > *:last-child {
    margin-bottom: 0;
}

.callout ul,
.callout ol {
    margin-bottom: 0;
}

.citation {
    font-family: var(--sans);
    font-size: 0.68em;
    line-height: 0;
    vertical-align: super;
}

.citation a {
    padding: 0 0.08em;
    color: var(--copper);
    text-decoration: none;
}

.citation a:hover {
    text-decoration: underline;
}

.citation--missing {
    color: var(--warning);
}

/* --------------------------------------------------------------------------
   Sources
   -------------------------------------------------------------------------- */

.article-sources {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.article-sources h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.source-list {
    margin-top: 1rem;
    padding-left: 1.4em;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.55;
}

.source-list li {
    margin-top: 0.75rem;
    padding-left: 0.2em;
}

.source-list cite {
    color: var(--ink);
    font-style: normal;
    font-weight: 600;
}

.source-list a {
    color: var(--copper);
}

.source-accessed {
    color: var(--muted);
    white-space: nowrap;
}

.source-list--full {
    font-size: 0.86rem;
}

.source-group {
    margin-top: 3rem;
}

.source-group h2 {
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Related
   -------------------------------------------------------------------------- */

.related {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

.related h2 {
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.related-card {
    display: block;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
}

.related-card:hover {
    border-color: var(--rule-dark);
    color: var(--ink);
    box-shadow: var(--shadow-small);
}

.related-card__type {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.related-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.related-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Archive, glossary, library
   -------------------------------------------------------------------------- */

.archive {
    padding: 2.5rem 0 5.5rem;
}

.archive-header {
    max-width: 760px;
    margin-bottom: 2.8rem;
}

.archive-header h1 {
    margin-bottom: 0.8rem;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.archive-dek {
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.55;
}

.library-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.library-card:hover {
    transform: translateY(-3px);
    border-color: var(--rule-dark);
    box-shadow: var(--shadow-small);
    color: var(--ink);
}

.library-card__meta {
    margin-bottom: 1rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.library-card h2 {
    margin-bottom: 0.55rem;
    font-size: 1.12rem;
    line-height: 1.2;
}

.library-card p {
    flex: 1;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.library-card__cta {
    margin-top: 1rem;
    color: var(--copper);
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
}

.glossary-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 4rem;
}

.glossary-group h2 {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule-dark);
    color: var(--copper);
    font-family: var(--mono);
    font-size: 0.9rem;
}

.glossary-group ul {
    list-style: none;
}

.glossary-group li {
    border-bottom: 1px solid var(--rule);
}

.glossary-group a {
    display: block;
    padding: 0.85rem 0;
    color: var(--ink);
    text-decoration: none;
}

.glossary-group a:hover strong {
    color: var(--copper-dark);
}

.glossary-group strong {
    display: block;
    font-family: var(--sans);
    font-size: 0.94rem;
}

.glossary-group span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--rule-dark);
    border-radius: 3px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    border-color: var(--teal);
    outline: 2px solid rgba(31, 92, 91, 0.2);
    outline-offset: 0;
}

.search-summary {
    margin-top: 1rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.84rem;
}

.search-results {
    list-style: none;
    border-top: 1px solid var(--rule);
}

.search-results li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rule);
}

.search-result__type {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--teal);
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-results h2 {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

.search-results h2 a {
    color: var(--ink);
    text-decoration: none;
}

.search-results h2 a:hover {
    color: var(--copper-dark);
}

.search-results p {
    color: var(--muted);
    font-size: 0.94rem;
}

.empty-state {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--rule);
}

.empty-state h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Error
   -------------------------------------------------------------------------- */

.error-page {
    padding: 7rem 0;
}

.error-code {
    margin-bottom: 0.5rem;
    color: var(--copper);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.error-page h1 {
    margin-bottom: 0.8rem;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.error-message {
    max-width: 52ch;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 4rem 0 1.5rem;
    background: var(--ink);
    color: #cfc9bd;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.brand--footer {
    color: var(--white);
}

.brand--footer:hover {
    color: var(--white);
}

.footer-brand p {
    max-width: 34ch;
    margin-top: 1rem;
    font-size: 0.94rem;
    line-height: 1.55;
}

.footer-note {
    color: #9e998f;
    font-family: var(--sans);
    font-size: 0.78rem;
}

.footer-group h2 {
    margin-bottom: 0.85rem;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-group ul {
    list-style: none;
}

.footer-group li + li {
    margin-top: 0.45rem;
}

.footer-group a {
    color: #cfc9bd;
    font-family: var(--sans);
    font-size: 0.86rem;
    text-decoration: none;
}

.footer-group a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #9e998f;
    font-family: var(--sans);
    font-size: 0.74rem;
}

.footer-bottom a {
    color: #cfc9bd;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero-grid {
        gap: 3rem;
    }

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

    .article-layout {
        gap: 2.5rem;
        grid-template-columns: minmax(0, var(--reading)) 190px;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem 1.25rem 1.25rem;
        background: var(--surface);
        border-bottom: 1px solid var(--rule);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item > a,
    .nav-dropdown > summary {
        width: 100%;
        justify-content: space-between;
        padding: 0.7rem 0.4rem;
        border-bottom: 1px solid var(--rule);
        border-radius: 0;
    }

    .nav-dropdown__menu {
        position: static;
        min-width: 0;
        padding: 0.25rem 0 0.5rem 0.8rem;
        border: 0;
        box-shadow: none;
    }

    .nav-search {
        align-self: flex-start;
        margin-top: 0.5rem;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-grid,
    .data-teaser,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 {
        max-width: 16ch;
    }

    .hero-visual {
        max-width: 560px;
    }

    .steps,
    .path-grid,
    .feature-grid,
    .card-grid--3,
    .card-grid--2 {
        grid-template-columns: 1fr;
    }

    .section-heading--split {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .article-layout,
    .article-layout--wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-aside {
        display: none;
    }

    .glossary-index {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 640px) {
    body {
        font-size: 1.04rem;
    }

    .container,
    .container--narrow {
        width: min(var(--max), calc(100% - 1.5rem));
    }

    .header-inner {
        min-height: 64px;
    }

    .brand__text {
        font-size: 0.94rem;
    }

    .site-nav {
        top: 64px;
    }

    .hero {
        padding: 2.75rem 0 3rem;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
    }

    .hero-dek {
        font-size: 1.08rem;
    }

    .hero-visual::before {
        display: none;
    }

    .t-account-card {
        padding: 1rem;
    }

    .t-account {
        font-size: 0.76rem;
    }

    .t-account th,
    .t-account td {
        padding: 0.55rem 0.45rem;
    }

    .section {
        padding: 3.25rem 0;
    }

    .card-grid--4 {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 0;
    }

    .article {
        padding-top: 1.5rem;
    }

    .breadcrumbs {
        margin-bottom: 1.5rem;
    }

    .article-header h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .article-dek {
        font-size: 1.1rem;
    }

    .article-meta {
        gap: 0.3rem 0.8rem;
    }

    .article-meta span:not(:last-child)::after {
        margin-left: 0.8rem;
    }

    .prose {
        font-size: 1.05rem;
    }

    .prose table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .search-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .reading-progress,
    .article-aside,
    .hero-actions,
    .related,
    .skip-link {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .article {
        padding: 0;
    }

    .article-layout {
        display: block;
    }

    .prose a {
        color: #000;
        text-decoration: underline;
    }

    .prose a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
