:root {
    --bg: #f3f3ef;
    --bg-elevated: rgba(255, 255, 255, .9);
    --card: rgba(255, 255, 255, .94);
    --card-solid: #ffffff;
    --text: #11110f;
    --text-soft: #4e4e49;
    --text-faint: #70706a;
    --line: rgba(17, 17, 15, .13);
    --line-strong: rgba(17, 17, 15, .22);
    --primary: #11110f;
    --primary-dark: #000000;
    --primary-soft: #eee9ff;
    --yellow: #8061ff;
    --yellow-strong: #a58bff;
    --pink: #d68cff;
    --cyan: #11110f;
    --success: #65cfa8;
    --shadow-sm: 0 12px 32px rgba(28, 27, 21, .08);
    --shadow-md: 0 24px 70px rgba(28, 27, 21, .14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shell: 1240px;
    --font: Inter, ui-rounded, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
    --bg: #0d0d0b;
    --bg-elevated: rgba(24, 24, 20, .86);
    --card: rgba(24, 24, 20, .91);
    --card-solid: #191916;
    --text: #faf7e9;
    --text-soft: #b8b3a3;
    --text-faint: #9b968a;
    --line: rgba(165, 139, 255, .16);
    --line-strong: rgba(165, 139, 255, .28);
    --primary: #a58bff;
    --primary-dark: #c3b2ff;
    --primary-soft: rgba(128, 97, 255, .16);
    --shadow-sm: 0 14px 40px rgba(0, 0, 0, .22);
    --shadow-md: 0 28px 80px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(128, 97, 255, .16), transparent 32rem),
        radial-gradient(circle at 92% 30%, rgba(33, 32, 27, .09), transparent 30rem),
        var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    transition: background-color .3s ease, color .3s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    z-index: -1;
    background-image: radial-gradient(rgba(128, 97, 255, .22) .7px, transparent .7px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

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

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

button {
    cursor: pointer;
}

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

::selection {
    color: #181816;
    background: var(--yellow);
}

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

.icon {
    width: 1.18em;
    height: 1.18em;
    flex: none;
}

.glass-card {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 999;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow-strong), var(--yellow), #55b9ff);
    box-shadow: 0 0 14px rgba(128, 97, 255, .45);
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -2;
}

.ambient-one {
    width: 26rem;
    height: 26rem;
    background: rgba(128, 97, 255, .13);
    left: -10rem;
    top: 45vh;
}

.ambient-two {
    width: 24rem;
    height: 24rem;
    background: rgba(32, 31, 26, .08);
    right: -9rem;
    top: 75vh;
}

.site-shell {
    width: min(calc(100% - 36px), var(--shell));
    margin: 22px auto 64px;
}

.site-hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 36px;
    background-image: linear-gradient(135deg, rgba(128, 97, 255, .38), rgba(55, 78, 144, .2)), var(--hero-image);
    background-blend-mode: color, normal;
    background-size: cover;
    background-position: center;
    box-shadow: 0 32px 90px rgba(24, 22, 13, .27);
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 10, 9, .86) 0%, rgba(16, 15, 11, .58) 42%, rgba(16, 15, 11, .06) 77%),
        linear-gradient(0deg, rgba(12, 12, 10, .72), transparent 50%);
}

.hero-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 34px;
}

.mini-brand,
.hero-actions,
.hero-actions a {
    display: flex;
    align-items: center;
}

.mini-brand {
    gap: 11px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .02em;
}

.brand-orbit {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .08);
}

.hero-actions {
    gap: 10px;
}

.hero-actions a {
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(14, 14, 12, .34);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, background .2s ease;
}

.hero-actions a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .2);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(620px, 60%);
    padding: 90px 0 160px 70px;
}

.hero-kicker,
.article-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero-kicker span,
.article-kicker span {
    display: inline-block;
    width: 26px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--yellow), #fff);
}

.hero-content h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -.045em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}

.hero-content p {
    max-width: 490px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    height: 48px;
    padding: 0 22px;
    color: #181816;
    font-size: 14px;
    font-weight: 760;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
    box-shadow: 0 14px 30px rgba(121, 88, 0, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(121, 88, 0, .42);
}

.hero-cta .icon {
    transition: transform .2s ease;
}

.hero-cta:hover .icon {
    transform: translateX(3px);
}

.profile-card {
    position: absolute;
    z-index: 3;
    left: 32px;
    right: 32px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 100px;
    padding: 17px 22px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 23px;
    background: rgba(14, 14, 12, .65);
    box-shadow: 0 18px 50px rgba(5, 8, 27, .22);
    backdrop-filter: blur(20px) saturate(140%);
}

.profile-avatar,
.article-avatar,
.mini-avatar,
.author-card-avatar {
    display: grid;
    place-items: center;
    flex: none;
    font-weight: 800;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5f1ff, #dcd1ff 52%, #a58bff);
}

.profile-avatar {
    position: relative;
    width: 66px;
    height: 66px;
    padding: 4px;
    color: #181816;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 24px rgba(0, 0, 0, .16);
}

.profile-avatar > span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}

.profile-avatar .icon {
    width: 30px;
    height: 30px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar i {
    position: absolute;
    right: -3px;
    bottom: -2px;
    width: 17px;
    height: 17px;
    border: 4px solid #171714;
    border-radius: 50%;
    background: var(--yellow);
}

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

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-name-row strong {
    font-size: 18px;
}

.profile-badge {
    padding: 2px 9px;
    color: #c8baff;
    font-size: 10px;
    font-weight: 760;
    border: 1px solid rgba(195, 178, 255, .34);
    border-radius: 999px;
    background: rgba(128, 97, 255, .18);
}

.profile-copy p {
    margin: 2px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.profile-stats span {
    min-width: 78px;
    padding: 0 18px;
    color: rgba(255, 255, 255, .54);
    font-size: 10px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.profile-stats b {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
}

.hero-stars i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: twinkle 2.5s infinite alternate ease-in-out;
}

.hero-stars i:nth-child(1) { left: 34%; top: 16%; }
.hero-stars i:nth-child(2) { left: 57%; top: 25%; animation-delay: .8s; }
.hero-stars i:nth-child(3) { left: 23%; top: 42%; animation-delay: 1.4s; }
.hero-stars i:nth-child(4) { right: 21%; top: 18%; animation-delay: .4s; }
.hero-stars i:nth-child(5) { right: 9%; top: 48%; animation-delay: 1.8s; }

@keyframes twinkle {
    from { opacity: .25; transform: scale(.7); }
    to { opacity: 1; transform: scale(1.4); }
}

.main-nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    min-height: 76px;
    margin-top: 18px;
    padding: 0 20px;
    border-radius: 22px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 23px;
    font-size: 15px;
    border-right: 1px solid var(--line);
}

.nav-brand span {
    color: var(--primary);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-brand span .icon {
    width: 1em;
    height: 1em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 17px;
}

.nav-links a {
    position: relative;
    padding: 10px 15px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    border-radius: 11px;
    transition: color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-links a.is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateX(-50%);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-search {
    display: flex;
    align-items: center;
    width: 190px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(125, 125, 150, .06);
    transition: width .25s ease, border-color .2s ease, box-shadow .2s ease;
}

.nav-search:focus-within {
    width: 230px;
    border-color: rgba(128, 97, 255, .52);
    box-shadow: 0 0 0 4px rgba(128, 97, 255, .1);
}

.nav-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 5px 0 14px;
    outline: none;
    border: 0;
    background: transparent;
    font-size: 12px;
}

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

.nav-search button,
.icon-button {
    display: grid;
    place-items: center;
    flex: none;
    width: 39px;
    height: 39px;
    padding: 0;
    color: var(--text-soft);
    border: 0;
    border-radius: 12px;
    background: transparent;
}

.nav-search button:hover,
.icon-button:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

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

html[data-theme="dark"] .theme-icon-light {
    display: inline-flex;
}

.menu-toggle {
    display: none;
}

.menu-close-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-open-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: inline-flex;
}

.site-main {
    margin-top: 24px;
}

.notice-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 86px;
    padding: 17px 22px;
    border-radius: var(--radius-lg);
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--primary);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--primary-soft), rgba(128, 97, 255, .16));
}

.notice-icon .icon {
    width: 22px;
    height: 22px;
}

.notice-card b {
    font-size: 13px;
}

.notice-card p {
    margin: 1px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.notice-card time {
    margin-left: auto;
    padding: 5px 10px;
    color: var(--text-faint);
    font-size: 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.archive-hero {
    padding: 44px;
    text-align: center;
    border-radius: var(--radius-xl);
}

.archive-hero h1 {
    margin: 8px 0 7px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -.04em;
}

.archive-hero p {
    margin: 0;
    color: var(--text-soft);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 8px;
    color: #11110f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    border-radius: 999px;
    background: var(--yellow);
}

.feed-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 42px 4px 19px;
}

.feed-toolbar h2 {
    margin: 2px 0 0;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.layout-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.layout-switch button {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 13px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.layout-switch button[aria-pressed="true"] {
    color: #181816;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
    box-shadow: 0 8px 18px rgba(132, 96, 0, .24);
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 324px;
    gap: 22px;
    align-items: start;
}

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

.post-stream {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.blog-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.sidebar-widget {
    padding: 21px;
    border-radius: 20px;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    overflow: hidden;
}

.sidebar-profile-mark {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 3px;
    overflow: hidden;
    place-items: center;
    color: #181816;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 7px 18px rgba(72, 57, 130, .14), 0 0 0 3px rgba(128, 97, 255, .12);
}

.sidebar-profile-mark .icon {
    width: 20px;
    height: 20px;
}

.sidebar-profile-mark img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-profile h2 {
    margin: 3px 0 5px;
    font-size: 18px;
    letter-spacing: -.02em;
}

.sidebar-profile p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.widget-heading,
.widget-heading > div {
    display: flex;
    align-items: center;
}

.widget-heading {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.widget-heading > div {
    gap: 9px;
}

.widget-heading h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.01em;
}

.widget-heading > small {
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
}

.widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9a900;
    box-shadow: 0 0 0 4px rgba(217, 169, 0, .14);
}

.widget-dot.is-pink {
    background: #8061ff;
    box-shadow: 0 0 0 4px rgba(128, 97, 255, .14);
}

.widget-dot.is-cyan {
    background: #242421;
    box-shadow: 0 0 0 4px rgba(36, 36, 33, .12);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    display: grid;
    height: 26px;
    place-items: center;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.calendar-days > span {
    display: grid;
    min-width: 0;
    min-height: 39px;
    place-content: center;
    text-align: center;
    border-radius: 11px;
    background: rgba(125, 125, 150, .055);
}

.calendar-days > span.is-empty {
    background: transparent;
}

.calendar-days b {
    font-size: 11px;
    line-height: 1;
}

.calendar-days small {
    margin-top: 3px;
    color: inherit;
    font-size: 7px;
    line-height: 1;
}

.calendar-days > span.is-today {
    color: #181816;
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    box-shadow: 0 8px 16px rgba(123, 91, 0, .22);
}

.category-cloud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.category-cloud a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 11px;
    color: var(--text-soft);
    font-size: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: rgba(125, 125, 150, .055);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.category-cloud a:hover {
    color: var(--primary);
    border-color: rgba(128, 97, 255, .24);
    background: var(--primary-soft);
}

.category-cloud a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-cloud a b {
    color: var(--text-faint);
    font-size: 9px;
}

.recent-signal-list {
    display: grid;
}

.recent-signal-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    color: var(--text-soft);
    font-size: 11px;
    border-bottom: 1px solid var(--line);
}

.recent-signal-list a:first-child {
    padding-top: 0;
}

.recent-signal-list a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.recent-signal-list a:hover span {
    color: var(--primary);
}

.recent-signal-list span {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-signal-list time {
    color: var(--text-faint);
    font-size: 9px;
}

.story-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.story-card:hover {
    border-color: rgba(128, 97, 255, .28);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.story-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.moment-rail {
    display: none;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 19px 13px;
}

.mini-avatar,
.article-avatar {
    width: 38px;
    height: 38px;
    color: var(--text);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.mini-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.article-avatar img,
.author-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mini-avatar .icon {
    width: 19px;
    height: 19px;
}

.story-author div {
    min-width: 0;
}

.story-author a {
    display: block;
    max-width: 180px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-author time {
    display: block;
    color: var(--text-faint);
    font-size: 10px;
}

.signal-dot {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(128, 97, 255, .18);
}

.story-cover {
    position: relative;
    display: block;
    height: 240px;
    margin: 0 12px;
    overflow: hidden;
    border-radius: 17px;
    background: #1b1b18;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .75, .25, 1);
}

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

.cover-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%);
    transform: translateX(-120%);
    transition: transform .8s ease;
}

.story-card:hover .cover-shine {
    transform: translateX(120%);
}

.story-cover-placeholder {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .94);
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .2), transparent 16%),
        radial-gradient(circle at 78% 72%, rgba(174, 151, 255, .34), transparent 24%),
        linear-gradient(145deg, #28345f, #6652bd 52%, #9d8cff);
}

.story-cover-placeholder::after {
    content: "STARGAZING";
    position: absolute;
    left: 22px;
    bottom: 16px;
    color: rgba(255, 255, 255, .52);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .24em;
}

.story-cover-placeholder > span {
    font-size: 44px;
    text-shadow: 0 0 30px rgba(255, 255, 255, .62);
}

.story-cover-placeholder i {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px #fff;
}

.story-cover-placeholder i:nth-of-type(1) { left: 18%; top: 23%; }
.story-cover-placeholder i:nth-of-type(2) { right: 20%; top: 31%; }
.story-cover-placeholder i:nth-of-type(3) { right: 31%; bottom: 22%; }

.moment-gallery {
    display: none;
}

.story-content {
    padding: 20px 22px 15px;
}

.story-category {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 760;
}

.story-content h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.38;
    letter-spacing: -.02em;
}

.story-content h2 a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color .2s ease, background-size .3s ease;
}

.story-content h2 a:hover {
    color: var(--primary);
    background-size: 100% 1px;
}

.story-excerpt {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.story-excerpt p {
    margin: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 780;
}

.read-more .icon {
    transition: transform .2s ease;
}

.read-more:hover .icon {
    transform: translateX(3px);
}

.story-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding: 14px 20px 16px;
    color: var(--text-faint);
    font-size: 10px;
    border-top: 1px solid var(--line);
}

.story-footer > span,
.story-footer > a,
.like-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.story-footer > a:hover {
    color: var(--primary);
}

.like-button {
    margin-left: auto;
    padding: 0;
    color: var(--text-faint);
    font-size: 10px;
    border: 0;
    background: transparent;
}

.like-button:hover,
.like-button[aria-pressed="true"] {
    color: var(--primary);
    background: var(--primary-soft);
}

.like-button[aria-pressed="true"] .icon {
    fill: currentColor;
    animation: heartPop .34s ease;
}

@keyframes heartPop {
    50% { transform: scale(1.35); }
}

body[data-layout="moments"] .post-stream {
    display: block;
    width: min(100%, 850px);
    margin: 0 auto;
}

body[data-layout="moments"] .blog-layout {
    display: block;
}

body[data-layout="moments"] .blog-sidebar {
    display: none;
}

body[data-layout="moments"] .story-card {
    display: flex;
    align-items: stretch;
    gap: 17px;
    padding: 22px 24px 22px 20px;
    overflow: visible;
    margin-bottom: 18px;
}

body[data-layout="moments"] .story-card:hover {
    transform: translateY(-3px);
}

body[data-layout="moments"] .moment-rail {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 42px;
}

body[data-layout="moments"] .moment-rail .mini-avatar {
    position: relative;
    z-index: 1;
}

body[data-layout="moments"] .moment-rail i {
    position: absolute;
    top: 48px;
    bottom: -42px;
    width: 1px;
    background: linear-gradient(var(--line-strong), transparent);
}

body[data-layout="moments"] .story-card:last-child .moment-rail i {
    display: none;
}

body[data-layout="moments"] .story-inner {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-areas:
        "author"
        "content"
        "gallery"
        "footer";
}

body[data-layout="moments"] .story-author {
    grid-area: author;
    padding: 0 0 6px;
}

body[data-layout="moments"] .story-author .mini-avatar {
    display: none;
}

body[data-layout="moments"] .story-content {
    grid-area: content;
    padding: 8px 0 16px;
}

body[data-layout="moments"] .story-content h2 {
    font-size: 22px;
}

body[data-layout="moments"] .story-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 4;
}

body[data-layout="moments"] .story-cover {
    display: none;
}

body[data-layout="moments"] .moment-gallery {
    display: grid;
    grid-area: gallery;
    width: min(100%, 408px);
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-layout="moments"] .moment-gallery button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--primary-soft);
    aspect-ratio: 1;
}

body[data-layout="moments"] .moment-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

body[data-layout="moments"] .moment-gallery button:hover img,
body[data-layout="moments"] .moment-gallery button:focus-visible img {
    transform: scale(1.04);
}

body[data-layout="moments"] .moment-gallery button:focus-visible {
    outline: 3px solid rgba(128, 97, 255, .36);
    outline-offset: 2px;
}

.gallery-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.03em;
    background: rgba(13, 15, 27, .58);
    backdrop-filter: blur(2px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

body[data-layout="moments"] .moment-gallery-1 {
    grid-template-columns: minmax(0, 420px);
}

body[data-layout="moments"] .moment-gallery-1 button {
    aspect-ratio: 4 / 3;
}

body[data-layout="moments"] .moment-gallery-2,
body[data-layout="moments"] .moment-gallery-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-layout="moments"] .story-footer {
    grid-area: footer;
    padding: 15px 0 0;
    border-top: 0;
}

.pagination {
    margin-top: 30px;
}

.page-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-navigator a,
.page-navigator span {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}

.page-navigator a:hover,
.page-navigator .current a,
.page-navigator .current span {
    color: #11110f;
    border-color: transparent;
    background: var(--yellow);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 80px 30px;
    text-align: center;
    border-radius: var(--radius-xl);
}

.empty-state > span {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    color: var(--primary);
    border-radius: 25px;
    background: var(--primary-soft);
}

.empty-state h2 {
    margin: 0;
}

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

.empty-state a {
    color: var(--primary);
    font-weight: 750;
}

/* Article */
.article-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
}

.article-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.article-header {
    padding: 54px 58px 34px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--text-faint);
    font-size: 11px;
}

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

.article-kicker {
    color: var(--primary);
}

.article-kicker span {
    background: linear-gradient(90deg, var(--primary), var(--pink));
}

.article-header h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.18;
    letter-spacing: -.045em;
}

.article-lead {
    margin: 17px 0 0;
    color: var(--text-soft);
    font-size: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    color: var(--text-faint);
    font-size: 11px;
}

.article-avatar {
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
}

.article-meta div {
    display: grid;
    min-width: 92px;
    line-height: 1.35;
}

.article-meta b {
    color: var(--text);
    font-size: 12px;
}

.article-meta small {
    color: var(--text-faint);
}

.article-meta > i {
    width: 1px;
    height: 29px;
    margin: 0 4px;
    background: var(--line);
}

.article-meta > span:not(.article-avatar) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-cover {
    margin: 0 22px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--primary-soft);
}

.article-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.article-content {
    padding: 42px 58px 54px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    position: relative;
    margin: 2em 0 .85em;
    line-height: 1.35;
    letter-spacing: -.02em;
    scroll-margin-top: 110px;
}

.article-content h2 {
    padding-left: 18px;
    font-size: 26px;
}

.article-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .22em;
    width: 5px;
    height: 1em;
    border-radius: 99px;
    background: linear-gradient(var(--primary), var(--pink));
}

.article-content h3 {
    font-size: 21px;
}

.article-content p {
    margin: 1.25em 0;
}

.article-content a {
    color: var(--primary);
    border-bottom: 1px dashed rgba(128, 97, 255, .45);
}

.article-content img {
    height: auto;
    margin: 26px auto;
    border-radius: 17px;
    box-shadow: var(--shadow-md);
}

.article-content blockquote {
    position: relative;
    margin: 26px 0;
    padding: 20px 24px 20px 52px;
    color: var(--text-soft);
    border: 1px solid rgba(128, 97, 255, .2);
    border-radius: 16px;
    background: var(--primary-soft);
}

.article-content blockquote::before {
    content: "“";
    position: absolute;
    left: 20px;
    top: 10px;
    color: var(--primary);
    font-size: 40px;
    font-weight: 850;
    line-height: 1;
}

.article-content code {
    padding: .16em .42em;
    color: var(--text);
    border-radius: 6px;
    background: rgba(128, 97, 255, .12);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .9em;
}

.article-content pre {
    margin: 25px 0;
    padding: 21px 23px;
    overflow: auto;
    color: #f3efdc;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: #161614;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

.article-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.article-content table {
    display: block;
    width: 100%;
    margin: 25px 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
}

.article-content th {
    background: var(--primary-soft);
}

.article-end {
    padding: 0 58px 48px;
}

.end-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-faint);
}

.end-mark::before,
.end-mark::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.end-mark span {
    color: var(--primary);
    display: inline-flex;
}

.end-mark span .icon {
    width: 1.1em;
    height: 1.1em;
}

.end-mark p {
    margin: 0;
    font-size: 10px;
}

.article-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-faint);
    font-size: 11px;
}

.article-tags a {
    padding: 5px 10px;
    color: var(--primary);
    border-radius: 999px;
    background: var(--primary-soft);
}

.article-aside {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 18px;
}

.toc-card,
.author-card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.toc-card h2,
.author-card h2 {
    margin: 2px 0 14px;
    font-size: 17px;
}

#article-toc {
    display: grid;
    gap: 5px;
}

#article-toc a {
    position: relative;
    display: -webkit-box;
    padding: 6px 9px 6px 14px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 11px;
    border-radius: 8px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#article-toc a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-strong);
}

#article-toc a:hover,
#article-toc a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}

#article-toc a.toc-h3 {
    padding-left: 24px;
}

.author-card {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.author-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 72px;
    background: linear-gradient(135deg, rgba(174, 151, 255, .34), rgba(113, 189, 255, .22));
}

.author-card-avatar {
    position: relative;
    width: 62px;
    height: 62px;
    margin: 16px auto 8px;
    color: var(--text);
    font-size: 22px;
    border: 4px solid var(--card-solid);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    color: var(--primary);
    font-size: 8px;
    font-weight: 850;
    border-radius: 99px;
    background: var(--primary-soft);
}

.signal-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.author-card h2 {
    margin: 7px 0 0;
}

.author-card p {
    margin: 5px 0 14px;
    color: var(--text-soft);
    font-size: 11px;
}

.author-card > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 760;
}

.post-near {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.near-card {
    min-width: 0;
    padding: 20px 22px;
    border-radius: 18px;
}

.near-card small {
    display: block;
    margin-bottom: 5px;
    color: var(--text-faint);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}

.near-card a {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 740;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.near-card a:hover {
    color: var(--primary);
}

.page-card {
    max-width: 940px;
    margin: 0 auto;
}

/* Comments */
.comments-card {
    margin-top: 22px;
    padding: 35px 42px;
    border-radius: var(--radius-xl);
}

.comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.comments-heading h2 {
    margin: 2px 0 0;
    font-size: 23px;
}

.comments-decoration {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--primary);
    border-radius: 16px;
    background: var(--primary-soft);
}

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

.comment-list > li {
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.comment-list ol {
    margin: 14px 0 0 42px;
    padding-left: 18px;
    border-left: 1px solid var(--line-strong);
}

.comment-list ol li {
    padding: 13px 0 0;
}

.comment-body {
    position: relative;
    min-height: 42px;
    padding-left: 56px;
}

.comment-author .avatar {
    position: absolute;
    left: 0;
    top: 1px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.comment-author cite {
    font-style: normal;
    font-size: 12px;
    font-weight: 760;
}

.comment-author .says {
    color: var(--text-faint);
    font-size: 10px;
}

.comment-meta {
    color: var(--text-faint);
    font-size: 10px;
}

.comment-content {
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 13px;
}

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

.comment-reply {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary);
    font-size: 10px;
}

.respond {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

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

.respond-tip {
    margin: 3px 0 19px;
    color: var(--text-soft);
    font-size: 11px;
}

.cancel-comment-reply {
    float: right;
    color: var(--primary);
    font-size: 11px;
}

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

.comment-fields label,
.comment-textarea {
    display: grid;
    gap: 6px;
}

.comment-fields label span,
.comment-textarea > span {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.comment-fields input,
.comment-textarea textarea,
.error-card input {
    width: 100%;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(125, 125, 150, .055);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.comment-fields input {
    height: 43px;
    padding: 0 13px;
    font-size: 12px;
}

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

.comment-textarea textarea {
    min-height: 150px;
    padding: 14px;
    resize: vertical;
    font-size: 13px;
}

.comment-fields input:focus,
.comment-textarea textarea:focus,
.error-card input:focus {
    border-color: rgba(128, 97, 255, .56);
    background: var(--card-solid);
    box-shadow: 0 0 0 4px rgba(128, 97, 255, .1);
}

.comment-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
}

.comment-submit-row small {
    color: var(--text-faint);
    font-size: 9px;
}

.comment-submit-row button,
.error-card button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 17px;
    color: #181816;
    font-size: 11px;
    font-weight: 750;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
    box-shadow: 0 10px 22px rgba(123, 91, 0, .22);
}

.signed-in,
.comments-closed {
    color: var(--text-soft);
    font-size: 12px;
}

/* Error */
.error-card {
    padding: 78px 30px;
    text-align: center;
    border-radius: var(--radius-xl);
}

.error-orbit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 70px;
    font-weight: 850;
    letter-spacing: -.08em;
    line-height: 1;
}

.error-orbit i {
    font-size: 32px;
    font-style: normal;
    animation: twinkle 2s infinite alternate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.error-orbit i .icon {
    width: 1em;
    height: 1em;
}

.error-card h1 {
    margin: 10px 0 6px;
    font-size: 32px;
}

.error-card > p {
    color: var(--text-soft);
}

.error-card form {
    display: flex;
    width: min(100%, 480px);
    gap: 8px;
    margin: 28px auto 18px;
}

.error-card input {
    height: 46px;
    padding: 0 15px;
}

.error-card .hero-cta {
    margin-top: 6px;
}

/* Footer and floating controls */
.site-footer {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand .brand-orbit {
    width: 40px;
    height: 40px;
    color: var(--primary);
    border-color: var(--line);
    background: var(--primary-soft);
}

.footer-brand b {
    display: block;
    font-size: 12px;
}

.footer-brand p {
    margin: 0;
    color: var(--text-faint);
    font-size: 9px;
}

.footer-links {
    display: flex;
    gap: 18px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-meta {
    display: grid;
    justify-items: end;
    color: var(--text-faint);
    font-size: 9px;
}

.footer-meta b {
    color: var(--primary);
}

.floating-layout-switch {
    position: fixed;
    z-index: 60;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 16px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    transition: transform .2s ease;
}

.floating-layout-switch:hover {
    transform: translateY(-3px);
}

.floating-layout-switch b {
    font-size: 11px;
}

.floating-icon-moments,
body[data-layout="moments"] .floating-icon-grid {
    display: none;
}

body[data-layout="moments"] .floating-icon-moments {
    display: inline-flex;
    color: var(--primary);
}

.back-to-top {
    position: fixed;
    z-index: 55;
    right: 27px;
    bottom: 82px;
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    padding: 0;
    color: var(--primary);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.back-to-top .icon {
    transform: rotate(-90deg);
}

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

.reading-indicator {
    position: fixed;
    z-index: 58;
    right: 24px;
    top: 46%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 76px;
    height: 46px;
    padding: 0 12px 0 8px;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 15px 0 0 15px;
    background: var(--card);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.reading-ring {
    --scroll-angle: 0deg;
    position: relative;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: conic-gradient(var(--yellow) var(--scroll-angle), var(--line-strong) 0deg);
}

.reading-ring::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--card-solid);
}

.reading-ring .icon {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    color: var(--primary);
}

.reading-indicator strong {
    min-width: 29px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.mobile-dock {
    display: none;
}

body.viewer-open {
    overflow: hidden;
}

.image-viewer[hidden] {
    display: none !important;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    overflow: hidden;
    color: rgba(255, 255, 255, .92);
    background: rgba(7, 9, 16, .93);
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    grid-template-rows: 74px minmax(0, 1fr) 112px;
    grid-template-areas:
        "top top top"
        "prev stage next"
        "thumbs thumbs thumbs";
    opacity: 0;
    backdrop-filter: blur(26px) saturate(115%);
    transition: opacity .22s ease;
}

.image-viewer.is-open {
    opacity: 1;
}

.viewer-backdrop {
    position: absolute;
    inset: 0;
}

.viewer-topbar {
    position: relative;
    z-index: 4;
    display: grid;
    grid-area: top;
    grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
    align-items: center;
    gap: 20px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(rgba(7, 9, 16, .62), transparent);
}

.viewer-counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.viewer-counter strong {
    color: #fff;
    font-size: 16px;
}

.viewer-title {
    max-width: 420px;
    overflow: hidden;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viewer-tools {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.viewer-tools button,
.viewer-nav {
    display: grid;
    place-items: center;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    border: 1px solid transparent;
    background: transparent;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.viewer-tools button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.viewer-tools button:hover,
.viewer-tools button:focus-visible,
.viewer-tools button[aria-pressed="true"] {
    color: #fff;
    border-color: rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .1);
    outline: 0;
}

.viewer-tools .icon {
    width: 18px;
    height: 18px;
}

.viewer-zoom {
    display: grid;
    min-width: 42px;
    place-items: center;
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.viewer-pause-icon,
.viewer-play[aria-pressed="true"] .viewer-play-icon {
    display: none;
}

.viewer-play[aria-pressed="true"] .viewer-pause-icon {
    display: inline-flex;
}

.viewer-stage {
    position: relative;
    z-index: 2;
    display: grid;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    grid-area: stage;
    place-items: center;
    touch-action: none;
}

.viewer-stage img {
    position: relative;
    z-index: 2;
    max-width: calc(100vw - 220px);
    max-height: calc(100dvh - 220px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 28px 64px rgba(0, 0, 0, .28));
    transform: translate3d(0, 0, 0) scale(1);
    transition: opacity .16s ease, transform .16s ease;
    will-change: transform;
}

.viewer-stage img.is-loading {
    opacity: 0;
}

.viewer-stage.is-zoomed {
    cursor: grab;
}

.viewer-stage.is-dragging {
    cursor: grabbing;
}

.viewer-stage.is-dragging img {
    transition: opacity .16s ease;
}

.viewer-stage figcaption {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 14px;
    max-width: min(70vw, 680px);
    padding: 7px 12px;
    overflow: hidden;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(9, 11, 20, .42);
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

.viewer-loader {
    position: absolute;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, .13);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: viewerSpin .7s linear infinite;
    transition: opacity .16s ease;
}

.viewer-stage.is-ready .viewer-loader {
    opacity: 0;
}

@keyframes viewerSpin {
    to { transform: rotate(360deg); }
}

.viewer-nav {
    position: relative;
    z-index: 4;
    align-self: center;
    width: 52px;
    height: 68px;
    border-radius: 17px;
}

.viewer-nav:hover,
.viewer-nav:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    outline: 0;
    transform: scale(1.04);
}

.viewer-nav .icon {
    width: 30px;
    height: 30px;
}

.viewer-prev {
    grid-area: prev;
    justify-self: center;
}

.viewer-next {
    grid-area: next;
    justify-self: center;
}

.viewer-thumbnails {
    position: relative;
    z-index: 4;
    display: flex;
    grid-area: thumbs;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 13px 22px 18px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
    transition: opacity .2s ease, transform .2s ease;
}

.viewer-thumbnails button {
    position: relative;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    opacity: .6;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.viewer-thumbnails button:hover,
.viewer-thumbnails button.is-active {
    opacity: 1;
    transform: translateY(-2px);
}

.viewer-thumbnails button.is-active {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(128, 97, 255, .14);
}

.viewer-thumbnails img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.image-viewer.is-thumbnails-hidden {
    grid-template-rows: 74px minmax(0, 1fr) 0;
}

.image-viewer.is-thumbnails-hidden .viewer-thumbnails {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
}

.image-viewer.is-thumbnails-hidden .viewer-stage img {
    max-height: calc(100dvh - 108px);
}

.article-content img.viewer-enabled {
    cursor: zoom-in;
}

.article-content img.viewer-enabled:focus-visible {
    outline: 4px solid rgba(128, 97, 255, .28);
    outline-offset: 4px;
}

.toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 34px;
    padding: 10px 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(23, 25, 43, .9);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .2s ease, transform .2s ease;
}

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

@media (min-width: 641px) {
    body[data-layout="moments"] .site-shell {
        width: min(calc(100% - 36px), 640px);
    }

    body[data-layout="moments"] .site-hero {
        min-height: 465px;
        border-radius: 28px;
        background-position: 61% center;
    }

    body[data-layout="moments"] .hero-topbar {
        padding: 22px 24px;
    }

    body[data-layout="moments"] .hero-actions a:not(:last-child) {
        display: none;
    }

    body[data-layout="moments"] .hero-content {
        width: 100%;
        padding: 210px 30px 120px;
    }

    body[data-layout="moments"] .hero-kicker,
    body[data-layout="moments"] .hero-cta {
        display: none;
    }

    body[data-layout="moments"] .hero-content h1 {
        font-size: 37px;
    }

    body[data-layout="moments"] .hero-content p {
        max-width: 420px;
        margin: 12px 0 0;
        font-size: 13px;
    }

    body[data-layout="moments"] .profile-card {
        left: 18px;
        right: 18px;
        bottom: 17px;
        min-height: 82px;
        padding: 12px 15px;
        border-radius: 19px;
    }

    body[data-layout="moments"] .profile-avatar {
        width: 54px;
        height: 54px;
        border-radius: 50%;
    }

    body[data-layout="moments"] .profile-avatar > span,
    body[data-layout="moments"] .profile-avatar img {
        border-radius: 50%;
    }

    body[data-layout="moments"] .profile-stats {
        display: none;
    }

    body[data-layout="moments"] .main-nav {
        min-height: 64px;
    }

    body[data-layout="moments"] .nav-links {
        display: none;
    }

    body[data-layout="moments"] .feed-toolbar {
        margin-top: 31px;
    }

    body[data-layout="moments"] .post-stream {
        width: 100%;
    }

    body[data-layout="moments"] .story-card {
        padding: 22px 22px 22px 18px;
        border-radius: 20px;
    }

    body[data-layout="moments"] .story-content h2 {
        font-size: 19px;
    }

    body[data-layout="moments"] .story-excerpt {
        font-size: 13px;
    }

    body[data-layout="moments"] .story-footer {
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    body[data-layout="moments"] .story-footer > span,
    body[data-layout="moments"] .story-footer > a,
    body[data-layout="moments"] .story-footer > button {
        min-height: 27px;
        padding: 3px 9px;
        border-radius: 999px;
        background: rgba(125, 125, 150, .07);
    }

    body[data-layout="moments"] .like-button {
        margin-left: 0;
    }

    body[data-layout="moments"] .site-footer {
        grid-template-columns: 1fr auto;
    }

    body[data-layout="moments"] .footer-links {
        display: none;
    }
}

@media (max-width: 1050px) {
    .site-hero {
        min-height: 570px;
    }

    .hero-content {
        padding-left: 50px;
    }

    .nav-search {
        width: 155px;
    }

    .nav-search:focus-within {
        width: 190px;
    }

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

    .article-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 292px;
        gap: 18px;
    }

    .sidebar-widget {
        padding: 18px;
    }
}

@media (max-width: 860px) {
    .site-shell {
        width: min(calc(100% - 24px), var(--shell));
        margin-top: 12px;
    }

    .site-hero {
        min-height: 540px;
        border-radius: 28px;
        background-position: 58% center;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(10, 10, 9, .88), rgba(18, 17, 12, .38) 70%),
            linear-gradient(0deg, rgba(12, 12, 10, .78), transparent 56%);
    }

    .hero-content {
        width: 72%;
        padding: 70px 0 150px 38px;
    }

    .hero-content h1 {
        font-size: 47px;
    }

    .profile-stats span {
        min-width: 62px;
        padding: 0 10px;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;
        display: grid;
        gap: 4px;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 17px;
        background: var(--card-solid);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-7px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 11px 13px;
    }

    .menu-toggle {
        display: grid;
    }

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

    .blog-layout {
        display: block;
    }

    .blog-sidebar {
        display: none;
    }

    .story-cover {
        height: auto;
        aspect-ratio: 16 / 8.8;
    }

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

@media (max-width: 640px) {
    body {
        padding-bottom: 86px;
    }

    body.viewer-open {
        padding-bottom: 0;
    }

    .image-viewer {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        grid-template-rows: 58px minmax(0, 1fr) 86px;
    }

    .viewer-topbar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
        padding: 8px 9px;
    }

    .viewer-title,
    .viewer-zoom {
        display: none;
    }

    .viewer-counter {
        gap: 4px;
        font-size: 10px;
    }

    .viewer-counter strong {
        font-size: 13px;
    }

    .viewer-tools {
        height: 100%;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
    }

    .viewer-tools button {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        border-radius: 10px;
    }

    .viewer-tools button > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    .viewer-tools .viewer-pause-icon,
    .viewer-tools .viewer-play[aria-pressed="true"] .viewer-play-icon {
        display: none;
    }

    .viewer-tools .viewer-play[aria-pressed="true"] .viewer-pause-icon {
        display: inline-flex;
    }

    .viewer-tools .icon {
        width: 16px;
        height: 16px;
    }

    .viewer-nav {
        width: 40px;
        height: 56px;
        border-radius: 13px;
    }

    .viewer-nav .icon {
        width: 25px;
        height: 25px;
    }

    .viewer-stage img {
        max-width: calc(100vw - 104px);
        max-height: calc(100dvh - 164px);
    }

    .viewer-stage figcaption {
        bottom: 7px;
        max-width: 72vw;
        font-size: 9px;
    }

    .viewer-thumbnails {
        justify-content: flex-start;
        gap: 5px;
        padding: 10px 12px 14px;
    }

    .viewer-thumbnails button {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 9px;
    }

    .image-viewer.is-thumbnails-hidden {
        grid-template-rows: 58px minmax(0, 1fr) 0;
    }

    .image-viewer.is-thumbnails-hidden .viewer-stage img {
        max-height: calc(100dvh - 74px);
    }

    .site-shell {
        width: calc(100% - 16px);
        margin-top: 8px;
    }

    .site-hero {
        min-height: 500px;
        border-radius: 24px;
        background-position: 63% center;
    }

    .hero-topbar {
        padding: 18px;
    }

    .hero-actions a:not(:last-child) {
        display: none;
    }

    .hero-content {
        width: 88%;
        padding: 78px 24px 135px;
    }

    .hero-kicker {
        font-size: 9px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 12vw, 50px);
    }

    .hero-content p {
        margin: 17px 0 23px;
        font-size: 14px;
    }

    .profile-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        min-height: 82px;
        padding: 12px 14px;
        border-radius: 19px;
    }

    .profile-avatar {
        width: 54px;
        height: 54px;
        border-radius: 50%;
    }

    .profile-avatar > span,
    .profile-avatar img {
        border-radius: 50%;
    }

    .profile-name-row strong {
        font-size: 15px;
    }

    .profile-copy p {
        max-width: 210px;
        font-size: 10px;
    }

    .profile-stats {
        display: none;
    }

    .main-nav {
        top: 8px;
        min-height: 62px;
        margin-top: 10px;
        padding: 0 11px 0 15px;
        border-radius: 18px;
    }

    .nav-brand {
        padding-right: 13px;
    }

    .nav-search {
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;
        width: auto;
        height: 48px;
        padding: 0 5px;
        border-radius: 15px;
        background: var(--card-solid);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-7px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .nav-search.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-search:focus-within {
        width: auto;
    }

    .site-main {
        margin-top: 14px;
    }

    .notice-card {
        min-height: 76px;
        padding: 13px;
        border-radius: 18px;
    }

    .notice-card time {
        display: none;
    }

    .feed-toolbar {
        margin: 30px 4px 14px;
    }

    .feed-toolbar h2 {
        font-size: 23px;
    }

    .layout-switch {
        display: none;
    }

    .story-card {
        border-radius: 20px;
    }

    .story-card:hover {
        transform: none;
    }

    .story-cover {
        margin: 0 9px;
        border-radius: 15px;
    }

    .story-content {
        padding: 17px 17px 13px;
    }

    .story-content h2 {
        font-size: 19px;
    }

    .story-footer {
        gap: 11px;
        padding: 13px 16px;
    }

    .story-footer > span:nth-child(2) {
        display: none;
    }

    body[data-layout="moments"] .story-card {
        gap: 11px;
        padding: 16px 14px 16px 12px;
    }

    body[data-layout="moments"] .moment-rail {
        width: 35px;
    }

    body[data-layout="moments"] .moment-rail .mini-avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }

    body[data-layout="moments"] .story-content h2 {
        font-size: 18px;
    }

    body[data-layout="moments"] .story-excerpt {
        font-size: 13px;
    }

    body[data-layout="moments"] .story-cover {
        min-height: 170px;
        margin: 0;
    }

    .article-layout {
        gap: 14px;
    }

    .article-card {
        border-radius: 22px;
    }

    .article-header {
        padding: 32px 23px 24px;
    }

    .breadcrumbs {
        margin-bottom: 21px;
    }

    .article-header h1 {
        font-size: 34px;
    }

    .article-lead {
        font-size: 13px;
    }

    .article-meta > i,
    .article-meta > span:last-child {
        display: none;
    }

    .article-cover {
        margin: 0 10px;
        border-radius: 17px;
    }

    .article-content {
        padding: 30px 23px 37px;
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 23px;
    }

    .article-end {
        padding: 0 23px 34px;
    }

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

    .toc-card {
        display: none;
    }

    .post-near {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 14px;
    }

    .comments-card {
        margin-top: 14px;
        padding: 27px 18px;
        border-radius: 22px;
    }

    .comment-list ol {
        margin-left: 15px;
        padding-left: 12px;
    }

    .comment-body {
        padding-left: 49px;
    }

    .comment-submit-row {
        align-items: flex-end;
        gap: 10px;
    }

    .site-footer {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        margin-top: 14px;
        padding: 20px;
        border-radius: 20px;
    }

    .footer-links {
        order: 3;
    }

    .footer-meta {
        justify-items: start;
    }

    .floating-layout-switch,
    .back-to-top {
        display: none;
    }

    .reading-indicator {
        top: 82px;
        right: 8px;
        min-width: 68px;
        height: 40px;
        padding-right: 9px;
        border-radius: 13px 0 0 13px;
    }

    .reading-ring {
        width: 25px;
        height: 25px;
    }

    .mobile-dock {
        position: fixed;
        z-index: 70;
        left: 50%;
        bottom: max(10px, env(safe-area-inset-bottom));
        display: grid;
        width: min(calc(100% - 24px), 390px);
        min-height: 62px;
        padding: 5px 9px;
        border-radius: 20px;
        grid-template-columns: repeat(4, 1fr);
        transform: translateX(-50%);
    }

    .mobile-dock a,
    .mobile-dock button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        padding: 4px;
        color: var(--text-soft);
        font-size: 9px;
        border: 0;
        border-radius: 14px;
        background: transparent;
    }

    .mobile-dock a:first-child,
    .mobile-dock button:hover {
        color: var(--primary);
        background: var(--primary-soft);
    }

    .mobile-dock .icon {
        width: 19px;
        height: 19px;
    }

    .toast {
        bottom: 86px;
    }

    .error-card {
        padding: 54px 18px;
        border-radius: 22px;
    }

    .error-orbit {
        font-size: 55px;
    }

    .error-card form {
        flex-direction: column;
    }

    .error-card button {
        justify-content: center;
    }
}

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