:root {
    color-scheme: light;
    --bg: #f7f6f2;
    --surface: #fffefa;
    --surface-strong: #ffffff;
    --text: #1f1f1d;
    --text-soft: #676761;
    --text-faint: #92928a;
    --line: #deddd6;
    --line-soft: #e9e8e1;
    --accent: #245c42;
    --accent-hover: #184330;
    --accent-soft: #e2ece5;
    --hero: #e9e5d7;
    --otreva-accent: #2f6d50;
    --otreva-soft: #dfece4;
    --spiegel-accent: #3d5f86;
    --spiegel-soft: #e1e8f0;
    --shadow: 0 18px 50px rgba(38, 38, 32, 0.08);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Source Serif 4", Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
    --header-height: 72px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #171715;
    --surface: #1d1d1a;
    --surface-strong: #242421;
    --text: #eeeDE7;
    --text-soft: #b2b1aa;
    --text-faint: #85857e;
    --line: #3a3a35;
    --line-soft: #2e2e2a;
    --accent: #8ec4a3;
    --accent-hover: #b0ddc0;
    --accent-soft: #263c2e;
    --hero: #22251f;
    --otreva-accent: #8ec4a3;
    --otreva-soft: #263c2e;
    --spiegel-accent: #9cb9dc;
    --spiegel-soft: #273445;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 180ms ease, color 180ms ease;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    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: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 150ms ease;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-inner {
    width: min(1120px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
}

.brand-name {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.header-nav a {
    transition: color 150ms ease;
}

.header-nav a:hover {
    color: var(--text);
}

.home-header {
    height: auto;
}

.home-header .header-inner {
    position: relative;
    height: 64px;
    justify-content: center;
}

.home-header .theme-switch {
    position: absolute;
    right: 0;
}

.home-nav {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.home-nav a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 150ms ease;
}

.home-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--text);
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.home-nav a:hover {
    color: var(--text);
}

.home-nav a:hover::after {
    transform: scaleX(1);
}

.home-page #archivo,
.home-page #autores {
    scroll-margin-top: 130px;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--text-faint);
}

.theme-switch-icon {
    width: 15px;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    transition: color 160ms ease;
}

.theme-switch-track {
    position: relative;
    width: 38px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    transition: background-color 180ms ease, border-color 180ms ease;
}

.theme-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, background-color 180ms ease;
}

.theme-switch[aria-pressed="true"] .theme-switch-thumb {
    transform: translateX(16px);
}

.theme-switch[aria-pressed="false"] .theme-switch-icon:first-child,
.theme-switch[aria-pressed="true"] .theme-switch-icon:last-child {
    color: var(--text);
}

.theme-switch:hover .theme-switch-track {
    border-color: var(--text-faint);
}

/* Hero */
.hero {
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.hero-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 82px 0 88px;
}

.hero-copy-block {
    width: 100%;
    min-width: 0;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow,
.section-kicker,
.article-topic {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--text);
    font-family: var(--serif);
    font-size: clamp(58px, 7.5vw, 88px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero-copy {
    max-width: 560px;
    margin: 24px auto 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.45;
}

.hero .eyebrow {
    margin-bottom: 22px;
    color: var(--accent);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

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

.hero-link {
    margin-top: 28px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.hero-link:hover {
    border-color: var(--text-faint);
    background: var(--bg);
    color: var(--text);
}

/* Editorial layout */
.editorial-layout {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 84px 0 112px;
    display: grid;
    grid-template-columns: minmax(0, 730px) minmax(260px, 310px);
    gap: clamp(48px, 7vw, 80px);
    align-items: start;
}

.section-heading {
    padding-bottom: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--text);
}

.section-heading .section-kicker,
.aside-heading .section-kicker {
    margin-bottom: 8px;
}

.section-heading h2,
.aside-heading h2,
.related-section > h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.results-count {
    margin: 0 0 3px;
    color: var(--text-faint);
    font-size: 12px;
    white-space: nowrap;
}

.archive-tools {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.search-box {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
}

.search-icon {
    font-family: var(--serif);
    font-size: 22px;
    transform: rotate(-15deg);
}

.search-box input {
    width: 100%;
    min-width: 110px;
    padding: 7px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-faint);
}

.filter-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-chip {
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.filter-chip span {
    margin-left: 3px;
    color: var(--text-faint);
}

.filter-chip:hover {
    color: var(--text);
}

.filter-chip.is-active {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

/* Feed */
.stories {
    min-height: 360px;
}

.story-card {
    position: relative;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.story-card.has-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 184px;
    gap: 32px;
    align-items: center;
}

.story-copy {
    min-width: 0;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-faint);
    font-size: 11px;
    line-height: 1.2;
}

.mini-avatar {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-right: 1px;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 11px;
    font-weight: 700;
}

.mini-avatar-otreva {
    background: var(--otreva-soft);
    color: var(--otreva-accent);
}

.mini-avatar-spiegel {
    background: var(--spiegel-soft);
    color: var(--spiegel-accent);
}

.story-author {
    color: var(--text);
    font-weight: 600;
}

.story-card h3 {
    margin: 15px 0 8px;
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 29px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.13;
}

.story-title {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 240ms ease, color 150ms ease;
}

.story-title:hover {
    color: var(--accent);
    background-size: 100% 1px;
}

.story-excerpt {
    max-width: 600px;
    margin: 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.story-footer {
    min-height: 24px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.story-tags {
    min-width: 0;
    display: flex;
    gap: 6px;
    overflow: hidden;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text-soft);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.reading-time {
    color: var(--text-faint);
    font-size: 10px;
    white-space: nowrap;
}

.story-cover {
    position: relative;
    width: 184px;
    height: 126px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--line-soft);
}

.story-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 300ms ease, opacity 200ms ease;
}

.story-cover:hover img {
    transform: scale(1.025);
}

.cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text-faint);
    font-family: var(--serif);
    font-size: 44px;
}

.story-cover.is-unavailable img {
    display: none;
}

.story-skeleton {
    height: 190px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent) -200% 0 / 200% 100%,
        linear-gradient(var(--line-soft) 0 0) 0 42px / 110px 11px no-repeat,
        linear-gradient(var(--line-soft) 0 0) 0 76px / 72% 26px no-repeat,
        linear-gradient(var(--line-soft) 0 0) 0 118px / 92% 13px no-repeat;
    animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
    to { background-position: 200% 0, 0 42px, 0 76px, 0 118px; }
}

.empty-state {
    padding: 72px 28px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.empty-state-mark {
    margin: 0 0 12px;
    color: var(--text-faint);
    font-family: var(--serif);
    font-size: 44px;
}

.empty-state h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
}

.empty-state > p:not(.empty-state-mark) {
    margin: 10px 0 22px;
    color: var(--text-soft);
    font-size: 13px;
}

.secondary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid var(--text);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    background: var(--text);
    color: var(--bg);
}

/* Authors */
.authors {
    position: sticky;
    top: calc(var(--header-height) + 36px);
}

.aside-heading {
    padding-bottom: 23px;
    border-bottom: 1px solid var(--text);
}

.aside-heading h2 {
    font-size: 29px;
}

.author-profile {
    padding: 26px 0;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
}

.author-otreva .author-avatar,
.article-avatar-otreva {
    background: var(--otreva-soft);
    color: var(--otreva-accent);
}

.author-spiegel .author-avatar,
.article-avatar-spiegel {
    background: var(--spiegel-soft);
    color: var(--spiegel-accent);
}

.author-profile h3 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 20px;
}

.author-profile p {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.5;
}

.author-filter-link {
    margin: 11px 0 0;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 176px;
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 72px;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.footer-inner nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
}

.footer-inner nav a:hover {
    color: var(--text);
}

.copyright {
    margin: 6px 0 0;
    color: var(--text-faint);
    font-size: 10px;
    white-space: nowrap;
}

.noscript-message {
    margin: 0;
    padding: 14px;
    background: #7c2d12;
    color: #fff;
    text-align: center;
    font-size: 13px;
}

/* Article page */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 0;
    height: 3px;
    background: var(--accent);
}

.article-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 110px;
}

.full-post {
    width: min(760px, 100%);
    margin: 0 auto;
}

.article-intro {
    margin-bottom: 48px;
}

.article-topic {
    margin-bottom: 17px;
}

.post-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 600;
    letter-spacing: -0.052em;
    line-height: 0.98;
}

.article-byline {
    margin-top: 30px;
    padding: 22px 0;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 13px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
}

.byline-copy p {
    margin: 0;
}

.byline-name {
    font-size: 12px;
    font-weight: 700;
}

.byline-meta {
    margin-top: 3px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-faint);
    font-size: 10px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.article-action {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.article-action:hover {
    border-color: var(--text-faint);
    background: var(--surface);
    color: var(--text);
}

.icon-action {
    width: 34px;
    padding: 0;
    font-size: 17px;
}

.action-status {
    height: 14px;
    margin: 8px 0 -22px;
    color: var(--accent);
    text-align: right;
    font-size: 10px;
}

.article-cover-wrap {
    width: min(960px, calc(100vw - 40px));
    margin: 0 0 58px 50%;
    transform: translateX(-50%);
}

.article-cover {
    width: 100%;
    max-height: 560px;
    display: block;
    object-fit: cover;
    background: var(--line-soft);
}

.post-content {
    width: min(680px, 100%);
    margin: 0 auto;
    color: color-mix(in srgb, var(--text) 94%, transparent);
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.62;
    letter-spacing: -0.006em;
}

.post-content p {
    margin: 1.35em 0;
}

.post-content > p:first-child {
    margin-top: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2.15em 0 0.65em;
    color: var(--text);
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 23px; }
.post-content h4 { font-size: 20px; }

.post-content blockquote {
    margin: 2em 0;
    padding: 0.1em 0 0.1em 1.25em;
    border-left: 3px solid var(--text);
    color: var(--text-soft);
    font-style: italic;
    font-size: 1.08em;
}

.post-content blockquote p {
    margin: 0.6em 0;
}

.post-content ul,
.post-content ol {
    margin: 1.4em 0;
    padding-left: 1.35em;
}

.post-content li {
    margin: 0.55em 0;
    padding-left: 0.25em;
}

.post-content a {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent);
    text-underline-offset: 3px;
}

.post-content a:hover {
    text-decoration-color: currentColor;
}

.post-content hr {
    width: 80px;
    margin: 3em auto;
    border: 0;
    border-top: 1px solid var(--line);
}

.post-content figure {
    width: min(840px, calc(100vw - 40px));
    margin: 2.5em 0 2.5em 50%;
    transform: translateX(-50%);
}

.post-content img {
    width: auto;
    max-width: min(840px, calc(100vw - 40px));
    height: auto;
    max-height: 720px;
    display: block;
    margin: 2.5em auto;
    object-fit: contain;
}

.post-content figure img {
    max-width: 100%;
    margin: 0 auto;
}

.post-content figcaption {
    margin-top: 10px;
    color: var(--text-faint);
    font-family: var(--sans);
    font-size: 10px;
    text-align: center;
}

.article-end {
    width: min(680px, 100%);
    margin: 64px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.end-mark {
    width: 34px;
    height: 34px;
    margin: 42px auto 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-faint);
    font-family: var(--serif);
    font-size: 15px;
}

.article-loading {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-faint);
    font-size: 12px;
}

.article-loading span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: loading-dots 1s infinite ease-in-out;
}

.article-loading span:nth-child(2) { animation-delay: 120ms; }
.article-loading span:nth-child(3) { animation-delay: 240ms; }
.article-loading p { margin-left: 7px; }

@keyframes loading-dots {
    0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.article-error {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.article-error h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: 42px;
}

.article-error > p:not(.empty-state-mark) {
    max-width: 430px;
    margin: 12px 0 25px;
    color: var(--text-soft);
    font-family: var(--serif);
}

.related-section {
    margin-top: 112px;
    padding-top: 44px;
    border-top: 1px solid var(--text);
}

.related-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.related-card {
    min-width: 0;
    padding: 24px 24px 6px 0;
}

.related-card + .related-card {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.related-card h3 {
    margin: 8px 0;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.related-card h3 a:hover {
    color: var(--accent);
}

.related-card > p:last-child {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.45;
}

.related-meta {
    margin: 0;
    color: var(--text-faint);
    font-size: 9px;
    text-transform: uppercase;
}

/* Donations */
.donations-hero {
    padding: 90px 20px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, #f7931a 18%, transparent), transparent 48%),
        var(--hero);
    text-align: center;
}

.donations-hero-inner {
    max-width: 620px;
    margin: 0 auto;
}

.donations-badge {
    display: inline-flex;
    padding: 6px 11px;
    border: 1px solid color-mix(in srgb, #f7931a 55%, transparent);
    border-radius: 999px;
    color: #b96400;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-theme="dark"] .donations-badge {
    color: #f6aa4b;
}

.donations-hero h1 {
    margin: 18px 0 12px;
    font-family: var(--serif);
    font-size: clamp(46px, 7vw, 70px);
    letter-spacing: -0.05em;
    line-height: 1;
}

.donations-hero p {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
}

.donations-main {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 100px;
}

.donation-card {
    padding: clamp(24px, 6vw, 48px);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.donation-card-header {
    text-align: center;
}

.btc-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f7931a;
    color: white;
    font-size: 23px;
    font-weight: 700;
}

.donation-card h2,
.donations-why h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: -0.035em;
}

.donation-description {
    margin: 13px auto 0;
    color: var(--text-soft);
    font-family: var(--serif);
    line-height: 1.6;
}

.btc-address-section {
    margin: 34px 0 26px;
}

.btc-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btc-address-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btc-address {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-size: 11px;
    word-break: break-all;
}

.copy-btn {
    min-height: 41px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.qr-section {
    text-align: center;
}

.qr-label {
    margin: 0 0 10px;
    color: var(--text-soft);
    font-size: 11px;
}

.qr-container {
    display: inline-block;
    padding: 12px;
    background: white;
}

.qr-code {
    width: 170px;
    height: 170px;
    display: block;
}

.donation-thank-you {
    margin-top: 28px;
    padding: 14px 16px;
    background: var(--accent-soft);
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 13px;
    text-align: center;
}

.donation-thank-you p {
    margin: 0;
}

.donations-why {
    margin-top: 72px;
}

.donations-why > h2 {
    margin-bottom: 24px;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.why-card {
    padding: 22px 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: center;
}

.why-icon {
    display: block;
    margin-bottom: 9px;
    font-size: 22px;
}

.why-card h3 {
    margin: 0 0 7px;
    font-size: 13px;
}

.why-card p {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--serif);
    font-size: 12px;
    line-height: 1.45;
}

.donations-footer {
    padding: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: 11px;
    text-align: center;
}

.donations-footer a {
    color: var(--accent);
}

/* Transitional aliases used by the support page */
.medium-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.medium-header .header-content {
    width: min(1120px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.medium-header .logo a {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
}

.medium-header .nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.medium-header .nav-btn {
    border: 0;
    background: none;
    color: var(--text-soft);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .editorial-layout {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .authors {
        position: static;
    }

    .authors {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 30px;
    }

    .aside-heading {
        grid-column: 1 / -1;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card,
    .related-card + .related-card {
        padding: 22px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    .header-inner,
    .hero-inner,
    .editorial-layout,
    .footer-inner,
    .article-shell {
        width: min(100% - 30px, 1120px);
    }

    .header-nav {
        gap: 16px;
    }

    .hero {
        min-height: 370px;
    }

    .hero-inner {
        padding: 66px 0 72px;
    }

    .hero h1 {
        font-size: clamp(50px, 13vw, 68px);
    }

    .hero-copy {
        max-width: 430px;
        font-size: 18px;
    }

    .editorial-layout {
        padding: 64px 0 84px;
    }

    .archive-tools {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .filter-list {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .story-card.has-cover {
        grid-template-columns: minmax(0, 1fr) 128px;
        gap: 20px;
    }

    .story-cover {
        width: 128px;
        height: 98px;
    }

    .story-excerpt {
        -webkit-line-clamp: 3;
    }

    .footer-inner {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .copyright {
        grid-column: 1 / -1;
    }

    .article-shell {
        padding-top: 56px;
    }

    .post-title {
        font-size: clamp(45px, 12vw, 62px);
    }

    .article-byline {
        grid-template-columns: 42px 1fr;
    }

    .article-actions {
        grid-column: 1 / -1;
        padding-top: 10px;
    }

    .action-status {
        text-align: left;
    }

    .article-cover-wrap {
        margin-bottom: 42px;
    }

    .post-content {
        font-size: 19px;
        line-height: 1.62;
    }

    .related-section {
        margin-top: 86px;
    }
}

@media (max-width: 520px) {
    .header-nav > a:not(.back-to-archive) {
        display: none;
    }

    .brand-name {
        font-size: 23px;
    }

    .home-nav {
        gap: 26px;
    }

    .home-header .header-inner {
        justify-content: flex-start;
    }

    .home-header .theme-switch {
        right: 0;
    }

    .theme-switch-icon {
        display: none;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .story-card {
        padding: 27px 0;
    }

    .story-card.has-cover {
        grid-template-columns: minmax(0, 1fr) 98px;
        gap: 15px;
    }

    .story-cover {
        width: 98px;
        height: 98px;
    }

    .story-card h3 {
        margin-top: 12px;
        font-size: 23px;
    }

    .story-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .story-footer {
        margin-top: 14px;
    }

    .story-tags .tag:nth-child(n + 2) {
        display: none;
    }

    .reading-time {
        display: none;
    }

    .authors {
        grid-template-columns: 1fr;
    }

    .aside-heading {
        grid-column: auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-inner nav {
        max-width: 240px;
    }

    .copyright {
        grid-column: auto;
    }

    .article-intro {
        margin-bottom: 36px;
    }

    .post-title {
        font-size: 43px;
    }

    .post-content {
        font-size: 18px;
        line-height: 1.65;
    }

    .post-content blockquote {
        margin-left: -3px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .btc-address-box {
        align-items: stretch;
        flex-direction: column;
    }
}

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

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