/*
 * Echoes — a quiet theme for Typecho.
 * Hand-written, no external dependencies.
 */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    color-scheme: light;

    --bg: #f5f1ea;
    --bg-deep: #eee7dc;
    --surface: rgba(255, 252, 247, 0.64);
    --surface-solid: #fbf8f2;
    --surface-soft: rgba(238, 231, 221, 0.66);
    --tint-blue: rgba(94, 126, 155, 0.09);
    --tint-warm: rgba(163, 113, 66, 0.09);
    --latest-bg: linear-gradient(135deg, rgba(163, 113, 66, 0.095), rgba(255, 255, 255, 0.34));
    --latest-border: rgba(163, 113, 66, 0.16);
    --footer-bg: rgba(238, 231, 221, 0.52);

    --ink: #2e2822;
    --ink-strong: #17130f;
    --text-content: #3d362f;
    --muted: #7d7267;
    --faint: #a19689;

    --line: rgba(58, 46, 34, 0.13);
    --line-strong: rgba(58, 46, 34, 0.22);
    --grid: rgba(54, 94, 120, 0.055);

    --accent: #35617d;
    --accent-soft: #5e7e9b;
    --warm: #a37142;
    --warm-soft: #c49a6e;
    --danger: #a34a3f;

    --header-bg: rgba(245, 241, 234, 0.76);
    --header-bg-home: rgba(245, 241, 234, 0.42);
    --overlay: rgba(245, 241, 234, 0.93);
    --hover: rgba(58, 46, 34, 0.055);

    --shadow: 0 26px 70px rgba(68, 52, 35, 0.08);
    --shadow-soft: 0 16px 46px rgba(68, 52, 35, 0.065);

    --serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "STSong", "Songti SC", "SimSun", serif;
    --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --mono: "SFMono-Regular", "Cascadia Code", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;

    --shell: 1180px;
    --gutter: 32px;
    --header-offset: 86px;
    --radius: 22px;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg: #161513;
    --bg-deep: #1d1b18;
    --surface: rgba(35, 32, 28, 0.72);
    --surface-solid: #1d1b18;
    --surface-soft: rgba(42, 38, 33, 0.7);
    --tint-blue: rgba(126, 163, 190, 0.1);
    --tint-warm: rgba(196, 154, 110, 0.1);
    --latest-bg: linear-gradient(135deg, rgba(196, 154, 110, 0.1), rgba(28, 26, 23, 0.4));
    --latest-border: rgba(196, 154, 110, 0.18);
    --footer-bg: rgba(27, 25, 22, 0.72);

    --ink: #e8e0d5;
    --ink-strong: #fbf6ee;
    --text-content: #d8cfc3;
    --muted: #a99f92;
    --faint: #786f65;

    --line: rgba(232, 224, 213, 0.12);
    --line-strong: rgba(232, 224, 213, 0.22);
    --grid: rgba(126, 163, 190, 0.06);

    --accent: #8fb1ca;
    --accent-soft: #6e93af;
    --warm: #cfa173;
    --warm-soft: #a77d55;
    --danger: #d9897c;

    --header-bg: rgba(22, 21, 19, 0.78);
    --header-bg-home: rgba(22, 21, 19, 0.44);
    --overlay: rgba(18, 17, 15, 0.94);
    --hover: rgba(232, 224, 213, 0.06);

    --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* ── Reset and base ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

body {
    margin: 0;
    min-width: 300px;
    overflow-x: clip;
    background-color: var(--bg);
    background-image:
        radial-gradient(1000px 680px at 6% -8%, rgba(94, 126, 155, 0.11), transparent 62%),
        radial-gradient(860px 620px at 98% 6%, rgba(163, 113, 66, 0.09), transparent 60%),
        radial-gradient(900px 700px at 50% 108%, rgba(94, 126, 155, 0.05), transparent 62%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
    background-image:
        radial-gradient(1000px 680px at 6% -8%, rgba(110, 147, 175, 0.11), transparent 62%),
        radial-gradient(860px 620px at 98% 6%, rgba(196, 154, 110, 0.075), transparent 60%),
        radial-gradient(900px 700px at 50% 108%, rgba(110, 147, 175, 0.055), transparent 62%);
}

::selection {
    background: rgba(163, 113, 66, 0.24);
    color: var(--ink-strong);
}

body.nav-open,
body.search-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

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

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

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

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

input,
textarea {
    min-width: 0;
}

hr {
    height: 1px;
    margin: 2.4em 0;
    border: 0;
    background: var(--line);
}

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

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 500;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--ink);
    font-size: 12px;
    transform: translate(-50%, -160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.shell {
    width: min(var(--shell), calc(100% - var(--gutter) * 2));
    margin: 0 auto;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.24em;
    line-height: 1.5;
    text-transform: uppercase;
}

.kicker-slash {
    color: var(--faint);
    letter-spacing: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--warm);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-link span {
    transition: transform 0.25s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* ── Fixed header ───────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 120;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    transition:
        padding 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    padding: 10px 0;
    border-bottom-color: var(--line);
    background: var(--header-bg);
    box-shadow: 0 14px 40px rgba(58, 46, 34, 0.055);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
    backdrop-filter: saturate(150%) blur(18px);
}

body.is-home .site-header:not(.is-scrolled) {
    background: transparent;
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: min(1240px, calc(100% - var(--gutter) * 2));
    min-height: 44px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: baseline;
    justify-self: start;
    gap: 14px;
    min-width: 0;
}

.brand-title {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1;
    white-space: nowrap;
}

.brand-sub {
    overflow: hidden;
    max-width: 190px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 11px;
    font-style: italic;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-1px);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: clamp(22px, 3vw, 38px);
}

.nav-link {
    position: relative;
    padding: 6px 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.22s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--warm);
    content: "";
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: var(--ink-strong);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav-link.is-active {
    color: var(--warm);
}

.header-tools {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 2px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-button:hover {
    background: var(--hover);
    color: var(--ink-strong);
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.menu-toggle {
    display: none;
}

.theme-toggle .icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
    fill: currentColor;
    stroke: none;
}

.reading-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    overflow: hidden;
    background: var(--line);
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--warm));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.08s linear;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 146px 0 92px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(640px 460px at 82% 42%, rgba(163, 113, 66, 0.105), transparent 68%),
        radial-gradient(720px 560px at 10% 12%, rgba(94, 126, 155, 0.1), transparent 70%);
    content: "";
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 88px 88px;
    content: "";
    opacity: 0.62;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 36%, #000 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(270px, 0.68fr);
    align-items: center;
    gap: clamp(40px, 6vw, 84px);
    width: min(var(--shell), calc(100% - var(--gutter) * 2));
    margin: 0 auto;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    margin-bottom: clamp(26px, 4vh, 42px);
    color: var(--accent);
}

.hero-title {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.22;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    margin-left: clamp(18px, 4.2vw, 60px);
    color: var(--warm);
    font-weight: 500;
}

.hero-desc {
    max-width: 470px;
    margin-top: clamp(24px, 3.4vh, 34px);
    color: var(--muted);
    font-size: 13.5px;
    letter-spacing: 0.025em;
    line-height: 1.95;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: clamp(36px, 6vh, 58px);
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero-meta-line {
    width: 58px;
    height: 1px;
    background: var(--line-strong);
}

.hero-aside {
    position: relative;
    justify-self: end;
    width: min(100%, 356px);
    padding: 44px 0 44px 42px;
    border-left: 1px solid var(--line);
}

.echo-rings {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 430px;
    height: 430px;
    opacity: 0.64;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.echo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.echo-ring-1 {
    width: 100%;
    height: 100%;
    border-style: dashed;
    opacity: 0.5;
    animation: echo-spin 70s linear infinite;
}

.echo-ring-2 {
    width: 70%;
    height: 70%;
    opacity: 0.72;
}

.echo-ring-3 {
    width: 42%;
    height: 42%;
    border-color: rgba(163, 113, 66, 0.3);
}

.echo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warm);
    box-shadow:
        0 0 0 8px rgba(163, 113, 66, 0.09),
        0 0 32px rgba(163, 113, 66, 0.28);
    transform: translate(-50%, -50%);
}

@keyframes echo-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.aside-label {
    position: relative;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.26em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero-quote {
    position: relative;
    margin-top: 26px;
    color: var(--faint);
    font-family: var(--serif);
    font-size: clamp(20px, 1.85vw, 25px);
    letter-spacing: 0.015em;
    line-height: 2;
}

.hero-quote::first-line {
    color: var(--ink);
}

.hero-cite {
    position: relative;
    display: block;
    margin-top: 26px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    font-style: normal;
    letter-spacing: 0.15em;
    line-height: 1.6;
    text-align: right;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 7.5px;
    letter-spacing: 0.3em;
    line-height: 1;
    transform: translateX(-50%);
}

.scroll-cue i {
    position: relative;
    display: block;
    width: 1px;
    height: 38px;
    overflow: hidden;
    background: var(--line-strong);
}

.scroll-cue i::after {
    position: absolute;
    top: -100%;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--warm);
    content: "";
    animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% {
        transform: translateY(0);
    }
    55%,
    100% {
        transform: translateY(200%);
    }
}

/* ── Home layout ────────────────────────────────────────── */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    align-items: start;
    gap: clamp(36px, 5.4vw, 70px);
    padding: 86px 0 116px;
}

.content-col {
    min-width: 0;
}

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

.section-head h2 {
    margin-top: 12px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(42px, 4.7vw, 58px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.section-note {
    flex: 0 0 auto;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    line-height: 1.9;
    text-align: right;
    text-transform: uppercase;
}

.stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
}

.stream-entry {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 26px;
    padding: 28px;
    border: 1px solid transparent;
    border-radius: 20px;
    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.28s ease;
}

.stream-entry:hover {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.stream-entry.is-latest {
    border-color: var(--latest-border);
    background: var(--latest-bg);
}

.stream-entry.is-latest:hover {
    border-color: var(--warm-soft);
}

.stream-date {
    padding-top: 3px;
}

.stream-day {
    display: block;
    color: var(--warm);
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
}

.stream-month {
    display: block;
    margin-top: 9px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.stream-main {
    min-width: 0;
}

.stream-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 17px;
}

.stream-kind {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.22em;
    line-height: 1.5;
    text-transform: uppercase;
}

.stream-new {
    padding: 2px 7px;
    border: 1px solid rgba(163, 113, 66, 0.3);
    border-radius: 999px;
    color: var(--warm);
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.16em;
    line-height: 1.5;
}

.stream-year {
    margin-left: auto;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    line-height: 1.5;
}

.stream-title {
    margin-top: 10px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(24px, 2.25vw, 29px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.42;
}

.stream-title a {
    transition: color 0.22s ease;
}

.stream-title a:hover {
    color: var(--warm);
}

.stream-excerpt {
    max-width: 640px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 13.5px;
    letter-spacing: 0.012em;
    line-height: 1.9;
}

.stream-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 18px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.06em;
    line-height: 1.7;
}

.stream-meta > * {
    position: relative;
}

.stream-meta > * + *::before {
    position: absolute;
    top: 50%;
    left: -10px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--line-strong);
    content: "";
    transform: translateY(-50%);
}

.stream-meta a {
    transition: color 0.2s ease;
}

.stream-meta a:hover {
    color: var(--warm);
}

.stream-meta-cat a {
    color: var(--accent);
}

/* ── Station / sidebar ──────────────────────────────────── */
.station {
    position: sticky;
    top: 108px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.station-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.station-head .kicker {
    color: var(--accent);
    font-size: 8px;
    letter-spacing: 0.17em;
}

.station-head i {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--line-strong);
}

.station-block {
    margin-top: 24px;
}

.station-block h3 {
    margin-bottom: 10px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.5;
    text-transform: uppercase;
}

.station-notice p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.station-muted {
    color: var(--faint);
    font-size: 12px;
}

.station-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px 15px;
    border-radius: 14px;
    background: var(--tint-blue);
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.stat-card:hover {
    background: var(--tint-warm);
    transform: translateY(-2px);
}

.stat-card span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.stat-card strong {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.station-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
}

.station-category-grid a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.7;
    transition: color 0.2s ease;
}

.station-category-grid a:hover {
    color: var(--warm);
}

.station-category-grid em {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    font-style: normal;
}

.station-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
}

.station-links a {
    padding: 4px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    transition: color 0.2s ease;
}

.station-links a:hover {
    color: var(--warm);
}

/* ── Archive / page header ──────────────────────────────── */
.page-header {
    padding: 148px 0 52px;
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    margin-top: 18px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(56px, 8.6vw, 106px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.page-desc {
    max-width: 620px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13.5px;
    letter-spacing: 0.015em;
    line-height: 1.95;
}

.page-meta {
    margin-top: 22px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    line-height: 1.7;
    text-transform: uppercase;
}

.page-meta span {
    margin: 0 7px;
    color: var(--warm);
}

.archive-grid {
    padding: 0 0 110px;
}

.archive-hero h1 {
    font-size: clamp(58px, 9vw, 112px);
}

.year-group {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: clamp(36px, 6vw, 72px);
    padding: 46px 0;
    border-bottom: 1px solid var(--line);
}

.year-label {
    position: sticky;
    top: 108px;
    align-self: start;
}

.year-label h2 {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(48px, 4.8vw, 64px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}

.year-label p {
    margin-top: 9px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.year-list {
    min-width: 0;
}

.archive-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 92px 20px;
    align-items: center;
    gap: 18px;
    padding: 16px 10px;
    border-bottom: 1px dashed var(--line);
    transition:
        padding 0.24s ease,
        background-color 0.24s ease;
}

.archive-row:first-child {
    padding-top: 4px;
}

.archive-row time {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.archive-row-title {
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: 1.65;
    transition: color 0.22s ease;
}

.archive-row-cat {
    overflow: hidden;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-row-arrow {
    color: var(--warm);
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.archive-row:last-child {
    border-bottom: 0;
}

.archive-row:hover {
    padding-right: 4px;
    padding-left: 20px;
    background: var(--surface);
}

.archive-row:hover .archive-row-title {
    color: var(--warm);
}

.archive-row:hover .archive-row-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
    padding: 74px 0;
}

.empty-state h2 {
    margin-top: 14px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.empty-state > p:not(.kicker) {
    max-width: 440px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.empty-state .text-link {
    margin-top: 24px;
}

/* ── Article / page detail ──────────────────────────────── */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) 242px;
    align-items: start;
    justify-content: center;
    gap: clamp(38px, 4.8vw, 62px);
    padding: 134px 0 106px;
}

.post-detail {
    min-width: 0;
    padding: clamp(28px, 4.5vw, 60px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.post-header {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.post-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.post-kicker-row .kicker {
    color: var(--accent);
}

.post-year {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    line-height: 1.5;
}

.post-title {
    margin-top: 20px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(30px, 3.55vw, 43px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 24px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.055em;
    line-height: 1.8;
}

.post-meta-item,
.post-meta-author {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.post-meta a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: var(--warm);
}

.meta-label {
    color: var(--faint);
    font-size: 7.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-body {
    margin-top: 36px;
    color: var(--text-content);
    font-size: 16px;
    letter-spacing: 0.012em;
    line-height: 2.05;
    overflow-wrap: break-word;
}

.post-body > *:first-child {
    margin-top: 0 !important;
}

.post-body > *:last-child {
    margin-bottom: 0 !important;
}

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

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.45;
    scroll-margin-top: 112px;
}

.post-body h2 {
    margin: 2.15em 0 0.78em;
    font-size: 28px;
}

.post-body h3 {
    margin: 1.9em 0 0.65em;
    font-size: 21px;
}

.post-body h4 {
    margin: 1.7em 0 0.55em;
    font-size: 17px;
}

.post-body h5,
.post-body h6 {
    margin: 1.5em 0 0.5em;
    font-size: 15px;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(53, 97, 125, 0.32);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-body a:hover {
    color: var(--warm);
    text-decoration-color: var(--warm);
}

.post-body strong {
    color: var(--ink-strong);
    font-weight: 600;
}

.post-body em {
    font-style: italic;
}

.post-body ul,
.post-body ol {
    margin: 1.3em 0;
    padding-left: 1.55em;
}

.post-body li {
    margin: 0.45em 0;
    padding-left: 0.15em;
}

.post-body li::marker {
    color: var(--warm);
}

.post-body li > ul,
.post-body li > ol {
    margin: 0.45em 0;
}

.post-body blockquote {
    position: relative;
    margin: 2em 0;
    padding: 20px 26px;
    border-left: 2px solid var(--warm);
    border-radius: 0 12px 12px 0;
    background: var(--tint-warm);
    color: var(--muted);
}

.post-body blockquote p {
    margin: 0.45em 0;
}

.post-body blockquote p:first-child {
    margin-top: 0;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body hr {
    margin: 2.6em auto;
    width: 52px;
    background: var(--line-strong);
}

.post-body code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(163, 113, 66, 0.11);
    color: var(--danger);
    font-family: var(--mono);
    font-size: 0.86em;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.post-body pre {
    position: relative;
    max-height: none;
    margin: 1.9em 0;
    padding: 22px 22px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background: #1d1b18;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e7dfd4;
    font-size: 12.5px;
    line-height: 1.8;
    -webkit-overflow-scrolling: touch;
}

.post-body pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    overflow-wrap: normal;
    white-space: pre;
}

.code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.post-body pre:hover .code-copy,
.code-copy:focus-visible {
    opacity: 1;
}

.code-copy:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (hover: none) {
    .code-copy {
        opacity: 1;
    }
}

.post-body img {
    height: auto;
    margin: 1.8em auto;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(58, 46, 34, 0.08);
}

.post-body figure {
    margin: 1.8em 0;
}

.post-body figure img {
    margin: 0 auto;
}

.post-body figcaption {
    margin-top: 10px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.7;
    text-align: center;
}

.post-body table {
    width: 100%;
    margin: 1.8em 0;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.7;
}

.post-body th,
.post-body td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.post-body th {
    background: var(--surface-soft);
    color: var(--ink-strong);
    font-weight: 600;
}

.post-body tr:nth-child(even) td {
    background: rgba(94, 126, 155, 0.035);
}

.post-body iframe,
.post-body video {
    max-width: 100%;
    margin: 1.6em auto;
    border: 0;
    border-radius: 12px;
}

.post-body .protected {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.post-body .protected .word {
    margin-top: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.post-body .protected input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface-solid);
}

.post-body .protected input[type="submit"] {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
}

/* ── Post footer ────────────────────────────────────────── */
.post-footer {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 26px;
}

.post-tags-label {
    margin-right: 4px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.post-tags a {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.6;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.post-tags a:hover {
    border-color: var(--warm);
    background: var(--tint-warm);
    color: var(--warm);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.post-nav-label {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.post-nav-item a {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.7;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
}

.post-nav-item a:hover {
    color: var(--warm);
}

.post-nav-item em {
    color: var(--faint);
    font-size: 12px;
    font-style: normal;
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.back-home span {
    transition: transform 0.22s ease;
}

.back-home:hover {
    color: var(--warm);
}

.back-home:hover span {
    transform: translateX(-4px);
}

/* ── Article aside / TOC ────────────────────────────────── */
.post-aside {
    position: sticky;
    top: 110px;
    min-width: 0;
    padding-top: 12px;
}

.toc-wrap[hidden] {
    display: none;
}

.toc-wrap .kicker {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 8px;
    letter-spacing: 0.17em;
}

.toc {
    display: flex;
    flex-direction: column;
}

.toc a {
    display: block;
    padding: 5px 0 5px 15px;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    transition: border-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.toc a.level-3 {
    padding-left: 27px;
    color: var(--faint);
    font-size: 10.5px;
}

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

.toc a.is-active {
    border-left-color: var(--warm);
    color: var(--warm);
    padding-left: 18px;
}

.toc a.level-3.is-active {
    padding-left: 30px;
}

.post-aside-card {
    margin-top: 34px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.post-aside-card .kicker {
    margin-bottom: 14px;
    color: var(--faint);
    font-size: 7.5px;
}

.post-aside-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.post-aside-card dl > div:last-child {
    border-bottom: 0;
}

.post-aside-card dt {
    flex: 0 0 auto;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-aside-card dd {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.7;
    text-align: right;
}

.post-aside-card dd a {
    color: var(--accent);
}

.post-aside-card > p:not(.kicker) {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.85;
}

/* ── Comments ───────────────────────────────────────────── */
.comments {
    margin-top: 54px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.comments-head h2 {
    margin-top: 10px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.comment-list {
    margin-top: 16px;
    list-style: none;
}

.comment-list ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-children {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px dashed var(--line);
}

.comment-body {
    position: relative;
    padding: 20px 0;
    border-bottom: 1px dashed var(--line);
}

.comment-body:last-child {
    border-bottom: 0;
}

.comment-by-author {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 10px;
    background: var(--tint-warm);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.comment-author .avatar {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-soft);
    object-fit: cover;
}

.comment-author cite {
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 12.5px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-meta {
    margin-top: 7px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.comment-meta a {
    color: var(--faint);
    transition: color 0.2s ease;
}

.comment-meta a:hover {
    color: var(--warm);
}

.comment-awaiting-moderation {
    margin-left: 8px;
    color: var(--danger);
    font-style: normal;
}

.comment-content {
    margin-top: 10px;
    color: var(--text-content);
    font-size: 13.5px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.comment-content p {
    margin: 0.7em 0;
}

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

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.comment-reply {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    line-height: 1.6;
    text-transform: uppercase;
}

.comment-reply a {
    color: var(--faint);
    transition: color 0.2s ease;
}

.comment-reply a:hover {
    color: var(--warm);
}

.comments .page-navigator {
    margin-top: 22px;
}

/* Reply form */
.respond {
    position: relative;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.respond h3 {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.respond-note {
    margin-top: 8px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    line-height: 1.7;
}

.cancel-comment-reply {
    position: absolute;
    top: 32px;
    right: 0;
    color: var(--warm);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.cancel-comment-reply:empty {
    display: none;
}

.logged-in-as {
    margin-top: 18px;
    color: var(--muted);
    font-size: 11.5px;
}

.logged-in-as a {
    color: var(--accent);
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.comment-fields p {
    min-width: 0;
}

.comment-fields label,
.comment-textarea label {
    display: block;
    margin-bottom: 6px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

label.required::after {
    margin-left: 3px;
    color: var(--warm);
    content: "*";
}

.comment-fields input,
.comment-textarea textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    background: var(--surface);
    color: var(--ink);
    font-size: 12.5px;
    line-height: 1.6;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-fields input:focus,
.comment-textarea textarea:focus {
    border-color: var(--accent-soft);
    background: var(--surface-solid);
    box-shadow: 0 0 0 3px rgba(94, 126, 155, 0.1);
}

.comment-textarea {
    margin-top: 14px;
}

.comment-textarea textarea {
    min-height: 136px;
    resize: vertical;
}

.comment-submit-row {
    margin-top: 16px;
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ink-strong);
    color: var(--bg);
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.5;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.comment-submit:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.comment-submit span {
    transition: transform 0.22s ease;
}

.comment-submit:hover span {
    transform: translateX(3px);
}

.comments-closed {
    margin-top: 18px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
}

/* ── Pagination ─────────────────────────────────────────── */
.page-navigator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 36px;
    list-style: none;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.04em;
}

.page-navigator li {
    display: block;
}

.page-navigator a,
.page-navigator > li > span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.page-navigator a:hover {
    border-color: var(--warm);
    color: var(--warm);
}

.page-navigator .current > a,
.page-navigator .current > span {
    border-color: var(--ink-strong);
    background: var(--ink-strong);
    color: var(--bg);
}

.page-navigator .prev > a,
.page-navigator .next > a {
    padding: 0 15px;
    letter-spacing: 0.08em;
}

/* ── Search overlay ─────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15vh 28px 40px;
    background: var(--overlay);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-close {
    position: fixed;
    top: 26px;
    right: 30px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.search-close:hover {
    border-color: var(--warm);
    color: var(--warm);
    transform: rotate(90deg);
}

.search-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.search-panel {
    width: min(760px, 100%);
    transform: translateY(12px);
    transition: transform 0.34s cubic-bezier(0.22, 0.72, 0.24, 1);
}

.search-overlay.is-open .search-panel {
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-strong);
}

.search-form input {
    flex: 1;
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.5;
}

.search-form input::placeholder {
    color: var(--faint);
    font-weight: 400;
}

.search-form button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--warm);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.search-form button:hover {
    border-color: var(--warm);
    background: var(--tint-warm);
}

.search-form button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.search-hint {
    margin-top: 14px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    line-height: 1.7;
}

/* ── Mobile navigation ──────────────────────────────────── */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 290;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-scrim {
    position: absolute;
    inset: 0;
    background: rgba(22, 17, 12, 0.38);
    opacity: 0;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

.mobile-nav.is-open .mobile-nav-scrim {
    opacity: 1;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(390px, 88vw);
    padding: 28px 30px 36px;
    border-right: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: 24px 0 70px rgba(30, 22, 15, 0.14);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.36s cubic-bezier(0.22, 0.72, 0.24, 1);
}

.mobile-nav.is-open .mobile-nav-panel {
    transform: translateX(0);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.mobile-nav-links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.4;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-links a:hover {
    padding-left: 6px;
    color: var(--warm);
}

.mobile-nav-links span {
    color: var(--warm);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.mobile-nav-foot {
    margin-top: auto;
    padding-top: 34px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.8;
}

.mobile-nav-foot p {
    margin-bottom: 10px;
}

.mobile-nav-foot a {
    color: var(--accent);
    text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    margin-top: 90px;
    padding: 54px 0 28px;
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
}

.footer-inner,
.footer-bottom {
    width: min(var(--shell), calc(100% - var(--gutter) * 2));
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.footer-brand {
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.footer-lead p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    padding-top: 9px;
}

.footer-nav a {
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    line-height: 1.7;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    line-height: 1.8;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.footer-records {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 2px;
    color: var(--muted);
    font-size: 9px;
}

.footer-records a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-records a:hover {
    color: var(--warm);
}

.footer-bottom a {
    color: var(--faint);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--warm);
}

.footer-dot {
    margin: 0 5px;
    color: var(--line-strong);
}

/* ── 404 ────────────────────────────────────────────────── */
.not-found {
    max-width: 780px;
    padding: 158px 0 110px;
}

.not-found-code {
    margin-top: 20px;
    color: transparent;
    font-family: var(--serif);
    font-size: clamp(100px, 17vw, 188px);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 0.9;
    -webkit-text-stroke: 1.4px var(--line-strong);
}

.not-found h1 {
    margin-top: 10px;
    color: var(--ink-strong);
    font-family: var(--serif);
    font-size: clamp(40px, 5.2vw, 62px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.not-found-desc {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 2;
}

.not-found-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(480px, 100%);
    margin-top: 34px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-strong);
}

.not-found-search input {
    flex: 1;
    width: 100%;
    padding: 6px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.not-found-search input::placeholder {
    color: var(--faint);
}

.not-found-search button {
    flex: 0 0 auto;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.not-found-search button:hover {
    border-color: var(--warm);
    color: var(--warm);
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    margin-top: 28px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--ink-strong);
    color: var(--bg);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    transition: opacity 0.2s ease;
}

.button-link:hover {
    opacity: 0.82;
}

/* ── Back to top ────────────────────────────────────────── */
.to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
    color: var(--muted);
    opacity: 0;
    pointer-events: none;
    transform: translateY(9px);
    transition:
        opacity 0.24s ease,
        transform 0.24s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover {
    border-color: var(--warm);
    color: var(--warm);
}

.to-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

/* ── Reveal motion ──────────────────────────────────────── */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.72s ease,
        transform 0.72s cubic-bezier(0.22, 0.72, 0.24, 1);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

html[data-theme="dark"] .post-body pre {
    border-color: rgba(255, 255, 255, 0.06);
    background: #100f0d;
}

html[data-theme="dark"] .post-body img {
    opacity: 0.92;
}

html[data-theme="dark"] .post-body pre,
html[data-theme="dark"] .post-body pre code {
    color: #ded5c8;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1120px) {
    .article-layout {
        grid-template-columns: minmax(0, 780px);
    }

    .post-aside {
        display: none;
    }
}

@media (max-width: 980px) {
    :root {
        --gutter: 28px;
    }

    .site-header {
        padding: 15px 0;
    }

    .site-header.is-scrolled {
        padding: 9px 0;
    }

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

    .menu-toggle {
        display: grid;
        margin-left: -8px;
    }

    .brand {
        position: absolute;
        left: 50%;
        justify-self: auto;
        max-width: 62%;
        transform: translateX(-50%);
    }

    .brand-title {
        overflow: hidden;
        max-width: 100%;
        font-size: 24px;
        text-overflow: ellipsis;
    }

    .brand-sub {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .header-tools {
        margin-left: auto;
    }

    .reading-progress {
        bottom: -15px;
    }

    .hero {
        min-height: auto;
        padding: 126px 0 76px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .hero-copy {
        max-width: 660px;
    }

    .hero-title {
        font-size: clamp(44px, 7.8vw, 66px);
    }

    .hero-aside {
        justify-self: start;
        width: min(100%, 520px);
        padding: 28px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .echo-rings {
        top: 28%;
        right: -40px;
        left: auto;
        width: 290px;
        height: 290px;
        opacity: 0.42;
        transform: translateY(-50%);
    }

    .aside-label,
    .hero-quote,
    .hero-cite {
        max-width: 330px;
    }

    .hero-cite {
        text-align: left;
    }

    .scroll-cue {
        display: none;
    }

    .home-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 68px 0 96px;
    }

    .station {
        position: static;
    }

    .archive-grid {
        padding-bottom: 90px;
    }

    .year-group {
        grid-template-columns: 138px minmax(0, 1fr);
        gap: 34px;
    }

    .year-label {
        position: static;
    }

    .article-layout {
        padding: 118px 0 90px;
    }

    .site-footer {
        margin-top: 70px;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 20px;
    }

    .site-header {
        padding: 12px 0;
    }

    .site-header.is-scrolled {
        padding: 8px 0;
    }

    .brand-title {
        font-size: 22px;
    }

    .icon-button {
        width: 35px;
        height: 35px;
    }

    .icon-button svg {
        width: 17px;
        height: 17px;
    }

    .hero {
        padding: 112px 0 58px;
    }

    .hero-title {
        font-size: clamp(38px, 9.2vw, 58px);
        line-height: 1.26;
    }

    .hero-line-accent {
        margin-left: clamp(16px, 4vw, 38px);
    }

    .hero-desc {
        margin-top: 22px;
        font-size: 12.5px;
        line-height: 1.85;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 8px 12px;
        margin-top: 30px;
        font-size: 7.5px;
    }

    .hero-meta-line {
        width: 32px;
    }

    .hero-aside {
        padding-top: 24px;
    }

    .hero-quote {
        font-size: 20px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-bottom: 20px;
    }

    .section-head h2 {
        font-size: 38px;
    }

    .section-note {
        text-align: left;
    }

    .stream {
        margin-top: 22px;
        gap: 4px;
    }

    .stream-entry {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 17px;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .stream-day {
        font-size: 34px;
    }

    .stream-month {
        font-size: 7px;
        letter-spacing: 0.07em;
    }

    .stream-title {
        font-size: 23px;
        line-height: 1.45;
    }

    .stream-excerpt {
        font-size: 12.5px;
        line-height: 1.82;
    }

    .stream-meta {
        gap: 8px 14px;
        margin-top: 14px;
        font-size: 7.5px;
    }

    .station {
        padding: 22px;
        border-radius: 18px;
    }

    .page-header {
        padding: 116px 0 38px;
    }

    .page-header h1 {
        margin-top: 14px;
        font-size: clamp(48px, 12vw, 74px);
    }

    .page-desc {
        margin-top: 16px;
        font-size: 12.5px;
    }

    .page-meta {
        margin-top: 16px;
    }

    .year-group {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 34px 0;
    }

    .year-label {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .year-label h2 {
        font-size: 42px;
    }

    .year-label p {
        margin-top: 0;
    }

    .archive-row {
        grid-template-columns: 48px minmax(0, 1fr) 18px;
        gap: 12px;
        padding: 13px 4px;
    }

    .archive-row:first-child {
        padding-top: 4px;
    }

    .archive-row-cat {
        display: none;
    }

    .archive-row-title {
        font-size: 14px;
    }

    .archive-row:hover {
        padding-left: 10px;
    }

    .article-layout {
        padding: 104px 0 70px;
    }

    .post-detail {
        padding: 24px;
        border-radius: 18px;
    }

    .post-title {
        font-size: clamp(26px, 7vw, 33px);
        line-height: 1.42;
    }

    .post-meta {
        gap: 6px 13px;
        margin-top: 18px;
    }

    .post-body {
        margin-top: 28px;
        font-size: 15.5px;
        line-height: 1.98;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 19px;
    }

    .post-body pre {
        margin-right: -8px;
        margin-left: -8px;
        padding: 18px;
        border-radius: 10px;
        font-size: 11.5px;
    }

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

    .post-footer {
        margin-top: 36px;
    }

    .post-nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .post-nav-next {
        align-items: flex-start;
        text-align: left;
    }

    .comment-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .comment-children {
        margin-left: 8px;
        padding-left: 12px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 28px;
    }

    .footer-nav {
        padding-top: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-records {
        font-size: 9.5px;
    }

    .site-footer {
        padding: 38px 0 24px;
    }

    .not-found {
        padding: 124px 0 80px;
    }

    .not-found-code {
        font-size: clamp(94px, 28vw, 150px);
    }

    .search-overlay {
        padding-top: 12vh;
    }

    .search-close {
        top: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
    }

    .search-form input {
        font-size: 22px;
    }

    .to-top {
        right: 16px;
        bottom: 16px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 20px;
    }

    .header-tools {
        gap: 0;
    }

    .hero {
        padding-top: 104px;
    }

    .hero-title {
        font-size: clamp(32px, 9.8vw, 46px);
        letter-spacing: -0.05em;
    }

    .hero-kicker {
        margin-bottom: 24px;
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    .hero-line-accent {
        margin-left: 16px;
    }

    .hero-aside {
        width: 100%;
    }

    .echo-rings {
        right: -110px;
        width: 260px;
        height: 260px;
    }

    .stream-entry {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 13px;
        padding: 20px 12px;
    }

    .stream-day {
        font-size: 30px;
    }

    .stream-month {
        font-size: 6.5px;
        white-space: normal;
    }

    .stream-kicker {
        gap: 8px;
    }

    .stream-kind {
        font-size: 7.5px;
        letter-spacing: 0.14em;
    }

    .stream-title {
        font-size: 21px;
    }

    .stream-meta > * + *::before {
        display: none;
    }

    .station {
        padding: 18px;
    }

    .post-detail {
        padding: 20px;
    }

    .post-kicker-row .kicker {
        font-size: 8px;
        letter-spacing: 0.16em;
    }

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

    .post-meta {
        font-size: 7.5px;
    }

    .post-body {
        font-size: 15px;
    }

    .post-body blockquote {
        padding: 16px 18px;
    }

    .comments-head h2 {
        font-size: 24px;
    }

    .respond h3 {
        font-size: 20px;
    }

    .cancel-comment-reply {
        position: static;
        margin-top: 10px;
    }

    .not-found-links {
        gap: 12px 16px;
    }

    .footer-brand {
        font-size: 26px;
    }
}

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

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

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
