@charset "UTF-8";

:root {
    --paper: #f2eee6;
    --paper-deep: #e8e1d6;
    --surface: rgba(255, 255, 255, 0.56);
    --surface-strong: rgba(255, 255, 255, 0.74);
    --surface-solid: #fbf8f2;
    --glass-border: rgba(255, 255, 255, 0.7);
    --ink: #211f1b;
    --ink-soft: #5f5a52;
    --muted: #8c857b;
    --line: rgba(55, 49, 42, 0.12);
    --accent: #b9653d;
    --accent-soft: #e7c2a9;
    --sage: #74806c;
    --shadow: 0 28px 80px rgba(64, 52, 37, 0.12);
    --shadow-small: 0 12px 32px rgba(64, 52, 37, 0.09);
    --radius-xs: 12px;
    --radius-sm: 18px;
    --radius-md: 26px;
    --radius-lg: 36px;
    --font-sans: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
    --font-latin: "Avenir Next", "SF Pro Display", "Helvetica Neue", sans-serif;
    --page-width: 1240px;
}

body[data-theme="dark"] {
    --paper: #141614;
    --paper-deep: #1b1e1b;
    --surface: rgba(31, 35, 32, 0.58);
    --surface-strong: rgba(36, 41, 37, 0.78);
    --surface-solid: #202420;
    --glass-border: rgba(255, 255, 255, 0.1);
    --ink: #f0ede5;
    --ink-soft: #bbb8af;
    --muted: #898b84;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #dc8e67;
    --accent-soft: #6b4939;
    --sage: #96a28e;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    --shadow-small: 0 14px 38px rgba(0, 0, 0, 0.22);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: rgba(91, 82, 70, 0.35) transparent;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

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

button {
    color: inherit;
}

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

img,
svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.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;
}

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

.glass {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-small), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.ambient {
    position: fixed;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 32%),
        radial-gradient(circle at 75% 12%, rgba(255, 249, 225, 0.68), transparent 28%);
    content: "";
    opacity: 0.95;
    transition: opacity 0.5s ease;
}

body[data-theme="dark"] .ambient::before {
    background:
        linear-gradient(120deg, rgba(72, 83, 70, 0.2), transparent 35%),
        radial-gradient(circle at 75% 12%, rgba(124, 99, 67, 0.2), transparent 28%);
}

.ambient__orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.65;
    will-change: transform;
    animation: drift 18s ease-in-out infinite alternate;
}

.ambient__orb--peach {
    top: -18vw;
    right: -8vw;
    width: 54vw;
    height: 54vw;
    background: radial-gradient(circle at 38% 38%, rgba(242, 183, 141, 0.78), rgba(231, 166, 129, 0.18) 48%, transparent 72%);
}

.ambient__orb--sage {
    bottom: -28vw;
    left: -14vw;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle at 58% 45%, rgba(156, 172, 144, 0.48), rgba(142, 161, 137, 0.1) 52%, transparent 72%);
    animation-delay: -7s;
}

.ambient__orb--blue {
    top: 42%;
    left: 43%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(152, 171, 177, 0.28), transparent 70%);
    animation-delay: -11s;
}

body[data-theme="dark"] .ambient__orb {
    opacity: 0.34;
}

.ambient__grain {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
    opacity: 0.08;
    transform: rotate(8deg);
    pointer-events: none;
}

.cursor-light {
    position: fixed;
    z-index: -1;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 248, 221, 0.28), transparent 68%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.site-header {
    position: fixed;
    z-index: 40;
    top: 22px;
    left: 50%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(calc(100% - 48px), 1280px);
    min-height: 66px;
    padding: 8px 10px 8px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 40px rgba(61, 50, 36, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    transform: translateX(-50%);
    transition: top 0.35s ease, min-height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

body[data-theme="dark"] .site-header {
    background: rgba(27, 31, 28, 0.6);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled {
    top: 12px;
    min-height: 58px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-small), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 11px;
    width: max-content;
}

.brand__mark {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand__words {
    display: grid;
    gap: 1px;
}

.brand__words strong {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.brand__words small {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(57, 49, 40, 0.045);
}

.main-nav a {
    position: relative;
    padding: 9px 17px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: rgba(255, 255, 255, 0.64);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(54, 43, 31, 0.07);
}

.mobile-nav {
    display: none;
}

body[data-theme="dark"] .main-nav a:hover,
body[data-theme="dark"] .main-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
}

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

.icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
    color: var(--ink-soft);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.64);
    transform: translateY(-1px);
}

body[data-theme="dark"] .icon-button {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

.theme-toggle {
    position: relative;
}

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

body[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.account-pill:hover {
    box-shadow: 0 8px 20px rgba(43, 38, 31, 0.2);
    transform: translateY(-1px);
}

.account-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dca07e;
    box-shadow: 0 0 0 3px rgba(220, 160, 126, 0.16);
}

.account-menu {
    position: fixed;
    z-index: 55;
    top: 96px;
    right: max(24px, calc((100vw - var(--page-width)) / 2 + 18px));
    width: 248px;
    padding: 10px;
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.account-menu__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 9px 13px;
    border-bottom: 1px solid var(--line);
}

.account-menu__identity > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.account-menu__identity strong {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
}

.account-menu__identity small {
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 39px;
    padding: 0 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 10px;
    text-align: left;
    cursor: pointer;
}

.account-menu__item:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--ink);
}

main {
    overflow: clip;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
    width: min(calc(100% - 64px), var(--page-width));
    min-height: 100svh;
    margin: 0 auto;
    padding: 142px 0 105px;
}

.hero__copy {
    padding-top: 12px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 21px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.21em;
    text-transform: uppercase;
}

.eyebrow > span {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.hero__title {
    max-width: 720px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(54px, 6.2vw, 92px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.065em;
}

.hero__title em {
    position: relative;
    color: var(--accent);
    font-style: normal;
}

.hero__title em::after {
    position: absolute;
    right: 1%;
    bottom: -5px;
    width: 42%;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
    opacity: 0.15;
    transform: rotate(-2deg);
    filter: blur(2px);
}

.hero__lead {
    max-width: 520px;
    margin: 32px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.02em;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-top: 39px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, opacity 0.24s ease;
}

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

.button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform 0.24s ease;
}

.button:hover svg {
    transform: translateX(3px);
}

.button--dark {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 10px 28px rgba(47, 41, 34, 0.15);
}

body[data-theme="dark"] .button--dark {
    background: #f0ede5;
    color: #1b1c19;
}

.button--dark:hover {
    box-shadow: 0 14px 34px rgba(47, 41, 34, 0.22);
}

.button--glass {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.4);
    color: var(--ink);
}

.button--wide {
    width: 100%;
}

.button.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.button.is-loading span::after {
    content: "…";
    animation: blink 0.8s infinite;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.text-link span {
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.25s ease;
}

.text-link:hover span {
    transform: translate(2px, 2px);
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 55px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.hero__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__meta span + span::before {
    width: 3px;
    height: 3px;
    margin-right: 13px;
    border-radius: 50%;
    background: var(--muted);
    content: "";
    opacity: 0.5;
}

.hero__meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #729b6f;
    box-shadow: 0 0 0 4px rgba(114, 155, 111, 0.12);
}

.hero__visual {
    position: relative;
    justify-self: end;
    width: min(100%, 490px);
    perspective: 1200px;
}

.portrait-card {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.23);
    box-shadow: 0 40px 100px rgba(61, 48, 35, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.portrait-card__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.79;
    border-radius: 29px;
    background: #7f756a;
}

.portrait-card__frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.025);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card:hover .portrait-card__frame > img {
    transform: scale(1.065);
}

.portrait-card__wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(20, 19, 17, 0.5), transparent 33%),
        linear-gradient(140deg, rgba(255, 242, 218, 0.12), transparent 30%);
    pointer-events: none;
}

.portrait-card__caption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-latin);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.photo-note {
    position: absolute;
    z-index: 3;
    border-radius: 18px;
    background: rgba(248, 244, 235, 0.72);
    color: #28251f;
    box-shadow: 0 18px 45px rgba(47, 39, 29, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transform: translateZ(34px);
}

.photo-note--top {
    top: 10%;
    left: -19%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 178px;
    padding: 16px;
}

.photo-note__index {
    color: #a65d3e;
    font-family: var(--font-latin);
    font-size: 9px;
    font-weight: 700;
}

.photo-note p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.55;
}

.photo-note--bottom {
    right: -14%;
    bottom: 11%;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 225px;
    padding: 13px 17px;
}

.photo-note--bottom span {
    display: block;
    margin-bottom: 4px;
    color: #82796f;
    font-family: var(--font-latin);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.photo-note--bottom strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 31px;
    height: 24px;
}

.waveform i {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: #93705a;
    animation: wave 1.15s ease-in-out infinite alternate;
}

.waveform i:nth-child(1),
.waveform i:nth-child(8) { height: 5px; animation-delay: -0.2s; }
.waveform i:nth-child(2),
.waveform i:nth-child(7) { height: 12px; animation-delay: -0.6s; }
.waveform i:nth-child(3),
.waveform i:nth-child(6) { height: 20px; animation-delay: -0.3s; }
.waveform i:nth-child(4) { height: 9px; animation-delay: -0.8s; }
.waveform i:nth-child(5) { height: 15px; animation-delay: -0.1s; }

.visual-note {
    margin: 22px 14px 0 auto;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-align: right;
}

.running-line {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: rgba(54, 49, 42, 0.42);
    white-space: nowrap;
}

body[data-theme="dark"] .running-line {
    color: rgba(255, 255, 255, 0.28);
}

.running-line > div {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.running-line span {
    font-family: var(--font-latin);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
}

.running-line i {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0 36px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.section {
    width: min(calc(100% - 64px), var(--page-width));
    margin: 0 auto;
    padding: 120px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 44px;
}

.section-heading .eyebrow {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 55px);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.section-heading__aside {
    margin: 0 0 6px;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

.section-heading__tools {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 15px;
}

.section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.22s ease, color 0.22s ease;
}

.section-all-link:hover {
    color: var(--ink);
    transform: translateY(-2px);
}

.section-all-link span {
    color: var(--accent);
}

.writing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
    gap: 22px;
}

.post-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.post-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.content-empty {
    display: grid;
    min-height: 510px;
    padding: 40px;
    place-content: center;
    border-radius: var(--radius-md);
    text-align: center;
}

.content-empty > span {
    display: grid;
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 21px;
    background: rgba(32, 31, 27, 0.05);
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 12px;
}

.content-empty h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 27px;
    font-weight: 500;
}

.content-empty p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.cover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--paper-deep);
}

.cover__image {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover::before,
.cover::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.cover__number {
    position: absolute;
    z-index: 2;
    top: 19px;
    left: 21px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-latin);
    font-size: 9px;
    letter-spacing: 0.16em;
}

.cover__word {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-latin);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.cover--sunrise {
    background:
        radial-gradient(circle at 68% 29%, rgba(255, 246, 213, 0.95), transparent 6%),
        linear-gradient(145deg, #5b696b 0%, #8c8e80 34%, #d4ab84 68%, #ab6752 100%);
}

.cover--sunrise::before {
    top: 0;
    right: 14%;
    width: 34%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 241, 203, 0.52), transparent 72%);
    transform: skewX(-15deg);
    filter: blur(18px);
}

.cover--sunrise::after {
    right: -8%;
    bottom: -35%;
    width: 85%;
    height: 87%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 57, 53, 0.72), transparent 66%);
}

.cover--sage {
    background:
        linear-gradient(145deg, rgba(237, 229, 209, 0.9), transparent 55%),
        linear-gradient(120deg, #6d786a, #a8ad8c 50%, #c5b99d);
}

.cover--sage::before {
    top: -35%;
    left: 10%;
    width: 70%;
    height: 140%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 30px 0 0 rgba(255, 255, 255, 0.08), 60px 0 0 rgba(255, 255, 255, 0.06);
}

.cover--film {
    background:
        linear-gradient(90deg, rgba(42, 41, 37, 0.28), transparent 20%, transparent 80%, rgba(42, 41, 37, 0.28)),
        linear-gradient(135deg, #5e4739, #a77f62 45%, #d8c29e 70%, #7c7667);
}

.cover--film::before {
    inset: 12px;
    border: 1px solid rgba(255, 245, 226, 0.24);
}

.cover--film::after {
    right: 22%;
    bottom: 13%;
    width: 50px;
    height: 80px;
    border-radius: 40% 40% 10% 10%;
    background: rgba(53, 48, 41, 0.56);
    filter: blur(8px);
}

.cover--night {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 244, 202, 0.76), transparent 3%),
        radial-gradient(circle at 54% 16%, rgba(255, 244, 202, 0.5), transparent 2%),
        linear-gradient(160deg, #263237, #4b5c60 52%, #817866);
}

.cover--night::before {
    right: -20%;
    bottom: -40%;
    width: 130%;
    height: 90%;
    border-radius: 50%;
    background: rgba(29, 40, 44, 0.7);
    transform: rotate(-6deg);
}

.cover--night::after {
    bottom: 24%;
    left: 22%;
    width: 56%;
    height: 1px;
    background: rgba(245, 231, 191, 0.4);
    box-shadow: 0 -7px 20px rgba(245, 231, 191, 0.3);
}

.post-card--featured .cover {
    min-height: 380px;
}

.post-card__body {
    position: relative;
    padding: 28px 30px 32px;
}

.post-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.post-card h3 {
    max-width: 520px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(25px, 2.4vw, 35px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.035em;
}

.post-card p {
    max-width: 520px;
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

.round-arrow {
    position: absolute;
    right: 28px;
    bottom: 26px;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    font-size: 19px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.post-card:hover .round-arrow {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(8deg);
}

.side-stack {
    display: grid;
    gap: 16px;
}

.post-card--compact {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 181px;
}

.post-card--compact .cover {
    min-height: 100%;
    border-radius: 0;
}

.post-card--compact .post-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 21px 23px;
}

.post-card--compact .post-card__topline {
    margin-bottom: 10px;
    font-size: 8px;
}

.post-card--compact h3 {
    font-size: 21px;
    line-height: 1.35;
}

.post-card--compact p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.discovery-row {
    display: grid;
    grid-template-columns: 1.03fr 1fr 0.92fr;
    gap: 18px;
    margin-top: 18px;
}

.discovery-card,
.now-card,
.capsule-card {
    min-height: 181px;
    border-radius: var(--radius-md);
}

.discovery-card,
.capsule-card {
    width: 100%;
    padding: 25px;
    text-align: left;
    cursor: pointer;
}

.discovery-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    overflow: hidden;
}

.discovery-card::after {
    position: absolute;
    right: -65px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 111, 73, 0.16), transparent 66%);
    content: "";
}

.discovery-card__icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: var(--ink);
    color: var(--paper);
}

.discovery-card__icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.discovery-card small,
.capsule-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.16em;
}

.discovery-card strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
}

.discovery-card__arrow {
    position: absolute;
    top: 23px;
    right: 24px;
    color: var(--muted);
    font-size: 18px;
}

.now-card {
    padding: 22px 24px;
}

.now-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.live-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7ba576;
    box-shadow: 0 0 0 4px rgba(123, 165, 118, 0.12);
    animation: pulse 2.2s ease-in-out infinite;
}

.now-list {
    display: grid;
    gap: 11px;
    padding-top: 15px;
}

.now-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: start;
    gap: 12px;
}

.now-list span {
    padding-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.now-list strong {
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

.capsule-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 55%),
        var(--surface);
}

.capsule-card::before {
    position: absolute;
    top: -60px;
    right: -30px;
    width: 170px;
    height: 170px;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
}

.capsule-card__seal {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px dashed rgba(112, 87, 66, 0.3);
    border-radius: 50%;
    color: var(--accent);
}

.capsule-card__seal svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.capsule-card__body {
    position: relative;
    z-index: 1;
}

.capsule-card__body strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.capsule-card__body > span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

.capsule-card__stamp {
    position: absolute;
    top: 17px;
    right: 18px;
    padding: 7px;
    border: 1px solid rgba(137, 92, 63, 0.22);
    border-radius: 7px;
    color: rgba(137, 92, 63, 0.64);
    font-family: var(--font-latin);
    font-size: 8px;
    line-height: 1.35;
    text-align: center;
    transform: rotate(5deg);
}

.capsule-card.is-locked {
    animation: lockShake 0.5s ease;
}

.about {
    padding-top: 80px;
    padding-bottom: 125px;
}

.about-card {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 70px;
    padding: clamp(38px, 5vw, 72px);
    border-radius: var(--radius-lg);
}

.about-card__intro h2 {
    max-width: 570px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 500;
    line-height: 1.24;
    letter-spacing: -0.055em;
}

.about-card__intro h2 em {
    color: var(--accent);
    font-style: normal;
}

.about-card__intro > p:not(.eyebrow) {
    max-width: 560px;
    margin: 27px 0 20px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 2;
}

.about-card__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: center;
    gap: 24px 12px;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.fact strong {
    font-family: var(--font-serif);
    font-size: 39px;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.fact span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.fact--wide {
    grid-column: 1 / -1;
    padding-top: 9px;
    border-bottom: 0;
}

.fact--wide .fact__label {
    font-family: var(--font-latin);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.fact blockquote {
    margin: 3px 0 0;
    font-family: var(--font-serif);
    font-size: 23px;
    line-height: 1.55;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 35px;
    width: min(calc(100% - 64px), var(--page-width));
    margin: 0 auto;
    padding: 44px 0 62px;
    border-top: 1px solid var(--line);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand__mark--footer {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.site-footer__brand strong {
    font-family: var(--font-serif);
    font-size: 15px;
    letter-spacing: 0.08em;
}

.site-footer__brand p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-footer__links a,
.site-footer__links button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-size: 11px;
    cursor: pointer;
}

.site-footer__links a:hover,
.site-footer__links button:hover {
    color: var(--ink);
}

.site-footer__fine {
    grid-column: 1 / -1;
    margin: 15px 0 0;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    letter-spacing: 0.13em;
}

/* Article overlay */
.article-view {
    position: fixed;
    z-index: 80;
    inset: 0;
    overflow: hidden;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.55s;
}

.article-view.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.article-view::before {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 78% 0%, rgba(235, 195, 166, 0.28), transparent 30%),
        radial-gradient(circle at 15% 55%, rgba(164, 176, 154, 0.17), transparent 30%);
    content: "";
    pointer-events: none;
}

body[data-theme="dark"] .article-view::before {
    background:
        radial-gradient(circle at 78% 0%, rgba(133, 94, 68, 0.17), transparent 30%),
        radial-gradient(circle at 15% 55%, rgba(92, 109, 92, 0.12), transparent 30%);
}

.reading-progress {
    position: fixed;
    z-index: 95;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: transparent;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(185, 101, 61, 0.4);
    transition: width 0.1s linear;
}

.article-header {
    position: fixed;
    z-index: 90;
    top: 18px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 46px), 1180px);
    height: 58px;
    padding: 0 10px 0 14px;
    border-radius: 20px;
    transform: translateX(-50%);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 12px;
    cursor: pointer;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.36);
}

.back-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.article-header__brand {
    position: absolute;
    left: 50%;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
}

.article-header__brand span {
    margin-left: 8px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.mini-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #b3775d;
    color: #fff8ef;
    font-size: 10px;
    font-weight: 650;
}

.article-header .icon-button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
}

.article-header .mini-avatar {
    width: 31px;
    height: 31px;
}

.article-scroll {
    position: relative;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.article {
    width: min(calc(100% - 64px), 980px);
    margin: 0 auto;
    padding: 108px 0 90px;
}

.article__cover {
    width: 100%;
    height: clamp(310px, 46vw, 540px);
    margin-bottom: 58px;
    border-radius: 31px;
    box-shadow: var(--shadow);
}

.article__cover::before {
    right: 16%;
    width: 25%;
    height: 80%;
}

.article__cover-kicker {
    position: absolute;
    z-index: 3;
    top: 28px;
    left: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-latin);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.article__cover-number {
    position: absolute;
    z-index: 3;
    right: 30px;
    bottom: 25px;
    color: rgba(255, 255, 255, 0.64);
    font-family: var(--font-latin);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.article__header {
    width: min(100%, 760px);
    margin: 0 auto 53px;
}

.article__header .eyebrow {
    margin-bottom: 18px;
}

.article__header h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(42px, 5.8vw, 70px);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.055em;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-chip > span:last-child {
    display: grid;
}

.author-chip strong {
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
}

.author-chip small {
    margin-top: 1px;
    font-size: 8px;
}

.note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 9px;
    cursor: pointer;
}

.note-toggle__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.note-toggle.is-active {
    border-color: rgba(185, 101, 61, 0.32);
    background: rgba(185, 101, 61, 0.09);
    color: var(--accent);
}

.article__body {
    width: min(100%, 680px);
    margin: 0 auto;
    color: #393630;
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 2.05;
    letter-spacing: 0.02em;
}

body[data-theme="dark"] .article__body {
    color: #d8d5cd;
}

.article__body > p {
    margin: 0 0 1.55em;
}

.article__body > p:first-child::first-letter {
    float: left;
    margin: 0.13em 0.12em 0 0;
    color: var(--accent);
    font-size: 3.3em;
    font-weight: 500;
    line-height: 0.8;
}

.article-loading {
    display: grid;
    gap: 12px;
    padding: 24px 0;
}

.article-loading span {
    display: block;
    width: 100%;
    height: 15px;
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(104, 94, 81, 0.06), rgba(255, 255, 255, 0.42), rgba(104, 94, 81, 0.06));
    background-size: 200% 100%;
    animation: commentShimmer 1.6s linear infinite;
}

.article-loading span:nth-child(2) { width: 92%; }
.article-loading span:nth-child(3) { width: 96%; }
.article-loading span:nth-child(4) { width: 58%; }

.article-load-error {
    padding: 60px 20px;
    text-align: center;
}

.article-load-error p {
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 13px;
}

.article__body h2 {
    margin: 2.2em 0 0.8em;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.article__body blockquote {
    position: relative;
    margin: 2.2em 0;
    padding: 27px 30px 27px 47px;
    border: 1px solid var(--glass-border);
    border-radius: 21px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--ink);
    font-size: 21px;
    line-height: 1.75;
}

.article__body blockquote::before {
    position: absolute;
    top: 12px;
    left: 17px;
    color: var(--accent);
    content: "“";
    font-size: 44px;
    opacity: 0.45;
}

.article__body .note-marker {
    display: inline-grid;
    width: 19px;
    height: 19px;
    margin: 0 3px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(185, 101, 61, 0.36);
    border-radius: 50%;
    background: rgba(185, 101, 61, 0.08);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 8px;
    vertical-align: middle;
    cursor: pointer;
}

.article__body img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 18px;
    box-shadow: var(--shadow-small);
}

.article__body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article__body ul,
.article__body ol {
    padding-left: 1.5em;
}

.article__body table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 12px;
}

.article__body th,
.article__body td {
    padding: 9px 10px;
    border: 1px solid var(--line);
    text-align: left;
}

.article__body .ql-align-center {
    text-align: center;
}

.article__body .ql-align-right {
    text-align: right;
}

.article__body .ql-align-justify {
    text-align: justify;
}

.article__body .ql-indent-1 { padding-left: 1.5em; }
.article__body .ql-indent-2 { padding-left: 3em; }
.article__body .ql-indent-3 { padding-left: 4.5em; }
.article__body .ql-indent-4 { padding-left: 6em; }

.author-note {
    max-height: 0;
    margin: 0;
    padding: 0 20px;
    overflow: hidden;
    border: 0 solid var(--line);
    border-radius: 16px;
    background: rgba(185, 101, 61, 0.06);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.75;
    opacity: 0;
    transition: max-height 0.45s ease, padding 0.35s ease, margin 0.35s ease, opacity 0.35s ease, border-width 0.35s ease;
}

.author-note span {
    color: var(--accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.notes-visible .author-note,
.author-note.is-open {
    max-height: 180px;
    margin: -0.7em 0 1.7em;
    padding: 15px 20px 17px;
    border-width: 1px;
    opacity: 1;
}

.article__end {
    width: min(100%, 680px);
    margin: 75px auto 0;
    padding: 40px 0 70px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.article__end > span {
    color: var(--accent);
    font-family: var(--font-latin);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.article__end p {
    margin: 16px 0 25px;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 14px;
}

.end-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.end-actions .button {
    min-height: 43px;
    padding: 0 17px;
    font-size: 11px;
}

.comments-section {
    width: min(100%, 760px);
    margin: 0 auto;
    padding-top: 62px;
}

.comments-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.comments-heading .eyebrow {
    margin-bottom: 10px;
}

.comments-heading h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.comment-count {
    color: var(--muted);
    font-size: 10px;
}

.comment-composer {
    margin-bottom: 35px;
    border-radius: 22px;
}

.composer-locked {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 21px;
}

.composer-locked__icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--ink);
    color: var(--paper);
}

.composer-locked__icon svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.composer-locked > div {
    flex: 1;
}

.composer-locked strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
}

.composer-locked p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.composer-locked .button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 10px;
}

.composer-form {
    padding: 20px;
}

.composer-form__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 10px;
}

.composer-form__top .mini-avatar {
    width: 31px;
    height: 31px;
}

.composer-form__top strong {
    color: var(--ink-soft);
}

.composer-form textarea {
    display: block;
    width: 100%;
    min-height: 104px;
    padding: 14px 15px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(255, 255, 255, 0.32);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.composer-form textarea:focus {
    border-color: rgba(185, 101, 61, 0.45);
    box-shadow: 0 0 0 4px rgba(185, 101, 61, 0.08);
}

.composer-form textarea::placeholder {
    color: var(--muted);
}

.composer-form__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    color: var(--muted);
    font-size: 9px;
}

.composer-form .button {
    min-height: 40px;
    padding: 0 17px;
    font-size: 10px;
}

.comment-list {
    display: grid;
}

.comments-loading {
    display: grid;
    gap: 10px;
    padding: 21px 0;
    border-top: 1px solid var(--line);
}

.comments-loading span {
    display: block;
    width: 100%;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(110, 100, 88, 0.05), rgba(255, 255, 255, 0.36), rgba(110, 100, 88, 0.05));
    background-size: 200% 100%;
    animation: commentShimmer 1.6s linear infinite;
}

.comments-loading span:nth-child(2) {
    width: 82%;
}

.comments-loading span:nth-child(3) {
    width: 64%;
}

.comments-empty,
.comments-error {
    padding: 35px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 13px;
    text-align: center;
}

.comments-error {
    color: var(--accent);
}

.comment {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.comment__avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 13px;
}

.comment__avatar--one {
    background: #d8b39d;
    color: #644636;
}

.comment__avatar--two {
    background: #adbbaa;
    color: #405043;
}

.comment__avatar--three {
    background: #32332f;
    color: #f0e9dd;
}

.comment__top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 23px;
}

.comment__top strong {
    font-size: 11px;
    font-weight: 650;
}

.comment__top > span {
    color: var(--muted);
    font-size: 9px;
}

.pending-badge {
    margin-left: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(180, 131, 62, 0.12);
    color: #a47430;
    font-size: 7px;
    font-weight: 600;
}

.author-badge {
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(185, 101, 61, 0.12);
    color: var(--accent);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.comment__main p {
    max-width: 660px;
    margin: 7px 0 8px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.8;
}

.comment__reply {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 9px;
    cursor: pointer;
}

.comment__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment__delete {
    padding: 0;
    border: 0;
    background: none;
    color: #a95c4d;
    font-size: 9px;
    cursor: pointer;
}

.comment__delete:disabled {
    opacity: 0.45;
    cursor: wait;
}

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

/* Authentication modal */
.modal {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 30, 26, 0.36);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.auth-sheet {
    position: relative;
    width: min(100%, 430px);
    padding: 36px;
    border-radius: 31px;
    background: rgba(250, 247, 240, 0.88);
    color: #25221e;
    box-shadow: 0 32px 90px rgba(31, 26, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .auth-sheet {
    transform: none;
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(48, 43, 36, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    color: #746e65;
    font-size: 18px;
    cursor: pointer;
}

.auth-sheet__mark {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 15px;
    background: #25221e;
    color: #f7f1e7;
    font-family: var(--font-serif);
    font-size: 21px;
}

.auth-sheet .eyebrow {
    margin-bottom: 10px;
    color: #8e877c;
}

.auth-sheet h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.045em;
}

.auth-sheet__lead {
    margin: 13px 0 25px;
    color: #79736a;
    font-size: 11px;
    line-height: 1.8;
}

.auth-step > label {
    display: block;
    margin-bottom: 8px;
    color: #5c5750;
    font-size: 10px;
    font-weight: 600;
}

.auth-step > label strong {
    color: #2e2a25;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 51px;
    padding: 0 15px;
    border: 1px solid rgba(45, 40, 33, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-shell:focus-within {
    border-color: rgba(174, 96, 61, 0.42);
    box-shadow: 0 0 0 4px rgba(174, 96, 61, 0.08);
}

.input-shell svg {
    width: 18px;
    fill: none;
    stroke: #8a8278;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.input-shell input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: #292620;
    font-size: 13px;
}

.input-shell input::placeholder,
.otp-shell input::placeholder {
    color: #a59d93;
}

.form-error {
    min-height: 17px;
    margin: 7px 0 4px;
    color: #b4513c;
    font-size: 9px;
}

.auth-sheet .button--dark {
    background: #282521;
    color: #f7f2e9;
}

.auth-sheet .button--dark:hover {
    background: #191816;
}

.auth-back {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #8a8278;
    font-size: 9px;
    cursor: pointer;
}

.otp-shell {
    margin-top: 8px;
}

.otp-shell input {
    width: 100%;
    height: 63px;
    padding: 0 20px;
    border: 1px solid rgba(45, 40, 33, 0.12);
    border-radius: 16px;
    outline: 0;
    background: rgba(255, 255, 255, 0.55);
    color: #292620;
    font-family: var(--font-latin);
    font-size: 29px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-align: center;
}

.otp-shell input:focus {
    border-color: rgba(174, 96, 61, 0.42);
    box-shadow: 0 0 0 4px rgba(174, 96, 61, 0.08);
}

.demo-code {
    margin: 10px 0 9px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(174, 96, 61, 0.07);
    color: #8c6d5d;
    font-size: 9px;
    text-align: center;
}

.demo-code strong {
    color: #a35b3d;
    letter-spacing: 0.12em;
}

.resend-code {
    display: block;
    margin: 14px auto 0;
    padding: 0;
    border: 0;
    background: none;
    color: #8f887e;
    font-size: 9px;
    cursor: pointer;
}

.resend-code:disabled {
    cursor: default;
}

.auth-sheet__fine {
    margin: 20px 0 0;
    color: #9c958c;
    font-size: 8px;
    line-height: 1.6;
    text-align: center;
}

.selection-bubble {
    position: fixed;
    z-index: 110;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.selection-bubble.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
    transition-delay: 0s;
}

.selection-bubble button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: #292723;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    color: #f7f2e9;
    font-size: 9px;
    cursor: pointer;
}

.selection-bubble button span {
    color: #d79574;
    font-family: var(--font-serif);
    font-size: 17px;
}

.toast {
    position: fixed;
    z-index: 150;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 40px);
    padding: 11px 17px 11px 11px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 10px;
    opacity: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.modal.is-open ~ .toast {
    top: max(18px, env(safe-area-inset-top));
    bottom: auto;
    transform: translate(-50%, -10px);
}

.modal.is-open ~ .toast.is-visible {
    transform: translate(-50%, 0);
}

.toast__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes drift {
    0% { transform: translate3d(-2%, -1%, 0) scale(1); }
    50% { transform: translate3d(3%, 2%, 0) scale(1.04); }
    100% { transform: translate3d(-1%, 4%, 0) scale(0.98); }
}

@keyframes wave {
    from { transform: scaleY(0.5); opacity: 0.55; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 7px rgba(123, 165, 118, 0.04); }
}

@keyframes blink {
    50% { opacity: 0.2; }
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-1deg) translateX(-3px); }
    50% { transform: rotate(1deg) translateX(3px); }
    75% { transform: rotate(-0.5deg); }
}

@keyframes commentShimmer {
    to { background-position: -200% 0; }
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
        gap: 50px;
    }

    .hero__title {
        font-size: clamp(50px, 6.4vw, 76px);
    }

    .photo-note--top {
        left: -7%;
    }

    .photo-note--bottom {
        right: -4%;
    }

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

    .side-stack {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .post-card--compact .cover {
        min-height: 160px;
    }

    .discovery-row {
        grid-template-columns: 1fr 1fr;
    }

    .capsule-card {
        grid-column: 1 / -1;
        min-height: 140px;
    }

    .about-card {
        gap: 45px;
    }
}

@media (max-width: 780px) {
    .site-header {
        top: 12px;
        grid-template-columns: 1fr auto;
        width: calc(100% - 24px);
        min-height: 59px;
        padding-left: 13px;
        border-radius: 19px;
    }

    .brand__mark {
        width: 35px;
        height: 35px;
        border-radius: 11px;
        font-size: 17px;
    }

    .brand__words strong {
        font-size: 14px;
    }

    .main-nav {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        z-index: 60;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 50%;
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 6px;
        border: 1px solid var(--glass-border);
        border-radius: 999px;
        background: var(--surface-strong);
        box-shadow: var(--shadow);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        transform: translateX(-50%);
    }

    .mobile-nav a {
        min-width: 64px;
        padding: 10px 14px;
        border-radius: 999px;
        color: var(--ink-soft);
        font-size: 12px;
        font-weight: 500;
        text-align: center;
        transition: color 0.25s ease, background 0.25s ease;
    }

    .mobile-nav a.is-active {
        background: rgba(255, 255, 255, 0.64);
        color: var(--ink);
        box-shadow: 0 4px 14px rgba(54, 43, 31, 0.07);
    }

    body[data-theme="dark"] .mobile-nav a.is-active {
        background: rgba(255, 255, 255, 0.08);
    }

    .header-actions {
        grid-column: 2;
    }

    .account-pill {
        height: 38px;
        padding: 0 14px;
    }

    .account-menu {
        top: 83px;
        right: 12px;
    }

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

    .hero {
        grid-template-columns: 1fr;
        gap: 64px;
        width: calc(100% - 40px);
        padding: 124px 0 78px;
    }

    .hero__title {
        font-size: clamp(46px, 13vw, 68px);
        letter-spacing: -0.07em;
    }

    .hero__lead {
        margin-top: 25px;
        font-size: 14px;
    }

    .hero__actions {
        margin-top: 30px;
    }

    .hero__meta {
        flex-wrap: wrap;
        gap: 10px 15px;
        margin-top: 38px;
    }

    .hero__visual {
        justify-self: center;
        width: min(88vw, 460px);
        padding: 0 8px;
    }

    .portrait-card {
        border-radius: 31px;
    }

    .portrait-card__frame {
        border-radius: 23px;
    }

    .photo-note--top {
        left: -9%;
    }

    .photo-note--bottom {
        right: -6%;
    }

    .visual-note {
        margin-top: 14px;
    }

    .section {
        width: calc(100% - 40px);
        padding: 84px 0;
    }

    .section-heading {
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .section-heading__aside {
        display: none;
    }

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

    .post-card--featured .cover {
        min-height: 270px;
    }

    .post-card__body {
        padding: 23px 23px 28px;
    }

    .post-card h3 {
        font-size: 27px;
    }

    .round-arrow {
        right: 20px;
        bottom: 20px;
        width: 37px;
        height: 37px;
    }

    .side-stack {
        grid-template-columns: 1fr;
    }

    .post-card--compact {
        grid-template-columns: 40% 60%;
        min-height: 170px;
    }

    .post-card--compact .cover {
        min-height: 100%;
    }

    .discovery-row {
        grid-template-columns: 1fr;
    }

    .capsule-card {
        grid-column: auto;
    }

    .about {
        padding-top: 55px;
        padding-bottom: 92px;
    }

    .about-card {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 31px 25px;
        border-radius: 28px;
    }

    .about-card__intro h2 {
        font-size: 42px;
    }

    .about-card__facts {
        gap: 20px 8px;
    }

    .fact strong {
        font-size: 32px;
    }

    .fact blockquote {
        font-size: 20px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        width: calc(100% - 40px);
        padding-bottom: 110px;
    }

    .site-footer__links {
        flex-wrap: wrap;
        gap: 17px 24px;
    }

    .article-header {
        top: 10px;
        width: calc(100% - 20px);
    }

    .article-header__brand span {
        display: none;
    }

    .article {
        width: calc(100% - 36px);
        padding-top: 91px;
    }

    .article__cover {
        height: 280px;
        margin-bottom: 39px;
        border-radius: 23px;
    }

    .article__header {
        margin-bottom: 40px;
    }

    .article__header h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .article__meta {
        flex-wrap: wrap;
        gap: 13px;
    }

    .note-toggle {
        align-self: flex-end;
        margin-left: auto;
    }

    .article__body {
        font-size: 16px;
        line-height: 2;
    }

    .article__body blockquote {
        margin-right: -6px;
        margin-left: -6px;
        padding: 23px 21px 23px 39px;
        font-size: 18px;
    }

    .end-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .composer-locked {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 18px;
    }

    .composer-locked > div {
        min-width: calc(100% - 58px);
    }

    .composer-locked .button {
        width: 100%;
        margin-top: 4px;
    }

    .modal {
        align-items: end;
        padding: 12px;
    }

    .auth-sheet {
        width: 100%;
        padding: 30px 23px max(27px, env(safe-area-inset-bottom));
        border-radius: 28px;
    }

    .auth-sheet h2 {
        font-size: 29px;
    }

    .cursor-light {
        display: none;
    }
}

@media (max-width: 430px) {
    .hero__title {
        font-size: 43px;
    }

    .hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__meta span:nth-child(2) {
        display: none;
    }

    .photo-note--top {
        top: 8%;
        left: -4%;
        width: 142px;
        padding: 12px;
    }

    .photo-note p {
        font-size: 12px;
    }

    .photo-note--bottom {
        right: -3%;
        min-width: 190px;
        padding: 11px 13px;
    }

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

    .post-card--compact .cover {
        min-height: 145px;
    }

    .article__header h1 {
        font-size: 37px;
    }

    .comments-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Archive */
.archive-main {
    width: min(calc(100% - 64px), var(--page-width));
    margin: 0 auto;
}

.archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: clamp(50px, 8vw, 120px);
    min-height: 88svh;
    padding: 150px 0 90px;
}

.archive-hero__copy h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(55px, 7vw, 96px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.07em;
}

.archive-hero__copy h1 em {
    color: var(--accent);
    font-style: normal;
}

.archive-hero__copy > p:not(.eyebrow) {
    max-width: 540px;
    margin: 30px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.95;
}

.archive-hero__actions {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-top: 35px;
}

.archive-index-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 29px;
    border-radius: 30px;
    transform: rotate(1.2deg);
}

.archive-index-card::after {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 128, 94, 0.18), transparent 68%);
    content: "";
}

.archive-index-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    letter-spacing: 0.16em;
}

.archive-index-card__top i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #78a06f;
    box-shadow: 0 0 0 4px rgba(120, 160, 111, 0.1);
}

.archive-index-card > strong {
    display: block;
    margin: 35px 0 2px;
    font-family: var(--font-serif);
    font-size: 105px;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.09em;
}

.archive-index-card > p {
    margin: 11px 0 28px;
    color: var(--muted);
    font-size: 10px;
}

.archive-index-card dl {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
    margin: 0;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.archive-index-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.archive-index-card dt,
.archive-index-card dd {
    margin: 0;
    font-size: 9px;
}

.archive-index-card dt {
    color: var(--muted);
}

.archive-index-card dd {
    color: var(--ink-soft);
    font-family: var(--font-latin);
}

.archive-index-card__watermark {
    position: absolute;
    right: 37px;
    bottom: 24px;
    color: rgba(45, 41, 35, 0.045);
    font-family: var(--font-serif);
    font-size: 140px;
    line-height: 1;
}

body[data-theme="dark"] .archive-index-card__watermark {
    color: rgba(255, 255, 255, 0.04);
}

.archive-section {
    padding: 35px 0 120px;
    scroll-margin-top: 100px;
}

.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 13px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.archive-filters {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.archive-filters a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 37px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.archive-filters a span {
    font-family: var(--font-latin);
    font-size: 7px;
}

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

.archive-filters a.is-active {
    background: var(--ink);
    color: var(--paper);
}

body[data-theme="dark"] .archive-filters a.is-active {
    background: #eee9df;
    color: #1b1c19;
}

.archive-search {
    display: flex;
    align-items: center;
    flex: 0 0 310px;
    gap: 8px;
    height: 40px;
    padding: 0 6px 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.33);
}

.archive-search > svg {
    width: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.archive-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 10px;
}

.archive-search input::placeholder {
    color: var(--muted);
}

.archive-search kbd {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
}

.archive-search button {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 8px;
    cursor: pointer;
}

.archive-result-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 4px 18px;
    color: var(--muted);
    font-size: 9px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.archive-card {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease;
}

.archive-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.archive-card__cover {
    position: relative;
    height: 205px;
}

.archive-card__number,
.archive-card__type,
.archive-card__read {
    position: absolute;
    z-index: 2;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-latin);
    font-size: 8px;
    letter-spacing: 0.13em;
}

.archive-card__number {
    top: 18px;
    left: 19px;
}

.archive-card__type {
    top: 18px;
    right: 19px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(34, 32, 27, 0.16);
    font-family: var(--font-sans);
    font-size: 7px;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

.archive-card__read {
    right: 20px;
    bottom: 17px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.archive-card:hover .archive-card__read {
    background: rgba(255, 255, 255, 0.23);
    transform: rotate(9deg);
}

.archive-card__body {
    display: grid;
    grid-template-columns: 43px 1fr;
    align-items: start;
    gap: 15px;
    min-height: 190px;
    padding: 22px;
}

.archive-card__date {
    display: grid;
    gap: 1px;
    padding-right: 12px;
    border-right: 1px solid var(--line);
}

.archive-card__date strong {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.archive-card__date span {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
}

.archive-card__body h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.archive-card__body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

.archive-pagination > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive-pagination a {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-soft);
    font-family: var(--font-latin);
    font-size: 9px;
    transition: background 0.2s ease, color 0.2s ease;
}

.archive-pagination a:hover,
.archive-pagination a.is-active {
    background: var(--ink);
    color: var(--paper);
}

.archive-pagination__arrow {
    font-size: 14px !important;
}

.archive-pagination__ellipsis {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 9px;
}

.archive-pagination__arrow.is-disabled {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    opacity: 0.36;
}

.archive-empty {
    display: grid;
    min-height: 390px;
    padding: 40px;
    place-content: center;
    border-radius: 28px;
    text-align: center;
}

.archive-empty > span {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    letter-spacing: 0.14em;
}

.archive-empty h2 {
    margin: 16px 0 0;
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 500;
}

.archive-empty p {
    margin: 10px 0 22px;
    color: var(--muted);
    font-size: 11px;
}

.archive-empty .button {
    justify-self: center;
}

.archive-about {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin-bottom: 120px;
    padding: 38px 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.archive-about__mark {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 28px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: 36px;
}

.archive-about h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.archive-about .eyebrow {
    margin-bottom: 11px;
}

/* Music sharing */
.music-share {
    padding-top: 35px;
}

.article-music {
    width: 100%;
    margin: 10px auto 0;
    padding: 30px 0 12px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 90px;
}

.article-music-bar {
    display: grid;
    grid-template-columns: 50px 42px minmax(150px, 1fr) 36px minmax(120px, 220px) 36px 42px auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 18px;
    transition: background 0.25s ease;
}

.article-music-bar__cover {
    display: grid;
    overflow: hidden;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #6f8174, #ca9677);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 19px;
}

.article-music-bar__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-music-bar__play {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    cursor: pointer;
}

.article-music-bar__meta {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.article-music-bar__meta small {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 6px;
    letter-spacing: 0.13em;
}

.article-music-bar__meta strong,
.article-music-bar__meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-music-bar__meta strong {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
}

.article-music-bar__meta span {
    color: var(--muted);
    font-size: 8px;
}

.article-music-bar__time {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
    text-align: center;
}

.article-music-bar__seek {
    width: 100%;
    height: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.article-music-bar__index {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
    text-align: center;
}

.article-music-bar__controls {
    display: flex;
    align-items: center;
    gap: 3px;
}

.article-music-bar__controls button {
    display: grid;
    width: 27px;
    height: 27px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    font-size: 14px;
    cursor: pointer;
}

.article-music-bar audio {
    display: none;
}

.article-music__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 22px;
}

.article-music__heading .eyebrow {
    margin-bottom: 11px;
}

.article-music__heading h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.article-music__heading > span {
    color: var(--muted);
    font-size: 8px;
}

.music-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    overflow: hidden;
    border-radius: 32px;
}

.music-stage__feature {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(250px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 28px;
}

.music-stage__art {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 241, 198, 0.8), transparent 25%),
        linear-gradient(145deg, #374644, #9e8370 48%, #d19c72);
    box-shadow: 0 20px 55px rgba(45, 37, 29, 0.2);
}

.music-stage__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-stage__art > span {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255, 250, 239, 0.82);
    font-family: var(--font-serif);
    font-size: 72px;
    transform: translate(-50%, -50%);
}

.music-stage__pulse {
    position: absolute;
    right: -30%;
    bottom: -35%;
    width: 120%;
    height: 70%;
    border-radius: 50%;
    background: rgba(34, 32, 27, 0.25);
    filter: blur(18px);
}

.music-stage__copy {
    min-width: 0;
}

.music-stage__label {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.music-stage__copy h3 {
    margin: 15px 0 5px;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.music-stage__copy > p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.music-stage__copy blockquote {
    margin: 23px 0 25px;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 12px;
    line-height: 1.8;
}

.music-stage__copy .button svg {
    width: 17px;
}

.music-stage__playlist {
    padding: 23px;
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.18);
}

.music-stage__playlist-head {
    display: flex;
    justify-content: space-between;
    padding: 0 6px 13px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
    letter-spacing: 0.15em;
}

.music-track {
    display: grid;
    grid-template-columns: 25px 38px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 62px;
    padding: 7px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 11px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.music-track:hover,
.music-track.is-selected {
    background: rgba(255, 255, 255, 0.38);
}

.music-track__number {
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
}

.music-track__disc {
    display: grid;
    overflow: hidden;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #718174, #c79878);
    color: #fff;
    font-family: var(--font-serif);
}

.music-track__disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-track__meta {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.music-track__meta strong {
    overflow: hidden;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-track__meta small {
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-track__play {
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

.music-track.is-playing .music-track__play {
    color: var(--accent);
}

.music-mini-player {
    position: fixed;
    z-index: 110;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(190px, 0.65fr) auto minmax(260px, 1fr) 34px;
    align-items: center;
    gap: 20px;
    width: min(calc(100% - 40px), 1040px);
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: 0 24px 70px rgba(30, 26, 21, 0.24);
}

.article-view.is-open ~ .music-mini-player {
    bottom: 20px;
}

.music-mini-player__track {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.music-mini-cover {
    display: grid;
    overflow: hidden;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #6f8174, #ce9e7f);
    color: #fff;
    font-family: var(--font-serif);
}

.music-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-mini-player__track > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.music-mini-player__track strong,
.music-mini-player__track small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-mini-player__track strong {
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 600;
}

.music-mini-player__track small {
    color: var(--muted);
    font-size: 8px;
}

.music-mini-player__controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-mini-player__controls button,
.music-mini-player__close {
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    font-size: 15px;
    cursor: pointer;
}

.music-mini-player__controls .music-play-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
}

.music-mini-player__progress {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--font-latin);
    font-size: 7px;
}

.music-mini-player__progress input {
    width: 100%;
    height: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.music-mini-player__progress span:last-child {
    text-align: right;
}

.music-mini-player__close {
    width: 28px;
    height: 28px;
    border: 0;
    font-size: 17px;
}

@media (max-width: 1050px) {
    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .archive-search {
        flex-basis: 40px;
    }

    .music-stage {
        grid-template-columns: 1fr;
    }

    .music-stage__playlist {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 780px) {
    .section-heading__tools {
        align-items: flex-start;
    }

    .section-heading__aside {
        display: none;
    }

    .archive-main {
        width: calc(100% - 36px);
    }

    .archive-hero {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: auto;
        padding: 122px 0 65px;
    }

    .archive-hero__copy h1 {
        font-size: clamp(47px, 13vw, 67px);
    }

    .archive-hero__copy > p:not(.eyebrow) {
        font-size: 13px;
    }

    .archive-index-card {
        min-height: 300px;
        transform: none;
    }

    .archive-index-card > strong {
        font-size: 82px;
    }

    .archive-section {
        padding-bottom: 85px;
    }

    .archive-toolbar {
        padding: 10px;
        border-radius: 18px;
    }

    .archive-filters {
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .archive-filters::-webkit-scrollbar {
        display: none;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .archive-card__cover {
        height: 190px;
    }

    .archive-card__body {
        min-height: 155px;
    }

    .archive-result-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .archive-pagination {
        gap: 10px;
    }

    .archive-about {
        grid-template-columns: 58px 1fr;
        gap: 18px;
        margin-bottom: 85px;
        padding: 28px 0;
    }

    .archive-about__mark {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 25px;
    }

    .archive-about .button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .archive-about h2 {
        font-size: 30px;
    }

    .site-footer {
        padding-bottom: 110px;
    }

    .music-share {
        padding-top: 15px;
    }

    .article-music {
        padding-top: 24px;
    }

    .article-music-bar {
        grid-template-columns: 42px 36px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 9px 10px;
        border-radius: 16px;
    }

    .article-music-bar__cover {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .article-music-bar__play {
        width: 34px;
        height: 34px;
    }

    .article-music-bar__time,
    .article-music-bar__index {
        display: none;
    }

    .article-music-bar__seek {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: -2px 2px 0;
    }

    .article-music-bar__controls {
        justify-self: end;
    }

    .article-music-bar__meta strong {
        font-size: 12px;
    }

    .music-stage {
        border-radius: 25px;
    }

    .music-stage__feature {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .music-stage__art {
        width: min(100%, 280px);
        margin: 0 auto;
    }

    .music-stage__copy h3 {
        font-size: 31px;
    }

    .music-stage__copy .button {
        width: 100%;
    }

    .music-stage__playlist {
        padding: 15px;
    }

    .music-mini-player {
        right: 10px;
        bottom: 82px;
        left: 10px;
        grid-template-columns: minmax(0, 1fr) auto 28px;
        width: calc(100% - 20px);
        gap: 8px;
        padding: 8px 9px;
        border-radius: 17px;
    }

    .article-view.is-open ~ .music-mini-player {
        bottom: 10px;
    }

    .music-mini-player__controls {
        gap: 2px;
    }

    .music-mini-player__controls #musicPrevious,
    .music-mini-player__controls #musicNext {
        display: none;
    }

    .music-mini-player__progress {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: 28px 1fr 28px;
        padding: 0 3px 2px;
    }

    .music-mini-player__close {
        grid-column: 3;
        grid-row: 1;
    }

    .music-track {
        min-height: 57px;
    }
}

@media (max-width: 430px) {
    .archive-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .archive-hero__actions .button {
        width: 100%;
    }

    .archive-card__body {
        grid-template-columns: 38px 1fr;
        padding: 18px;
    }

    .archive-card__body h2 {
        font-size: 19px;
    }

    .archive-pagination a,
    .archive-pagination__arrow.is-disabled {
        width: 33px;
        height: 33px;
    }
}
