/* =========================================================
   星垂平野 · 一块给普通人的写作自留地
   Design tokens
   ========================================================= */
:root {
    --field: #e9ecdf;
    --field-soft: #eff1e7;
    --field-deep: #dce2d1;
    --paper: #f7f5ec;
    --paper-white: #fcfbf5;
    --ink: #1c2a20;
    --ink-soft: #49574b;
    --ink-faint: #5f6b60;
    --line: rgba(28, 42, 32, .14);
    --line-strong: rgba(28, 42, 32, .28);
    --yam: #6b4b63;
    --yam-deep: #4d3548;
    --yam-wash: #eee5ec;
    --sprout: #4d6a48;
    --sprout-deep: #344a32;
    --wheat: #c09a54;
    --wheat-deep: #75541f;
    --danger: #963c34;
    --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --radius: 28px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.22, .8, .32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--field);
    background-image:
            radial-gradient(circle at 10% 4%, rgba(107, 75, 99, .055), transparent 26rem),
            radial-gradient(circle at 92% 22%, rgba(77, 106, 72, .05), transparent 30rem),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
    margin-top: 0;
}

h1, h2, h3 {
    overflow-wrap: break-word;
}

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

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

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

button {
    cursor: pointer;
}

::selection {
    background: var(--yam);
    color: var(--paper);
}

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

.container {
    width: min(1180px, calc(100% - 96px));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    font-size: .85rem;
    transform: translateY(-180%);
    transition: transform .2s var(--ease);
}

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

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .22s var(--ease), border-color .22s var(--ease),
    color .22s var(--ease), transform .22s var(--ease);
}

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

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn--primary:hover {
    background: var(--yam-deep);
    border-color: var(--yam-deep);
    color: var(--paper);
}

.btn--outline {
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--outline:hover {
    border-color: var(--ink);
    background: rgba(255, 255, 255, .32);
}

.btn--ghost {
    color: var(--ink-soft);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .45);
    color: var(--ink);
}

.btn--light {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.btn--light:hover {
    background: #f0e3cb;
    border-color: #f0e3cb;
}

.btn--danger-ghost {
    color: var(--danger);
}

.btn--danger-ghost:hover {
    background: rgba(150, 60, 52, .08);
}

.btn--small {
    min-height: 38px;
    padding: 6px 18px;
    font-size: .84rem;
}

.btn--full {
    width: 100%;
}

.text-link {
    display: inline-block;
    color: var(--ink);
    font-size: .9rem;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

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

.text-link--quiet {
    color: var(--ink-faint);
    font-size: .82rem;
    border-color: var(--line);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-faint);
    font-size: .9rem;
    transition: color .2s var(--ease);
}

.link-button:hover {
    color: var(--yam);
}

/* =========================================================
   Header & footer
   ========================================================= */
.site-header {
    position: relative;
    z-index: 10;
    padding: 27px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.brand-sprout {
    width: 30px;
    height: 33px;
    color: var(--sprout-deep);
    flex: none;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    font-size: .9rem;
    color: var(--ink-soft);
}

.site-nav a {
    position: relative;
    padding: 5px 0;
    transition: color .2s var(--ease);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .9rem;
}

.header-link {
    color: var(--ink-soft);
    transition: color .2s var(--ease);
}

.header-link:hover {
    color: var(--yam);
}

.header-avatar {
    display: inline-flex;
    align-items: center;
    border-radius: 50%;
}

.logout-form {
    margin: 0;
}

.site-footer {
    margin-top: 104px;
    padding: 42px 0 38px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    font-size: .82rem;
    color: var(--ink-faint);
}

.brand--footer {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .1em;
}

.footer-brand p {
    margin: 8px 0 0;
    font-size: .8rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

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

.footer-note {
    margin: 2px 0 0;
}

/* =========================================================
   Avatars
   ========================================================= */
.avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50% 46% 52% 48%;
    color: var(--paper);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

.avatar--sm {
    width: 30px;
    height: 30px;
    font-size: .8rem;
}

.avatar--md {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.avatar--lg {
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
}

.avatar--xl {
    width: 96px;
    height: 96px;
    font-size: 2.25rem;
}

.avatar-0 {
    background: #6b4b63;
}

.avatar-1 {
    background: #4d6a48;
}

.avatar-2 {
    background: #7c5f24;
}

.avatar-3 {
    background: #75523f;
}

.avatar-4 {
    background: #405960;
}

.avatar-5 {
    background: #7b4d5f;
}

/* =========================================================
   Home · hero
   ========================================================= */
.page-home main {
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    align-items: center;
    gap: 44px;
    padding-top: clamp(48px, 7vw, 92px);
    padding-bottom: 26px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--yam);
    font-size: .85rem;
    letter-spacing: .12em;
}

.hero-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wheat);
    flex: none;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.2vw, 4.7rem);
    font-weight: 600;
    letter-spacing: .012em;
    line-height: 1.26;
}

.hero-lede {
    max-width: 35em;
    margin: 27px 0 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.98;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-foot {
    margin: 30px 0 0;
    color: var(--ink-faint);
    font-size: .84rem;
}

.hero-foot strong {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    padding: 0 2px;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 470px;
    padding: 10px;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 5% 1% 7% 7%;
    border-radius: 48% 52% 42% 58% / 55% 43% 57% 45%;
    background: var(--field-deep);
    opacity: .82;
    transform: rotate(-3deg);
}

.potato-scene {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: auto;
    overflow: visible;
}

.scene-halo {
    fill: rgba(247, 245, 236, .36);
}

.scene-ring {
    stroke: var(--line-strong);
    stroke-width: 1;
    stroke-dasharray: 2 10;
    opacity: .55;
}

.soil-line {
    stroke: var(--ink-soft);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: .45;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: draw-line 1.9s var(--ease) .25s forwards;
}

.soil-line--soft {
    opacity: .2;
    animation-delay: .45s;
}

.roots path {
    stroke: var(--sprout-deep);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: .38;
    fill: none;
}

.potato-body {
    fill: var(--yam);
}

.potato-texture {
    fill: url(#potatoSpeckle);
}

.potato-shade {
    fill: var(--yam-deep);
    opacity: .3;
}

.potato-glow {
    fill: none;
    stroke: #c3a4b7;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .55;
}

.potato-eyes {
    fill: none;
    stroke: var(--yam-deep);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .5;
}

.potato-eyes circle {
    fill: var(--yam-deep);
    stroke: none;
    opacity: .55;
}

.sprouts {
    transform-origin: 300px 230px;
    animation: sway 9s ease-in-out infinite alternate;
}

.stem {
    fill: none;
    stroke: var(--sprout-deep);
    stroke-width: 3;
    stroke-linecap: round;
}

.leaf {
    fill: var(--sprout);
}

.leaf--small {
    fill: var(--sprout);
    opacity: .82;
}

.leaf-vein {
    fill: none;
    stroke: #dfe7d5;
    stroke-width: 1.4;
    stroke-linecap: round;
    opacity: .5;
}

.seeds {
    fill: var(--wheat);
    stroke: var(--wheat);
    stroke-width: 1.2;
    stroke-linecap: round;
}

.seeds circle {
    opacity: .75;
}

.seeds path {
    fill: none;
    opacity: .55;
}

.art-note {
    position: absolute;
    right: 7%;
    bottom: 9%;
    z-index: 2;
    writing-mode: vertical-rl;
    color: var(--ink-faint);
    font-family: var(--font-serif);
    font-size: .78rem;
    letter-spacing: .22em;
    transform: rotate(-5deg);
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes sway {
    from {
        transform: rotate(-.6deg);
    }
    to {
        transform: rotate(1.2deg);
    }
}

/* =========================================================
   Home · stream
   ========================================================= */
.stream {
    padding-top: 72px;
    scroll-margin-top: 28px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2.7vw, 2.3rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
}

.section-sub {
    margin: 8px 0 0;
    color: var(--ink-faint);
    font-size: .88rem;
    line-height: 1.8;
}

.section-head--tight {
    align-items: center;
    margin-bottom: 10px;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 270px;
    padding: 4px 2px 5px;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color .2s var(--ease);
}

.search:focus-within {
    border-color: var(--yam);
}

.search input {
    width: 100%;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    font-size: .88rem;
    color: var(--ink);
    outline: none;
}

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

.search button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: none;
    border: 0;
    background: none;
    color: var(--ink-faint);
    transition: color .2s var(--ease);
}

.search button:hover {
    color: var(--yam);
}

.search svg {
    width: 17px;
    height: 17px;
}

.filter-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(252, 251, 245, .5);
    color: var(--ink-soft);
    font-size: .84rem;
}

.filter-note p {
    margin: 0;
}

.filter-note a {
    flex: none;
    color: var(--yam);
    border-bottom: 1px solid rgba(107, 75, 99, .35);
}

.post-list {
    border-top: 1px solid var(--line);
}

.post-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 36px;
    align-items: start;
    padding: 32px 20px 30px;
    margin: 0 -20px;
    border-bottom: 1px solid var(--line);
    border-radius: 14px;
    transition: background-color .25s var(--ease);
}

.post-row:hover {
    background: rgba(252, 251, 245, .48);
}

.post-row--lead {
    grid-template-columns: minmax(0, 1fr) 176px;
    padding: 44px 42px 40px;
    margin: 4px -20px 24px;
    border-bottom: 0;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 28px 60px -52px rgba(28, 42, 32, .55);
}

.post-row--lead:hover {
    background: var(--paper-white);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--ink-faint);
    font-size: .78rem;
    letter-spacing: .02em;
}

.post-meta > span:first-child {
    color: var(--yam);
    font-weight: 500;
}

.post-title {
    margin: 10px 0 8px;
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .012em;
}

.post-row--lead .post-title {
    margin-top: 13px;
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.32;
}

.post-title-link {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: color .22s var(--ease), text-decoration-color .22s var(--ease);
}

.post-title-link:hover {
    color: var(--yam-deep);
    text-decoration-color: var(--yam);
}

.post-excerpt {
    display: -webkit-box;
    max-width: 62ch;
    margin: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-row--lead .post-excerpt {
    font-size: 1rem;
    line-height: 1.9;
    -webkit-line-clamp: 3;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(107, 75, 99, .075);
    color: var(--yam);
    font-size: .76rem;
    letter-spacing: .02em;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}

.tag:hover {
    background: var(--yam);
    color: var(--paper);
}

.post-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 6px;
    text-align: right;
    color: var(--ink-faint);
    font-size: .8rem;
}

.post-side-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    transition: color .2s var(--ease);
}

.post-side-author:hover {
    color: var(--ink);
}

.post-side-time {
    font-size: .76rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 38px;
    color: var(--ink-faint);
    font-size: .84rem;
}

.pagination a {
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

.pagination a:hover {
    color: var(--yam);
    border-color: var(--yam);
}

.empty-state {
    padding: 64px 30px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(252, 251, 245, .46);
    text-align: center;
}

.empty-state--small {
    padding: 44px 24px;
}

.empty-sprout {
    width: 68px;
    height: auto;
    margin: 0 auto 12px;
}

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

.empty-state p {
    max-width: 32em;
    margin: 0 auto;
    color: var(--ink-faint);
    font-size: .9rem;
    line-height: 1.9;
}

.empty-state .btn {
    margin-top: 22px;
}

/* =========================================================
   Home · writers & CTA
   ========================================================= */
.writers {
    padding-top: 88px;
    scroll-margin-top: 24px;
}

.writer-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
    border-top: 1px solid var(--line);
}

.writer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 21px 4px;
    border-bottom: 1px solid var(--line);
    transition: background-color .2s var(--ease);
}

.writer-item:hover {
    background: rgba(252, 251, 245, .5);
}

.writer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.writer-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.writer-count {
    color: var(--ink-faint);
    font-size: .76rem;
    line-height: 1.6;
}

.cta-wrap {
    margin-top: 100px;
}

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 62px 56px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--field);
}

.cta-sprout {
    position: absolute;
    top: -34%;
    right: 7%;
    width: 310px;
    height: auto;
    color: #a9b8a4;
    opacity: .22;
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.cta-copy h2 {
    margin: 0;
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: .02em;
}

.cta-copy p {
    max-width: 38em;
    margin: 15px 0 0;
    color: rgba(233, 236, 223, .68);
    font-size: .92rem;
    line-height: 1.9;
}

.cta-band .btn {
    position: relative;
    z-index: 1;
    flex: none;
}

/* =========================================================
   Reading page
   ========================================================= */
.reading-page {
    max-width: 800px;
    padding-top: 34px;
    padding-bottom: 40px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: 100%;
    height: 2px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--yam);
    transform: scaleX(0);
    transform-origin: left center;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--ink-faint);
    font-size: .82rem;
    border-bottom: 1px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

.back-link:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.reading-head {
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.tag-list--head {
    margin: 0 0 18px;
}

.reading-head h1 {
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: .012em;
}

.dek {
    max-width: 58ch;
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 1.07rem;
    line-height: 1.95;
}

.byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.byline-author {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.byline-names {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.byline-name {
    font-size: .9rem;
    font-weight: 500;
}

.byline-handle {
    color: var(--ink-faint);
    font-size: .74rem;
}

.byline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    color: var(--ink-faint);
    font-size: .77rem;
}

.edit-link {
    margin-left: auto;
    color: var(--yam);
    font-size: .8rem;
    border-bottom: 1px solid rgba(107, 75, 99, .4);
    padding-bottom: 1px;
}

.draft-note {
    margin-top: 22px;
    padding: 11px 16px;
    border-left: 3px solid var(--wheat);
    border-radius: 0 8px 8px 0;
    background: rgba(192, 154, 84, .13);
    color: var(--wheat-deep);
    font-size: .83rem;
}

/* prose */
.prose {
    margin-top: 44px;
    color: #263229;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 2.05;
    overflow-wrap: break-word;
}

.prose > p {
    margin: 0 0 1.4em;
}

.prose > p:first-of-type {
    color: var(--ink);
    font-size: 1.15rem;
}

.prose h1 {
    margin: 1.7em 0 .7em;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.9em;
    font-weight: 600;
    line-height: 1.45;
}

.prose h2 {
    margin: 2.1em 0 .8em;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.5;
}

.prose h3 {
    margin: 1.9em 0 .7em;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.5;
}

.prose h4 {
    margin: 1.7em 0 .6em;
    font-size: 1.1em;
}

.prose a {
    color: var(--yam-deep);
    text-decoration: underline;
    text-decoration-color: rgba(107, 75, 99, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}

.prose a:hover {
    color: var(--yam);
    text-decoration-color: var(--yam);
}

.prose strong {
    font-weight: 700;
}

.prose ul,
.prose ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}

.prose li {
    margin: .42em 0;
}

.prose blockquote {
    margin: 2em 0;
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--yam);
    color: var(--ink-soft);
    font-style: normal;
}

.prose blockquote p {
    margin: 0 0 .7em;
}

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

.prose code {
    padding: .16em .4em;
    border-radius: 4px;
    background: rgba(28, 42, 32, .075);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .85em;
}

.prose pre {
    margin: 1.8em 0;
    padding: 20px 22px;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    background: #1b2820;
    color: #e9ecdf;
    font-size: .88rem;
    line-height: 1.75;
}

.prose pre code {
    padding: 0;
    background: none;
    color: inherit;
    font-size: .94em;
}

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

.prose img {
    max-width: 100%;
    height: auto;
    margin: 1.8em auto;
    border-radius: var(--radius-sm);
}

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

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

.prose th {
    color: var(--ink-soft);
    font-weight: 500;
}

.reading-foot {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
}

.author-card-avatar {
    flex: none;
}

.author-card-copy {
    padding-top: 4px;
}

.author-card-line {
    margin: 0 0 4px;
    color: var(--ink-faint);
    font-size: .84rem;
}

.author-card-line a {
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line-strong);
}

.author-card-bio {
    max-width: 55ch;
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: .98rem;
    line-height: 1.9;
}

.author-card .text-link {
    font-size: .82rem;
}

.related {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.related h2 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.related-list {
    border-top: 1px solid var(--line);
}

.related-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
}

.related-title {
    font-family: var(--font-serif);
    font-size: 1.06rem;
    line-height: 1.6;
    transition: color .2s var(--ease);
}

.related-item:hover .related-title {
    color: var(--yam);
}

.related-meta {
    display: flex;
    flex: none;
    gap: 14px;
    color: var(--ink-faint);
    font-size: .75rem;
}

/* =========================================================
   Author page
   ========================================================= */
.author-page {
    padding-top: 52px;
    padding-bottom: 40px;
}

.author-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.author-hero-copy {
    min-width: 0;
    padding-top: 2px;
}

.author-hero h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.15rem);
    font-weight: 600;
    line-height: 1.25;
}

.author-handle {
    margin: 5px 0 14px;
    color: var(--ink-faint);
    font-size: .8rem;
}

.author-bio {
    max-width: 46ch;
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.9;
}

.author-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--ink-faint);
    font-size: .79rem;
}

.author-facts a {
    color: var(--yam);
    border-bottom: 1px solid rgba(107, 75, 99, .35);
    padding-bottom: 1px;
}

.author-hero-mark {
    width: 124px;
    margin-left: auto;
    flex: none;
    color: var(--sprout);
    opacity: .26;
}

.author-hero-mark svg {
    width: 100%;
    height: auto;
}

.author-writing {
    padding-top: 38px;
}

.author-posts {
    border-top: 1px solid var(--line);
}

.author-post {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 84px;
    gap: 24px;
    align-items: baseline;
    padding: 26px 4px;
    border-bottom: 1px solid var(--line);
}

.author-post time {
    color: var(--ink-faint);
    font-size: .76rem;
    letter-spacing: .02em;
}

.author-post h3 {
    margin: 0 0 5px;
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.55;
}

.author-post h3 a {
    transition: color .2s var(--ease);
}

.author-post h3 a:hover {
    color: var(--yam);
}

.author-post-main p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: .88rem;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.author-post-time {
    color: var(--ink-faint);
    font-size: .75rem;
    text-align: right;
}

/* =========================================================
   Auth
   ========================================================= */
.page-auth {
    background: var(--field);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 46%) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 44px 54px 40px;
    background: var(--ink);
    color: var(--field);
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 16% 82%, rgba(192, 154, 84, .1), transparent 24rem),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.brand--light {
    color: var(--field);
}

.brand--light .brand-sprout {
    color: #9db096;
}

.auth-aside-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 56px 0 34px;
}

.auth-poem {
    margin: 0;
    color: #eff1e7;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.8vw, 2.55rem);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: .045em;
}

.auth-side-note {
    margin: 24px 0 0;
    color: rgba(233, 236, 223, .68);
    font-size: .82rem;
    letter-spacing: .06em;
}

.auth-art {
    width: 100%;
    max-width: 390px;
    height: auto;
    color: var(--field);
    opacity: .45;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 56px 40px;
}

.auth-panel {
    width: 100%;
    max-width: 392px;
}

.auth-panel--wide {
    max-width: 434px;
}

.auth-mobile-brand {
    display: none;
}

.auth-panel h1 {
    margin: 0 0 13px;
    font-family: var(--font-serif);
    font-size: clamp(2.05rem, 3.7vw, 2.7rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
}

.auth-sub {
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.9;
}

.auth-form {
    margin-top: 6px;
}

.auth-form .field + .field {
    margin-top: 22px;
}

.auth-form .btn {
    margin-top: 30px;
}

.auth-alt {
    margin: 26px 0 0;
    color: var(--ink-faint);
    font-size: .86rem;
    text-align: center;
}

.auth-alt a {
    margin-left: 4px;
    color: var(--yam);
    border-bottom: 1px solid rgba(107, 75, 99, .35);
    padding-bottom: 1px;
}

.auth-home {
    display: block;
    margin-top: 20px;
    color: var(--ink-faint);
    font-size: .78rem;
    text-align: center;
    transition: color .2s var(--ease);
}

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

/* =========================================================
   Generic page shell & panels
   ========================================================= */
.page-shell {
    padding-top: 44px;
    padding-bottom: 50px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    font-weight: 600;
    line-height: 1.3;
}

.page-sub {
    margin: 0;
    color: var(--ink-faint);
    font-size: .9rem;
    line-height: 1.85;
}

.panel {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(252, 251, 245, .62);
}

.panel-head h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
}

.panel-head p {
    margin: 6px 0 0;
    color: var(--ink-faint);
    font-size: .83rem;
    line-height: 1.8;
}

/* alerts */
.alert {
    margin: 0 0 22px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.75;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: .45em;
}

.alert--error {
    border-left: 3px solid var(--danger);
    background: rgba(150, 60, 52, .08);
    color: var(--danger);
}

.alert--success {
    border-left: 3px solid var(--sprout);
    background: rgba(77, 106, 72, .1);
    color: var(--sprout-deep);
}

/* forms */
.field {
    margin-top: 20px;
}

.field:first-child {
    margin-top: 0;
}

.field label,
.tag-input-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: .8rem;
    letter-spacing: .04em;
}

.field input {
    width: 100%;
    padding: 10px 2px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: .97rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field input:focus {
    outline: none;
    border-color: var(--yam);
    box-shadow: 0 1px 0 var(--yam);
}

.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, .36);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: .94rem;
    line-height: 1.8;
    resize: vertical;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea:focus {
    outline: none;
    border-color: var(--yam);
    box-shadow: 0 0 0 3px rgba(107, 75, 99, .1);
}

.hint {
    margin: 8px 0 0;
    color: var(--ink-faint);
    font-size: .76rem;
    line-height: 1.7;
}

.field-error {
    margin: 7px 0 0;
    color: var(--danger);
    font-size: .78rem;
    line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-faint);
    opacity: 1;
}

/* =========================================================
   Studio
   ========================================================= */
.studio-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.studio-today {
    margin: 0 0 8px;
    color: var(--yam);
    font-size: .8rem;
    letter-spacing: .08em;
}

.studio-head h1 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    font-weight: 600;
    line-height: 1.3;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 52px;
    margin: 34px 0 46px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat dt {
    color: var(--ink-faint);
    font-size: .76rem;
    letter-spacing: .04em;
}

.stat dd {
    margin: 3px 0 0;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.4;
}

.stat--link dd {
    font-family: var(--font-sans);
    font-size: .88rem;
    font-weight: 400;
    padding-top: 8px;
}

.stat--link dd a {
    color: var(--yam);
    border-bottom: 1px solid rgba(107, 75, 99, .35);
    padding-bottom: 1px;
}

.studio-section .section-head {
    margin-bottom: 8px;
}

.studio-list {
    border-top: 1px solid var(--line);
}

.studio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 25px 4px;
    border-bottom: 1px solid var(--line);
}

.studio-row-main {
    min-width: 0;
}

.studio-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--ink-faint);
    font-size: .76rem;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .71rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.status--draft {
    background: rgba(192, 154, 84, .18);
    color: var(--wheat-deep);
}

.status--published {
    background: rgba(77, 106, 72, .13);
    color: var(--sprout-deep);
}

.studio-row h3 {
    margin: 9px 0 4px;
    font-family: var(--font-serif);
    font-size: 1.33rem;
    font-weight: 600;
    line-height: 1.55;
}

.studio-row h3 a {
    transition: color .2s var(--ease);
}

.studio-row h3 a:hover {
    color: var(--yam);
}

.studio-excerpt {
    margin: 0;
    color: var(--ink-faint);
    font-size: .8rem;
}

.studio-row-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

/* =========================================================
   Account
   ========================================================= */
.page-head {
    margin-bottom: 34px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 26px;
    align-items: start;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--line);
}

.account-handle {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: .85rem;
}

.settings-form {
    margin-top: 22px;
}

.settings-form .btn {
    margin-top: 26px;
}

.avatar-field {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.avatar-field legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--ink-soft);
    font-size: .8rem;
    letter-spacing: .04em;
}

.avatar-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.avatar-option {
    display: inline-flex;
    cursor: pointer;
    border-radius: 50%;
}

.avatar-swatch {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid transparent;
    border-radius: 50% 45% 53% 47%;
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: .9rem;
    line-height: 1;
    transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.avatar-option:hover .avatar-swatch {
    transform: scale(1.06);
}

.avatar-option input:checked + .avatar-swatch {
    border-color: var(--ink);
    transform: scale(1.06);
}

.avatar-option input:focus-visible + .avatar-swatch {
    outline: 2px solid var(--yam);
    outline-offset: 3px;
}

.security-note {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    color: var(--ink-faint);
    font-size: .76rem;
    line-height: 1.8;
}

/* =========================================================
   Editor
   ========================================================= */
.editor-shell {
    padding-top: 24px;
    padding-bottom: 44px;
}

.editor-crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0 24px;
    color: var(--ink-faint);
    font-size: .8rem;
}

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

.editor-form {
    position: relative;
}

.editor-title-block .field-error {
    margin-top: 2px;
}

.post-title-input {
    width: 100%;
    padding: 6px 0 14px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.9vw, 3.1rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: .012em;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.post-title-input::placeholder {
    color: rgba(28, 42, 32, .3);
}

.post-title-input:focus {
    outline: none;
    border-color: var(--yam);
    box-shadow: 0 1px 0 var(--yam);
}

.editor-meta {
    max-width: 660px;
    margin: 14px 0 26px;
}

.tag-input-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tag-input-group label {
    margin: 0;
    flex: none;
}

.tag-input-group input {
    flex: 1;
    min-width: 0;
    padding: 7px 2px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    font-size: .88rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.tag-input-group input:focus {
    outline: none;
    border-color: var(--yam);
    box-shadow: 0 1px 0 var(--yam);
}

.editor-meta .hint {
    margin-top: 7px;
}

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

.editor-tabs {
    display: none;
    gap: 4px;
}

.editor-tab {
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-faint);
    font-size: .82rem;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}

.editor-tab.is-active {
    background: var(--ink);
    color: var(--paper);
}

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

.editor-count {
    color: var(--ink-faint);
    font-size: .76rem;
}

.editor-tools .hint {
    margin: 0;
    font-size: .73rem;
}

.editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 540px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper-white);
}

.editor-pane {
    min-width: 0;
    min-height: 540px;
}

.editor-pane--write {
    display: flex;
    flex-direction: column;
}

.editor-pane textarea {
    display: block;
    width: 100%;
    min-height: 540px;
    flex: 1;
    padding: 28px 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    line-height: 2.02;
    resize: vertical;
}

.editor-pane textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(107, 75, 99, .28);
}

.editor-pane--write .field-error {
    margin: 0;
    padding: 6px 30px 16px;
}

.editor-pane--preview {
    padding: 25px 32px;
    max-height: 80vh;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: rgba(233, 236, 223, .26);
}

.preview-label {
    margin: 0 0 14px;
    color: var(--ink-faint);
    font-size: .73rem;
    letter-spacing: .1em;
}

.prose--preview {
    margin-top: 0;
    font-size: .96rem;
    line-height: 1.95;
}

.prose--preview > p:first-of-type {
    font-size: 1rem;
}

.preview-empty {
    color: var(--ink-faint);
    font-family: var(--font-sans);
    font-size: .85rem;
}

.editor-actions {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(252, 251, 245, .93);
    backdrop-filter: blur(8px);
}

.editor-actions-left,
.editor-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-actions-left .text-link {
    margin-inline: 4px;
}

/* =========================================================
   About
   ========================================================= */
.about-page {
    max-width: 1080px;
    padding-top: 58px;
    padding-bottom: 30px;
}

.about-head {
    max-width: 750px;
}

.about-head h1 {
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.28;
}

.about-lede {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 2;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 70px;
    align-items: start;
    margin-top: 46px;
}

.about-prose {
    margin-top: 0;
    font-size: 1.02rem;
}

.about-prose h2:first-child {
    margin-top: 0;
}

.about-aside {
    position: sticky;
    top: 30px;
}

.about-aside-mark {
    margin: 0;
    color: rgba(107, 75, 99, .1);
    font-family: var(--font-serif);
    font-size: 9.5rem;
    font-weight: 700;
    line-height: .85;
    text-align: right;
}

.about-note {
    position: relative;
    margin-top: -38px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
}

.about-note h2 {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.about-note ol {
    margin: 0;
    padding-left: 1.25em;
}

.about-note li {
    margin: .75em 0;
    color: var(--ink-soft);
    font-size: .86rem;
    line-height: 1.9;
}

.about-aside .btn {
    width: 100%;
    margin-top: 20px;
}

/* =========================================================
   Error
   ========================================================= */
.page-error {
    background: var(--field);
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(680px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 0;
    text-align: center;
}

.error-brand {
    margin-bottom: 44px;
}

.error-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    margin: 0;
    color: var(--yam);
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 11vw, 7.5rem);
    font-weight: 700;
    line-height: .9;
    opacity: .3;
}

.error-body h1 {
    margin: 22px 0 12px;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.45;
}

.error-copy {
    margin: 0 0 28px;
    color: var(--ink-faint);
    font-size: .9rem;
    line-height: 1.9;
}

.error-art {
    width: 190px;
    margin-top: 38px;
    color: var(--ink-soft);
    opacity: .38;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1060px) {
    .container {
        width: calc(100% - 64px);
    }

    .hero {
        grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
        gap: 24px;
    }

    .hero-art {
        min-height: 420px;
    }

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

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

    .about-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 48px;
    }
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

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

    .hero-art {
        width: min(480px, 100%);
        min-height: 0;
        margin: 20px auto 0;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 0;
        padding: 26px 32px;
    }

    .auth-aside-copy,
    .auth-art {
        display: none;
    }

    .auth-main {
        padding: 48px 24px 64px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-aside {
        position: static;
    }

    .about-aside-mark {
        display: none;
    }

    .about-note {
        margin-top: 0;
    }

    .about-aside .btn {
        width: auto;
    }

    .post-row,
    .post-row--lead {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-row-side {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding-top: 0;
        text-align: left;
    }

    .post-row-side .post-side-time {
        color: var(--ink-faint);
    }

    .studio-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .editor-body {
        grid-template-columns: 1fr;
    }

    .editor-tabs {
        display: flex;
    }

    .editor-pane {
        min-height: 420px;
    }

    .editor-pane textarea {
        min-height: 420px;
    }

    .editor-pane--preview {
        display: none;
        min-height: 420px;
        max-height: 60vh;
        border-left: 0;
    }

    .editor-body[data-pane="preview"] .editor-pane--write {
        display: none;
    }

    .editor-body[data-pane="preview"] .editor-pane--preview {
        display: block;
    }

    .reading-page {
        width: calc(100% - 56px);
    }

    .author-hero-mark {
        width: 92px;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 18px 0 16px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        padding-top: 12px;
        gap: 24px;
        border-top: 1px solid var(--line);
        font-size: .85rem;
    }

    .header-actions {
        margin-left: auto;
        gap: 13px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 8.4vw, 3.7rem);
    }

    .hero-lede {
        font-size: .96rem;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .search {
        width: 100%;
        max-width: 420px;
    }

    .post-row,
    .post-row--lead {
        margin-left: 0;
        margin-right: 0;
        padding: 26px 4px;
    }

    .post-row--lead {
        padding: 30px 24px;
        margin: 4px 0 20px;
    }

    .post-row--lead .post-title {
        font-size: clamp(1.75rem, 7vw, 2.3rem);
    }

    .filter-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .writer-list {
        grid-template-columns: 1fr;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
        padding: 38px 28px;
    }

    .cta-sprout {
        right: -14%;
        top: 20%;
        width: 250px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 22px;
    }

    .footer-nav {
        gap: 20px;
    }

    .footer-note {
        margin-top: 0;
    }

    .reading-page {
        width: calc(100% - 40px);
        padding-top: 20px;
    }

    .reading-head h1 {
        font-size: clamp(1.95rem, 8vw, 2.7rem);
    }

    .dek {
        font-size: 1rem;
    }

    .byline {
        gap: 14px;
    }

    .edit-link {
        margin-left: 0;
    }

    .prose {
        font-size: 1.02rem;
        line-height: 2;
    }

    .prose > p:first-of-type {
        font-size: 1.08rem;
    }

    .related-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .author-hero {
        flex-wrap: wrap;
        gap: 20px;
    }

    .author-hero-mark {
        display: none;
    }

    .author-post {
        grid-template-columns: 1fr auto;
        gap: 6px 18px;
    }

    .author-post time {
        grid-column: 1 / -1;
    }

    .author-post-main {
        grid-column: 1;
    }

    .author-post-time {
        grid-column: 2;
    }

    .studio-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .studio-row-actions {
        padding-left: 0;
    }

    .panel {
        padding: 25px 22px;
    }

    .editor-actions {
        align-items: stretch;
        flex-direction: column;
        bottom: 10px;
        border-radius: 20px;
        padding: 12px;
    }

    .editor-actions-left,
    .editor-actions-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .editor-actions-right .btn {
        flex: 1;
    }

    .post-title-input {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .editor-pane textarea {
        padding: 22px 20px;
    }

    .editor-pane--preview {
        padding: 20px;
    }

    .about-page {
        padding-top: 36px;
    }

    .studio-today {
        margin-bottom: 6px;
    }

    .stats-row {
        gap: 18px 36px;
        margin: 28px 0 36px;
    }

    .alert {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 32px);
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .btn--small {
        padding-inline: 14px;
    }

    .hero-art {
        margin-top: 8px;
    }

    .art-note {
        display: none;
    }

    .hero-actions {
        gap: 18px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .text-link {
        margin-inline: auto;
    }

    .post-meta {
        gap: 12px;
    }

    .tag-list {
        gap: 6px;
    }

    .section-head h2 {
        font-size: 1.65rem;
    }

    .editor-tools .hint {
        display: none;
    }

    .editor-title-block .post-title-input {
        font-size: 1.75rem;
    }

    .byline-meta {
        gap: 10px;
    }

    .author-card {
        gap: 14px;
    }

    .auth-main {
        padding: 38px 18px 56px;
    }

    .auth-panel h1 {
        font-size: 2rem;
    }

    .btn {
        padding-inline: 20px;
    }

    .cta-band {
        padding: 32px 22px;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .related-meta {
        gap: 10px;
    }
}

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

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

    .soil-line {
        stroke-dashoffset: 0;
    }
}
