:root {
  --paper: #f7f4ee;
  --paper-deep: #efe9df;
  --ink: #211f1b;
  --muted: #746d63;
  --line: #dcd5ca;
  --accent: #805548;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --page: min(1120px, calc(100% - 40px));
  --reading: min(680px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; transition: background-color .25s, color .25s; }
a { color: inherit; text-decoration-color: transparent; text-underline-offset: .3em; transition: color .2s, text-decoration-color .2s, transform .2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin-top: 0; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 8px 12px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.page-shell { width: var(--page); margin-inline: auto; }
.site-header { width: var(--page); height: 90px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.035em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); font-size: .82rem; }
.site-nav a { text-decoration: none; }
.reader-nav-link { display: inline-flex; align-items: center; gap: 7px; }
.reader-nav-link > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: .64rem; }
.reader-login-link { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 7px; }
.menu-toggle { display: none; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.home-hero { min-height: min(720px, calc(100vh - 90px)); padding: clamp(100px, 15vh, 170px) 0 60px; position: relative; }
.home-hero h1 { max-width: 750px; margin-bottom: 30px; font-size: clamp(3.6rem, 8vw, 7.5rem); letter-spacing: -.06em; white-space: pre-line; }
.hero-copy { max-width: 620px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.65; }
.scroll-cue { position: absolute; bottom: 42px; left: 0; }
.quiet-link { display: inline-block; font-size: .82rem; text-decoration: underline; text-decoration-color: var(--line); }
.section { padding-top: 110px; padding-bottom: 110px; }
.section-heading { margin-bottom: 54px; }
.section-heading h2, .page-intro h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -.045em; }
.wide-section { padding: 110px 0; background: var(--paper-deep); }
.writing-list { border-top: 1px solid var(--line); margin-bottom: 40px; }
.writing-row { display: grid; grid-template-columns: 180px minmax(220px, .9fr) 1.2fr; gap: 38px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.writing-row h3 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 2rem); }
.writing-row h3 a { text-decoration: none; }
.writing-row > p { margin: 0; color: var(--muted); }
.writing-meta { display: flex; flex-direction: column; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.series-card { min-height: 330px; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.series-card h2, .series-card h3 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.04em; }
.series-card p:not(.eyebrow) { max-width: 440px; color: var(--muted); }
.series-card .quiet-link { margin-top: auto; }
.page-intro { max-width: 1120px; padding-top: 130px; padding-bottom: 70px; }
.page-intro h1 { margin-bottom: 22px; }
.page-intro > p:last-child { max-width: 550px; color: var(--muted); font-family: var(--serif); font-size: 1.1rem; }
.article-shell { padding: 110px 0 140px; }
.article-header, .prose { width: var(--reading); margin-inline: auto; }
.article-header { margin-bottom: 70px; }
.article-header h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.055em; }
.article-subtitle { color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
.article-meta { display: flex; gap: 10px; margin-top: 30px; color: var(--muted); font-size: .78rem; }
.featured-image { width: min(900px, calc(100vw - 40px)); max-width: none; margin: 70px 50% 0; transform: translateX(-50%); }
.prose { font-family: var(--serif); font-size: clamp(1.08rem, 1.8vw, 1.2rem); line-height: 1.82; }
.prose p { margin: 0 0 1.55em; }
.prose h2 { margin: 2.3em 0 .75em; font-size: 1.75em; }
.prose h3 { margin: 2em 0 .65em; font-size: 1.3em; }
.prose blockquote { margin: 2.7em 0; padding: .2em 0 .2em 1.5em; border-left: 1px solid var(--accent); color: var(--muted); font-size: 1.18em; font-style: italic; }
.prose a { color: var(--accent); text-decoration-color: currentColor; }
.prose hr { width: 45px; margin: 3.5em auto; border: 0; border-top: 1px solid var(--line); }
.prose code { font-size: .85em; }
.prose img { width: min(900px, calc(100vw - 40px)); max-height: 760px; margin: 3.2em 50%; transform: translateX(-50%); object-fit: contain; }
.series-navigation { width: min(900px, calc(100% - 40px)); margin: 100px auto 0; padding-top: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; font-size: .82rem; }
.series-navigation div { display: flex; flex-direction: column; }
.series-navigation span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.series-navigation .next { text-align: right; }
.series-overview { color: var(--muted); }
.series-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 130px); align-items: center; padding-top: 120px; }
.series-hero > img { max-height: 530px; width: 100%; object-fit: cover; }
.series-hero h1 { font-size: clamp(3.3rem, 7vw, 6.5rem); letter-spacing: -.055em; }
.series-hero p:last-child { max-width: 560px; color: var(--muted); font-family: var(--serif); font-size: 1.12rem; }
.part-list { width: min(850px, calc(100% - 40px)); }
.part-list article { padding: 48px 0; border-top: 1px solid var(--line); }
.part-list h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 3rem); }
.part-list h2 a { text-decoration: none; }
.part-list article > p:last-child { color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(45px, 8vw, 100px); }
.book-card { display: grid; grid-template-columns: minmax(130px, 230px) 1fr; align-items: center; gap: clamp(25px, 4vw, 55px); }
.book-card h3 { font-size: clamp(1.8rem, 3.5vw, 2.9rem); margin-bottom: 10px; }
.book-card h3 a { text-decoration: none; }
.book-cover { aspect-ratio: 2 / 3; display: grid; place-items: center; padding: 22px; background: #6e5147; color: #f7f1e8; box-shadow: 0 18px 38px rgb(25 20 16 / .14); font-family: var(--serif); text-align: center; text-decoration: none; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.subtitle, .publication { color: var(--muted); }
.book-detail { display: grid; grid-template-columns: minmax(250px, 400px) minmax(300px, 620px); gap: clamp(60px, 10vw, 140px); padding-top: 120px; padding-bottom: 140px; align-items: start; }
.book-detail h1 { font-size: clamp(3.1rem, 6vw, 5.5rem); letter-spacing: -.05em; margin-bottom: 14px; }
.book-cover-large { width: 100%; }
.book-description { width: auto; margin: 45px 0 30px; font-size: 1.08rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-block; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); padding: 11px 18px; cursor: pointer; font-size: .78rem; text-decoration: none; }
.button:hover { color: var(--paper); transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { color: var(--accent); }
.about-page { padding-top: 140px; padding-bottom: 150px; }
.about-page h1 { font-size: clamp(3.5rem, 8vw, 7rem); letter-spacing: -.06em; margin-bottom: 10px; }
.about-lead { margin: 0 0 65px; color: var(--muted); font-family: var(--serif); font-size: 1.5rem; }
.about-page .prose { width: min(620px, 100%); margin: 0; }
.about-books { margin-top: 75px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer { width: var(--page); margin: auto; padding: 55px 0; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.site-footer p { margin: 5px 0 0; }
.footer-links { display: flex; gap: 20px; }
.flash-stack { position: fixed; z-index: 10; right: 20px; top: 100px; width: min(360px, calc(100% - 40px)); }
.flash { padding: 13px 16px; background: var(--paper-deep); border: 1px solid var(--line); box-shadow: 0 8px 20px rgb(0 0 0 / .08); font-size: .82rem; }
.preview-banner { padding: 10px 20px; background: var(--accent); color: var(--paper); text-align: center; font-size: .75rem; }
.error-page { width: min(700px, calc(100% - 40px)); min-height: 65vh; margin: auto; padding: 140px 0; }
.error-page h1 { font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.04em; }
.error-page > p:not(.eyebrow) { color: var(--muted); }
.empty-state { padding: 45px 0; color: var(--muted); font-family: var(--serif); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.discussion-section { position: relative; width: min(900px, calc(100% - 40px)); margin: 0 auto 150px; padding-top: 78px; border-top: 1px solid var(--line); }
.discussion-section::before { content: ""; position: absolute; top: -1px; left: 0; width: 82px; height: 2px; background: var(--accent); }
.discussion-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.discussion-heading h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -.048em; }
.discussion-count { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgb(255 253 248 / .55); font-size: .63rem; }
.discussion-count i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .72; }
.discussion-intro { max-width: 540px; margin: 17px 0 38px; color: var(--muted); font-family: var(--serif); font-size: 1.03rem; }
.reaction-guide { max-width: 690px; margin: -20px 0 34px; padding: 12px 15px; border-left: 2px solid #c9b0a6; background: #f1ece4; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .65rem; }
.reaction-guide span { display: inline-flex; align-items: center; gap: 5px; }
.reaction-guide b { color: var(--accent); font-family: var(--serif); font-size: .86rem; }
.reaction-guide strong { color: var(--ink); font-weight: 600; }
.reader-presence { width: max-content; margin: -20px 0 17px; padding: 5px 10px; border-radius: 999px; color: var(--muted); background: #eeebe3; font-size: .61rem; }
.reader-presence span { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #718066; box-shadow: 0 0 0 3px rgb(113 128 102 / .12); }
.comment-form, .reply-form { padding: clamp(25px, 4vw, 38px); border: 1px solid #d8d0c4; border-radius: 16px; background: #fbf8f2; box-shadow: 0 15px 45px rgb(54 43 33 / .055); }
.comment-composer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.composer-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid #d8cec1; border-radius: 50%; color: var(--accent); background: #f1e9df; font-family: var(--serif); font-size: .87rem; }
.comment-composer-head > div { display: flex; flex-direction: column; line-height: 1.45; }
.comment-composer-head strong { font-family: var(--serif); font-size: .85rem; font-weight: 500; }
.comment-composer-head span:last-child { color: var(--muted); font-size: .58rem; }
.comment-form label, .reply-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: .68rem; }
.comment-form input, .comment-form textarea, .reply-form input, .reply-form textarea { width: 100%; border: 1px solid transparent; border-radius: 9px; background: #f4efe7; color: var(--ink); padding: 14px 15px; outline: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
.comment-form input:focus, .comment-form textarea:focus, .reply-form input:focus, .reply-form textarea:focus { border-color: #bda99e; background: #fffdf9; box-shadow: 0 0 0 3px rgb(128 85 72 / .07); }
.comment-form textarea, .reply-form textarea { min-height: 112px; resize: vertical; font-family: var(--serif); font-size: 1rem; line-height: 1.68; }
.comment-form textarea::placeholder, .reply-form textarea::placeholder { color: #999086; }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 23px; }
.comment-fields small { font-weight: 400; opacity: .7; }
.comment-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.comment-submit .button { border-radius: 999px; padding: 10px 19px; }
.comment-submit small { max-width: 260px; color: var(--muted); font-size: .58rem; }
.comment-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.comment-list { margin-top: 64px; }
.conversation-empty { padding: 58px 20px; border: 1px dashed #d7cfc3; border-radius: 14px; color: var(--muted); background: rgb(255 253 248 / .35); text-align: center; }
.conversation-empty span { display: block; height: 40px; font-family: var(--serif); font-size: 3rem; color: var(--line); }
.conversation-empty p { font-family: var(--serif); }
.comment-thread { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding-top: 28px; }
.comment-list > .comment-thread { padding: 30px 0 26px; border-top: 1px solid var(--line); }
.comment-list > .comment-thread:last-child { border-bottom: 1px solid var(--line); }
.comment-rail { position: relative; display: flex; justify-content: center; }
.comment-rail::after { content: ""; position: absolute; z-index: 0; top: 40px; bottom: -30px; left: 50%; width: 1px; background: linear-gradient(var(--line), rgb(220 213 202 / .25)); }
.comment-rail > span { position: relative; z-index: 1; width: 38px; height: 38px; border: 1px solid #d6cabe; border-radius: 50%; background: linear-gradient(145deg, #fffdf9, #eee6dc); box-shadow: 0 4px 12px rgb(52 41 31 / .07); display: grid; place-items: center; color: var(--accent); font-family: var(--serif); font-size: .82rem; }
.comment-content { min-width: 0; padding: 3px 0 5px; }
.comment-content > header { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.comment-content > header div { display: flex; align-items: center; gap: 8px; }
.comment-content > header strong { font-family: var(--serif); font-size: .91rem; font-weight: 500; }
.comment-content > header span, .comment-content > header time { color: var(--muted); font-size: .57rem; }
.comment-content > header .verified-reader { width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 50%; background: #7b8770; color: #fff; font-family: var(--sans); font-size: .48rem; }
.comment-content > header .reply-context { padding-left: 8px; border-left: 1px solid var(--line); }
.comment-body { max-width: 700px; padding: 10px 0 15px; color: #302c27; font-family: var(--serif); font-size: .98rem; line-height: 1.72; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.comment-owner-actions { display: flex; align-items: center; gap: 13px; }
.comment-owner-actions form { margin: 0; }
.comment-reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.comment-reactions form { margin: 0; }
.comment-reactions button { min-height: 31px; padding: 4px 10px; border: 1px solid #ded7cc; border-radius: 999px; background: rgb(255 253 249 / .6); color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: .59rem; transition: transform .18s, border-color .18s, background .18s, color .18s; }
.comment-reactions button:hover { border-color: #c4b6aa; background: #fffdf9; color: var(--ink); transform: translateY(-1px); }
.comment-reactions button.active { border-color: #d2afa3; background: #f1e1dc; color: var(--accent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }
.comment-reactions button span { font-family: var(--serif); font-size: .9rem; }
.comment-reactions button em { font-style: normal; }
.comment-reactions button b { font-weight: 500; }
.reply-toggle, .comment-delete { padding: 5px 2px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .61rem; font-weight: 500; letter-spacing: .02em; }
.reply-toggle:hover { color: var(--ink); }
.comment-delete { color: #946b60; }
.comment-tombstone { color: var(--muted); font-style: italic; }
.comment-deleted .comment-rail > span { color: var(--muted); }
.reply-form { margin-top: 20px; padding: 22px; border-radius: 12px; box-shadow: none; }
.reply-form > p { margin: 0 0 15px; color: var(--muted); font-family: var(--serif); font-size: .78rem; }
.reply-form > div:last-child { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.comment-children { margin-left: 20px; }
.comment-children .comment-thread { padding-top: 25px; }
.comment-children .comment-body { font-size: .93rem; }
.auth-cloud[hidden] { display: none; }
.auth-cloud { position: fixed; z-index: 40; width: min(340px, calc(100vw - 24px)); padding: 25px 27px 23px; border: 1px solid #d5ccc0; border-radius: 22px; background: #fffdf8; box-shadow: 0 18px 55px rgb(55 44 35 / .18); }
.auth-cloud::after { content: ""; position: absolute; top: 100%; left: 50%; width: 18px; height: 18px; border-right: 1px solid #d5ccc0; border-bottom: 1px solid #d5ccc0; background: #fffdf8; transform: translate(-50%, -9px) rotate(45deg); }
.auth-cloud.cloud-below::after { top: auto; bottom: 100%; border: 0; border-left: 1px solid #d5ccc0; border-top: 1px solid #d5ccc0; transform: translate(-50%, 9px) rotate(45deg); }
.auth-cloud .eyebrow { margin-bottom: 8px; font-size: .56rem; }
.auth-cloud h3 { margin: 0 25px 8px 0; font-size: 1.45rem; }
.auth-cloud > p:not(.eyebrow, .auth-cloud-error) { margin: 0 0 17px; color: var(--muted); font-family: var(--serif); font-size: .78rem; line-height: 1.55; }
.auth-cloud-close { position: absolute; top: 13px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.25rem; }
.auth-cloud label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: .63rem; }
.auth-cloud label[hidden] { display: none; }
.auth-cloud input { width: 100%; margin-bottom: 15px; padding: 9px 1px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); outline: 0; font-family: var(--serif); font-size: 1rem; }
.auth-cloud input:focus { border-color: var(--accent); }
.auth-cloud [name="code"] { font-family: var(--sans); font-size: 1.15rem; letter-spacing: .25em; }
.auth-cloud .button { width: 100%; border-radius: 20px; }
.auth-submit-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; }
.button-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgb(247 244 238 / .35); border-top-color: var(--paper); border-radius: 50%; animation: otp-spin .75s linear infinite; }
.auth-submit-button.is-loading .button-spinner { display: block; }
.auth-submit-button:disabled { cursor: wait; opacity: .86; transform: none; }
.auth-cloud-progress[hidden] { display: none; }
.auth-cloud-progress { margin: 13px 0 2px; padding: 11px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid #e1d8cd; border-radius: 12px; background: #f6f0e8; }
.mail-pulse { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #eadfd5; font-family: var(--serif); animation: otp-pulse 1.25s ease-in-out infinite; }
.auth-cloud-progress p { margin: 0; display: flex; flex-direction: column; line-height: 1.45; }
.auth-cloud-progress strong { font-family: var(--serif); font-size: .72rem; font-weight: 500; }
.auth-cloud-progress small { color: var(--muted); font-size: .53rem; }
[data-auth-form].is-busy input { opacity: .65; }
@keyframes otp-spin { to { transform: rotate(360deg); } }
@keyframes otp-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 5px rgb(128 85 72 / .07); } }
.auth-cloud-error { min-height: 18px; margin: -5px 0 8px; color: #98584a; font-size: .62rem; }
.auth-cloud > small { display: block; margin-top: 13px; color: var(--muted); font-size: .55rem; line-height: 1.45; }
.series-mailbox { max-width: 520px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f2; }
.series-mailbox p { margin: 0 0 13px !important; display: flex; flex-direction: column; font-family: var(--sans) !important; }
.series-mailbox strong { color: var(--ink); font-family: var(--serif); font-size: .9rem; font-weight: 500; }
.series-mailbox p span, .series-mailbox small, .series-mailbox em { color: var(--muted); font-size: .59rem; font-style: normal; }
.series-mailbox form { margin-bottom: 8px; }
.mailbox-invite[hidden] { display: none; }
.mailbox-invite { position: fixed; z-index: 35; right: 22px; bottom: 22px; }
.mailbox-invite-tab { padding: 10px 15px; border: 1px solid #d8cec1; border-radius: 999px; background: #fffdf8; color: var(--ink); box-shadow: 0 10px 30px rgb(54 43 33 / .12); cursor: pointer; font-size: .64rem; }
.mailbox-invite-tab span { margin-right: 6px; color: var(--accent); }
.mailbox-invite.is-open .mailbox-invite-tab { display: none; }
.mailbox-invite-cloud { position: relative; width: min(390px, calc(100vw - 28px)); padding: 28px; border: 1px solid #d7ccc0; border-radius: 24px 24px 7px 24px; background: #fffdf8; box-shadow: 0 20px 65px rgb(54 43 33 / .2); animation: mailbox-arrive .45s ease both; }
.mailbox-invite-cloud h2 { margin: 0 25px 12px 0; font-size: 1.65rem; }
.mailbox-invite-cloud > p:not(.eyebrow) { color: var(--muted); font-family: var(--serif); font-size: .83rem; }
.mailbox-invite-close { position: absolute; top: 13px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.mailbox-invite-cloud .button { width: 100%; margin: 8px 0 12px; border-radius: 999px; display: flex; justify-content: center; align-items: center; gap: 9px; }
.mailbox-invite-cloud > small { display: block; color: var(--muted); font-size: .55rem; text-align: center; }
.mailbox-invite-thanks { min-width: 310px; padding: 17px 20px; display: flex; align-items: center; gap: 12px; border: 1px solid #c8d1bf; border-radius: 16px; background: #f4f7f0; box-shadow: 0 15px 45px rgb(54 43 33 / .14); }
.mailbox-invite-thanks > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #77856c; color: #fff; }
.mailbox-invite-thanks p { margin: 0; display: flex; flex-direction: column; }
.mailbox-invite-thanks strong { font-family: var(--serif); font-weight: 500; }
.mailbox-invite-thanks small { color: var(--muted); font-size: .56rem; }
@keyframes mailbox-arrive { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Reader profile */
.reader-profile { padding: 105px 0 150px; }
.reader-profile-hero { display: flex; align-items: center; gap: 24px; padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.reader-profile-avatar { width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid #d5c8bc; border-radius: 50%; background: linear-gradient(145deg, #fffdf9, #e9dfd4); color: var(--accent); font-family: var(--serif); font-size: 2rem; }
.reader-profile-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.05em; }
.reader-profile-hero > div:last-child > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.reader-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; margin-top: 35px; align-items: start; }
.reader-profile-main, .reader-profile-side { display: grid; gap: 24px; }
.reader-panel { padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); border-radius: 16px; background: #fbf8f2; box-shadow: 0 12px 35px rgb(54 43 33 / .045); }
.reader-panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.reader-panel h2 { margin: 0 0 12px; font-size: 1.65rem; }
.reader-panel > p { color: var(--muted); font-family: var(--serif); font-size: .9rem; }
.reader-panel > header > span { color: var(--muted); font-size: .62rem; }
.subscription-state { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.subscription-state.is-on { border-color: #c3cdb9; color: #65725a; background: #edf1e9; }
.profile-switch { display: flex; align-items: center; gap: 11px; margin: 21px 0; cursor: pointer; }
.profile-switch input { position: absolute; opacity: 0; }
.profile-switch > span { position: relative; width: 40px; height: 23px; border-radius: 999px; background: #d7d0c6; transition: background .2s; }
.profile-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.profile-switch input:checked + span { background: #78856d; }
.profile-switch input:checked + span::after { transform: translateX(17px); }
.profile-switch b { font-family: var(--serif); font-size: .85rem; font-weight: 500; }
.profile-series-row, .profile-activity { padding: 19px 0; border-top: 1px solid var(--line); }
.profile-series-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.profile-series-row h3 { margin: 0; font-size: 1.05rem; }
.profile-series-row p, .profile-activity p { margin: 4px 0 0; color: var(--muted); font-family: var(--serif); font-size: .8rem; }
.profile-activity small { color: var(--muted); font-size: .58rem; }
.profile-empty { padding-top: 18px; border-top: 1px solid var(--line); }
.reader-panel.compact strong { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 400; line-height: 1; }
.reader-panel.compact > span { color: var(--muted); font-size: .63rem; }
.danger-zone .text-button { color: #98584a; }
.danger-zone hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.danger-zone .reader-auth-note { margin-top: -5px; color: #65725a; font-family: var(--sans); font-size: .58rem; }
.reader-login-shell { width: min(980px, calc(100% - 40px)); min-height: 72vh; margin: auto; padding: 100px 0 130px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(55px, 10vw, 120px); align-items: center; }
.reader-login-copy h1 { max-width: 570px; margin-bottom: 25px; font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -.055em; }
.reader-login-copy > p:last-of-type { color: var(--muted); font-family: var(--serif); font-size: 1.1rem; }
.reader-login-copy ul { margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .72rem; }
.reader-login-copy li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.reader-login-copy li::before { content: "✦"; margin-left: -22px; margin-right: 10px; color: var(--accent); }
.reader-login-card { padding: clamp(27px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: #fbf8f2; box-shadow: 0 18px 55px rgb(54 43 33 / .08); }
.reader-login-card h2 { margin-bottom: 10px; font-size: 2rem; }
.reader-login-card [data-login-step] > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-family: var(--serif); font-size: .82rem; }
.reader-login-card label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .65rem; }
.reader-login-card input:not([type="checkbox"]) { width: 100%; margin-bottom: 20px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); outline: none; font-family: var(--serif); font-size: 1rem; }
.reader-login-card input:focus { border-color: var(--accent); }
.reader-login-card .button { width: 100%; border-radius: 999px; }
.reader-login-card > small { display: block; margin-top: 15px; color: var(--muted); font-size: .55rem; text-align: center; }
.reader-login-error { min-height: 20px; margin: 0 0 8px; color: #98584a; font-size: .63rem; }
.reader-login-status { margin: 13px 0 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .62rem; }
.reader-login-status[hidden] { display: none; }
.reader-login-status .mail-pulse { display: inline-grid; }

/* Writing room */
.admin-shell { width: var(--page); margin: 55px auto 130px; display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: clamp(45px, 8vw, 100px); }
.admin-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.admin-nav form { margin-top: 25px; }
.admin-main { min-width: 0; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.admin-heading h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.3rem); }
.admin-lede { max-width: 540px; margin: 12px 0 0; color: var(--muted); font-family: var(--serif); }
.range-tabs { display: flex; justify-content: flex-end; gap: 3px; margin: 28px 0 18px; }
.range-tabs a { padding: 7px 11px; color: var(--muted); border: 1px solid transparent; font-size: .68rem; text-decoration: none; }
.range-tabs a.active { color: var(--ink); border-color: var(--line); background: #fbf9f5; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #faf8f3; }
.analytics-metrics article { min-width: 0; padding: 25px clamp(18px, 2.5vw, 30px); border-right: 1px solid var(--line); }
.analytics-metrics article:last-child { border: 0; }
.analytics-metrics p { margin: 0; color: var(--muted); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.analytics-metrics strong { display: block; margin: 7px 0 3px; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 400; line-height: 1; }
.analytics-metrics span { color: var(--muted); font-size: .66rem; }
.analytics-metrics .metric-change.positive { color: #617354; }
.analytics-metrics .metric-change.negative { color: var(--accent); }
.analytics-panel { margin-top: 24px; padding: clamp(24px, 3vw, 35px); border: 1px solid var(--line); background: #faf8f3; }
.analytics-panel > header, .workspace-section > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.analytics-panel header h2, .workspace-section header h2 { margin: 0; font-size: 1.75rem; }
.analytics-panel header > p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; }
.bar-chart { height: 245px; margin-top: 35px; padding-top: 24px; display: flex; align-items: flex-end; gap: clamp(3px, .65vw, 8px); border-bottom: 1px solid var(--line); }
.bar-column { position: relative; flex: 1; height: 100%; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; min-width: 2px; }
.bar { width: min(18px, 78%); min-height: 2px; background: var(--accent); opacity: .78; transition: height .3s ease, opacity .2s ease; }
.bar-column:hover .bar { opacity: 1; }
.bar-value { min-height: 1em; margin-bottom: 3px; color: var(--muted); font-size: .58rem; }
.bar-column small { position: absolute; top: calc(100% + 7px); white-space: nowrap; color: var(--muted); font-size: .52rem; transform: rotate(-35deg); transform-origin: top right; }
.analytics-columns { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.ranked-list { margin-top: 22px; }
.ranked-list article { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.ranked-list article > span { color: var(--muted); font-family: var(--serif); font-size: .8rem; }
.ranked-list article div { min-width: 0; display: flex; flex-direction: column; }
.ranked-list article a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); text-decoration: none; }
.ranked-list small { color: var(--muted); font-size: .58rem; font-weight: 400; text-transform: capitalize; }
.ranked-list article > strong { font-size: .8rem; white-space: nowrap; }
.device-list { margin-top: 24px; }
.device-list > div { display: grid; grid-template-columns: 58px 1fr 35px; gap: 10px; align-items: center; margin: 13px 0; font-size: .68rem; }
.meter { height: 4px; overflow: hidden; background: var(--line); }
.meter i { display: block; height: 100%; background: var(--accent); }
.device-list strong { text-align: right; font-weight: 500; }
.referrers { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.referrers > div { display: flex; justify-content: space-between; gap: 15px; margin: 8px 0; color: var(--muted); font-size: .68rem; }
.referrers strong { color: var(--ink); }
.analytics-empty { color: var(--muted); font-family: var(--serif); font-size: .85rem; }
.workspace-section { margin-top: 70px; }
.workspace-section > header { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.workspace-section header > a { font-size: .72rem; }
.draft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); }
.draft-grid > a, .new-draft { min-height: 145px; padding: 24px; background: var(--paper); display: flex; align-items: flex-start; flex-direction: column; text-decoration: none; }
.draft-grid span, .draft-grid small { color: var(--muted); font-size: .62rem; }
.draft-grid strong { margin: 10px 0 auto; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.new-draft p { margin: 0 auto 12px 0; font-family: var(--serif); }
.new-draft a { font-size: .72rem; }
.privacy-note { max-width: 700px; margin: 55px 0 0; color: var(--muted); font-size: .64rem; }
.comment-moderation-callout { margin-top: 30px; padding: 26px 30px; border: 1px solid var(--line); background: #f3eee6; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.comment-moderation-callout h2 { margin: 0 0 5px; font-size: 1.55rem; }
.comment-moderation-callout p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .7rem; }
.moderation-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 30px 0; }
.moderation-tabs a { padding: 7px 11px; border: 1px solid var(--line); color: var(--muted); font-size: .65rem; text-decoration: none; }
.moderation-tabs a.active { border-color: var(--accent); background: #eee6dc; color: var(--ink); }
.moderation-tabs span { margin-left: 5px; color: var(--accent); }
.moderation-list article { padding: 27px 0; border-top: 1px solid var(--line); }
.moderation-list article > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.moderation-list article > header > div { display: flex; align-items: center; gap: 12px; }
.comment-avatar { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-family: var(--serif); }
.moderation-list header div div { display: flex; align-items: flex-start; flex-direction: column; }
.moderation-list header strong { font-family: var(--serif); font-size: .85rem; font-weight: 500; }
.moderation-list header a, .moderation-list time { color: var(--muted); font-size: .58rem; }
.moderation-target { margin: 18px 0 7px; color: var(--muted); font-size: .62rem; }
.moderation-body { max-width: 700px; font-family: var(--serif); white-space: pre-wrap; }
.moderation-list footer { display: flex; gap: 8px; margin-top: 20px; }
.moderation-list footer .button { padding: 7px 12px; }
.compose-form { margin-top: -15px; }
.compose-header { position: sticky; z-index: 12; top: 0; margin-bottom: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compose-header > div, .compose-actions { display: flex; align-items: center; gap: 12px; }
.compose-header a, .compose-state { color: var(--muted); font-size: .68rem; }
.compose-state { padding-left: 12px; border-left: 1px solid var(--line); }
.compose-actions .button { padding: 8px 13px; }
.compose-paper { position: relative; max-width: 900px; margin-inline: auto; }
.writing-category { margin: 8px 0 35px; padding: 25px; border: 1px solid var(--line); background: #f3efe7; }
.category-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 25px; margin-bottom: 19px; }
.category-intro .eyebrow { grid-column: 1 / -1; }
.category-intro h2 { margin: 0; font-size: 1.45rem; }
.category-intro > p:last-child { margin: 0; color: var(--muted); font-size: .68rem; }
.category-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.category-option { position: relative; cursor: pointer; }
.category-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.category-option > span { min-height: 120px; padding: 14px 12px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: flex-start; flex-direction: column; transition: border-color .2s, transform .2s, background .2s; }
.category-option strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.category-option small { margin-top: 7px; color: var(--muted); font-size: .59rem; line-height: 1.45; }
.category-option em { margin-top: auto; color: var(--muted); font-size: .53rem; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.category-option:hover > span { transform: translateY(-1px); border-color: #bdb4a8; }
.category-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.category-option input:checked + span { border-color: var(--accent); background: #eee6dc; box-shadow: inset 0 -3px var(--accent); }
.compose-title, .compose-subtitle { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink); outline: 0; }
.compose-title { padding: 18px 20px 5px; font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.3rem); letter-spacing: -.055em; line-height: 1.12; }
.compose-subtitle { padding: 8px 22px 30px; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; }
.compose-title::placeholder, .compose-subtitle::placeholder { color: #aaa297; opacity: .7; }
.visual-editor-wrap { position: relative; margin: 5px 0 32px; border: 1px solid var(--line); background: #fcfaf6; }
.editor-topbar { position: sticky; z-index: 8; top: 64px; min-height: 46px; padding: 6px 9px; border-bottom: 1px solid var(--line); background: #f7f3ec; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.editor-tool-group { display: flex; align-items: center; gap: 1px; overflow-x: auto; }
.editor-topbar button { min-width: 31px; height: 31px; padding: 0 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .65rem; white-space: nowrap; }
.editor-topbar button:hover, .editor-topbar button.active { background: #ebe5db; color: var(--ink); }
.editor-tool-group > span { flex: 0 0 1px; width: 1px; height: 19px; margin: 0 4px; background: var(--line); }
.fullscreen-button { border-left: 1px solid var(--line) !important; }
.visual-editor-heading { min-height: 46px; padding: 10px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .62rem; }
.visual-editor-heading > span:first-child { color: var(--muted); }
.visual-editor { min-height: 650px; padding: clamp(44px, 7vw, 78px) clamp(28px, 9vw, 95px); color: var(--ink); font-family: var(--serif); font-size: 1.14rem; line-height: 1.85; outline: 0; }
.visual-editor:empty::before { content: attr(data-placeholder); color: #a49d93; pointer-events: none; }
.visual-editor p { margin: 0 0 1.45em; }
.visual-editor h2 { margin: 1.9em 0 .7em; font-size: 2em; letter-spacing: -.025em; }
.visual-editor h3 { margin: 1.7em 0 .65em; font-size: 1.38em; }
.visual-editor blockquote { margin: 2.1em 0; padding-left: 1.3em; border-left: 2px solid var(--accent); color: var(--muted); font-size: 1.18em; font-style: italic; }
.visual-editor ul, .visual-editor ol { margin: 1.3em 0; padding-left: 1.4em; }
.visual-editor hr { width: 48px; margin: 3.2em auto; border: 0; border-top: 1px solid var(--line); }
.visual-editor img { display: block; width: min(100%, 760px); max-height: 650px; margin: 2.8em auto; object-fit: contain; }
.visual-editor pre { overflow-x: auto; margin: 2em 0; padding: 20px; background: #f0ece4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78em; line-height: 1.6; }
.visual-editor.dragging-image { box-shadow: inset 0 0 0 2px var(--accent); background: #f8f3ea; }
.editor-embed-card { padding: 18px 20px; border: 1px solid var(--line); background: #f5f1e9; font-family: var(--sans); font-size: .75rem; overflow-wrap: anywhere; }
.visual-editor .editor-image-block { margin-inline: calc(clamp(28px, 9vw, 95px) * -.45); }
.visual-ready .source-editor { display: none; }
.source-editor { min-height: 500px; margin-bottom: 25px; }
.editor-bubble { position: fixed; z-index: 30; display: none; align-items: center; padding: 5px; border-radius: 4px; background: #25231f; box-shadow: 0 7px 24px rgb(30 25 20 / .22); }
.editor-bubble.visible { display: flex; }
.editor-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; border: 6px solid transparent; border-top-color: #25231f; transform: translateX(-50%); }
.editor-bubble button { width: 34px; height: 32px; padding: 0; border: 0; background: transparent; color: #f8f5ef; cursor: pointer; font-family: var(--serif); font-size: .75rem; }
.editor-bubble button:hover, .editor-bubble button.active { color: #d7ad9e; }
.editor-bubble > span { width: 1px; height: 21px; margin: 0 3px; background: #57534c; }
.editor-insert-menu { position: absolute; z-index: 5; top: 97px; left: -22px; display: flex; align-items: center; }
.editor-add-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); cursor: pointer; font-size: 1.25rem; transition: transform .2s, border-color .2s; }
.editor-add-button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); transform: rotate(45deg); }
.editor-add-options { display: none; gap: 6px; margin-left: 9px; padding: 5px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 7px 20px rgb(30 25 20 / .08); }
.editor-add-options.open { display: flex; }
.editor-add-options button { border: 0; background: transparent; color: var(--ink); padding: 6px 9px; cursor: pointer; font-size: .65rem; white-space: nowrap; }
.editor-add-options button:hover { color: var(--accent); }
.editor-add-options button span { margin-right: 4px; font-family: var(--serif); font-size: .9rem; }
.compose-paper.editor-expanded { position: fixed; z-index: 50; inset: 0; max-width: none; overflow-y: auto; padding: 32px max(20px, calc((100vw - 900px) / 2)); background: var(--paper); }
.compose-paper.editor-expanded .editor-topbar { top: 0; }
.compose-fullscreen { overflow: hidden; }
.story-settings { max-width: 900px; margin: 42px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-settings > summary { padding: 22px 3px; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; list-style: none; }
.story-settings > summary::-webkit-details-marker { display: none; }
.story-settings > summary span { font-family: var(--serif); font-size: 1.1rem; }
.story-settings > summary small { color: var(--muted); font-size: .65rem; }
.story-settings-body { padding: 28px; border-top: 1px solid var(--line); background: #f3efe7; }
.story-settings label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.story-settings input, .story-settings textarea, .story-settings select { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); padding: 11px 12px; font-size: .9rem; }
.story-settings fieldset { margin: 20px 0; padding: 22px; border: 1px solid var(--line); }
.story-settings legend { padding: 0 8px; font-family: var(--serif); }
.story-settings .check { flex-direction: row; align-items: center; }
.story-settings .check input { width: auto; }
.seo-settings { margin-top: 25px; border-top: 1px solid var(--line); }
.seo-settings > summary { padding: 18px 0; cursor: pointer; font-family: var(--serif); }
.seo-settings > div { padding-top: 10px; }
.category-key { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 5px; }
.category-key span, .category-badge, .series-badge { padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font-size: .56rem; letter-spacing: .07em; text-transform: uppercase; }
.writing-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.category-badge { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.category-journal { color: #68725b; border-color: #bfc5b8; }
.category-letter { color: #845c67; border-color: #cbb6bc; }
.category-essay { color: #5a6879; border-color: #b6bec7; }
.category-reflection { color: #77684e; border-color: #c8bdac; }
.series-badge { color: var(--ink); }
.promotion-section { padding: 45px 0 115px; }
.promotion-card { min-height: 390px; padding: clamp(38px, 7vw, 85px); border: 1px solid var(--line); display: grid; place-items: center; background: #f0ebe2; }
.promotion-card + .promotion-card { margin-top: 28px; }
.promotion-card.promotion-with-image { grid-template-columns: minmax(210px, .8fr) minmax(300px, 1.2fr); gap: clamp(45px, 9vw, 120px); place-items: center stretch; }
.promotion-art { position: relative; }
.promotion-art::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: 0; border: 1px solid var(--line); }
.promotion-art img { position: relative; z-index: 1; width: 100%; max-height: 520px; object-fit: cover; filter: saturate(.8); }
.promotion-body { max-width: 620px; }
.promotion-body h2 { margin-bottom: 22px; font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -.05em; }
.promotion-description { margin-bottom: 30px; color: var(--muted); font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.promotion-description p { margin: 0 0 1em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border: 1px solid var(--line); }
.stat-grid div { padding: 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.stat-grid div:last-child { border: 0; }
.stat-grid strong { font-family: var(--serif); font-size: 2.7rem; font-weight: 400; }
.stat-grid span { color: var(--muted); font-size: .74rem; }
.admin-list article { padding: 25px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.admin-list h2 { margin: 8px 0 3px; font-size: 1.35rem; }
.admin-list p { margin: 0; color: var(--muted); font-size: .75rem; }
.row-actions { display: flex; gap: 18px; align-items: center; font-size: .8rem; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); }
.status { color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.status-published { color: #617354; }
.editor-form { max-width: 850px; margin-top: 45px; }
.editor-form label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.editor-form input, .editor-form textarea, .editor-form select { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); padding: 11px 12px; font-size: .9rem; outline: none; }
.editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { border-color: var(--accent); }
.editor-form textarea { resize: vertical; }
.editor-form .content-editor { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid.thirds { grid-template-columns: repeat(3, 1fr); }
.editor-form fieldset { margin: 30px 0; padding: 25px; border: 1px solid var(--line); }
.editor-form legend { padding: 0 8px; font-family: var(--serif); }
.editor-form .check { flex-direction: row; align-items: center; }
.editor-form .check input { width: auto; }
.field-note { font-weight: 400; opacity: .7; }
.login-shell { width: min(430px, calc(100% - 40px)); min-height: 68vh; margin: auto; display: grid; align-items: center; }
.login-form { margin: 60px 0; }
.login-form h1 { font-size: 2.8rem; margin-bottom: 10px; }
.login-form > p:not(.eyebrow) { margin-bottom: 35px; color: var(--muted); }
.site-content-form { padding-bottom: 80px; }
.site-content-form fieldset { background: #f3efe7; }
.sticky-form-action { position: sticky; z-index: 9; bottom: 14px; width: max-content; max-width: 100%; margin-top: 28px; padding: 10px; border: 1px solid var(--line); background: rgb(247 244 238 / .94); box-shadow: 0 10px 30px rgb(45 38 31 / .1); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 14px; }
.sticky-form-action span { color: var(--muted); font-size: .65rem; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; margin-top: 38px; }
.admin-access-panel { padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); background: #f3efe7; }
.admin-access-panel h2, .pending-admins h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.compact-form { margin-top: 28px; }
.team-list article { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.team-list article:last-child { border-bottom: 0; }
.team-avatar { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--paper); font-family: var(--serif); }
.team-list article > div { min-width: 0; display: flex; flex-direction: column; }
.team-list strong { font-family: var(--serif); font-weight: 500; }
.team-list small { color: var(--muted); overflow-wrap: anywhere; }
.pending-admins { margin-top: 36px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); }
.pending-admins > article { padding: 20px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.pending-admins article > div { display: flex; flex-direction: column; }
.pending-admins article span, .pending-admins article small { color: var(--muted); }
.pending-admins article form { display: flex; align-items: center; gap: 9px; }
.pending-admins article label { margin: 0; }
.pending-admins article input { width: 130px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 1rem; letter-spacing: .2em; }

@media (max-width: 760px) {
  :root { --page: calc(100% - 36px); --reading: calc(100% - 36px); }
  .site-header { position: relative; height: 70px; }
  .wordmark { font-size: 1.16rem; }
  .menu-toggle { min-width: 48px; min-height: 44px; display: block; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; }
  .site-nav { display: none; position: absolute; z-index: 20; top: 61px; left: 0; right: 0; padding: 15px; border: 1px solid var(--line); background: #fbf8f2; box-shadow: 0 18px 45px rgb(45 38 31 / .13); align-items: stretch; flex-direction: column; gap: 2px; }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 46px; padding: 10px 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
  .site-nav a:last-child { border-bottom: 0; }
  .reader-login-link { border: 0; border-radius: 0; }
  .home-hero { min-height: min(680px, calc(100svh - 70px)); padding-top: clamp(90px, 17vh, 145px); padding-bottom: 95px; }
  .home-hero h1 { max-width: 100%; margin-bottom: 23px; font-size: clamp(3rem, 13vw, 4.8rem); line-height: 1.03; letter-spacing: -.065em; }
  .hero-copy { max-width: 92%; font-size: 1.08rem; line-height: 1.6; }
  .scroll-cue { bottom: 34px; }
  .section, .wide-section { padding-top: 72px; padding-bottom: 72px; }
  .section-heading { margin-bottom: 34px; }
  .writing-row { grid-template-columns: 1fr; gap: 12px; padding: 29px 0; }
  .writing-meta { flex-direction: row; gap: 12px; }
  .series-grid, .book-grid { grid-template-columns: 1fr; }
  .series-card { min-height: 260px; padding: 30px 25px; }
  .page-intro { padding-top: 75px; padding-bottom: 25px; }
  .page-intro > p:last-child { font-size: 1rem; }
  .article-shell { padding-top: 70px; padding-bottom: 95px; }
  .article-header { margin-bottom: 55px; }
  .article-header h1 { font-size: clamp(2.55rem, 12vw, 4.1rem); overflow-wrap: anywhere; }
  .article-meta { flex-wrap: wrap; }
  .featured-image, .prose img { width: calc(100vw - 24px); }
  .prose { font-size: 1.05rem; line-height: 1.76; overflow-wrap: anywhere; }
  .prose blockquote { margin-inline: 0; padding-left: 1em; }
  .discussion-section { width: calc(100% - 28px); margin-bottom: 90px; padding-top: 50px; }
  .discussion-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .discussion-count { margin: 0; }
  .comment-fields { grid-template-columns: 1fr; gap: 14px; }
  .comment-submit { align-items: flex-start; flex-direction: column; }
  .reaction-guide { margin-top: -18px; padding: 12px; flex-direction: column; gap: 5px; font-size: .62rem; }
  .comment-thread { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; }
  .comment-rail > span { width: 28px; height: 28px; }
  .comment-children { margin-left: 0; }
  .comment-content > header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .comment-reactions { width: 100%; }
  .comment-reactions button { min-height: 40px; padding: 7px 11px; }
  .comment-reactions button em { display: inline; }
  .comment-actions { align-items: flex-start; flex-direction: column; }
  .comment-owner-actions { width: 100%; justify-content: flex-end; }
  .reply-toggle, .comment-delete { min-height: 40px; padding: 8px; }
  .comment-form { padding: 20px 17px; border-radius: 13px; }
  .comment-form textarea, .reply-form textarea, .comment-form input, .reply-form input { font-size: 16px; }
  .auth-cloud { padding: 22px; border-radius: 18px; }
  .reader-profile { padding-top: 70px; }
  .reader-profile-grid { grid-template-columns: 1fr; }
  .reader-profile-hero { align-items: flex-start; }
  .reader-profile-avatar { width: 64px; height: 64px; flex: 0 0 64px; font-size: 1.45rem; }
  .reader-login-shell { grid-template-columns: 1fr; padding: 70px 0 95px; gap: 45px; }
  .mailbox-invite { right: 14px; bottom: 14px; }
  .comment-moderation-callout { align-items: flex-start; flex-direction: column; }
  .series-navigation { grid-template-columns: 1fr 1fr; }
  .series-overview { grid-row: 2; grid-column: 1 / -1; text-align: center; margin-top: 25px; }
  .series-hero, .book-detail { grid-template-columns: 1fr; padding-top: 70px; }
  .series-hero { gap: 38px; }
  .series-hero h1, .book-detail h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .series-hero > img { max-height: 420px; }
  .book-detail { gap: 55px; }
  .book-cover-large { width: min(320px, 85%); margin: auto; }
  .book-card { grid-template-columns: minmax(105px, 35vw) 1fr; gap: 20px; }
  .book-card h3 { font-size: clamp(1.45rem, 7vw, 2.1rem); }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 30px; }
  .footer-links { flex-wrap: wrap; }
  .admin-shell { width: calc(100% - 24px); grid-template-columns: 1fr; margin-top: 20px; }
  .admin-nav { margin-inline: -2px; padding: 0 0 14px; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav .eyebrow { display: none; }
  .admin-nav a, .admin-nav .text-button { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
  .admin-nav form { margin: 0; flex: 0 0 auto; }
  .admin-main { min-width: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .analytics-metrics { grid-template-columns: 1fr 1fr; }
  .analytics-metrics article:nth-child(2) { border-right: 0; }
  .analytics-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .analytics-columns { grid-template-columns: 1fr; }
  .bar-chart { height: 210px; gap: 3px; }
  .bar-column small { display: none; }
  .draft-grid { grid-template-columns: 1fr; }
  .visual-editor { min-height: 560px; padding: 38px 24px; font-size: 1.08rem; }
  .compose-header { position: relative; align-items: flex-start; flex-direction: column; }
  .compose-header > div:first-child .compose-state { display: none; }
  .compose-actions { width: 100%; justify-content: stretch; flex-wrap: nowrap; }
  .compose-actions > * { flex: 1; text-align: center; }
  .compose-actions .button { min-height: 42px; padding: 8px 7px; }
  .compose-title { padding-inline: 4px; font-size: clamp(2.7rem, 14vw, 4rem); }
  .writing-category { padding: 18px; }
  .category-intro { grid-template-columns: 1fr; }
  .category-intro > p:last-child { margin-top: 5px; }
  .category-options { grid-template-columns: 1fr 1fr; }
  .category-option:last-child { grid-column: 1 / -1; }
  .category-option > span { min-height: 105px; }
  .compose-subtitle { padding-inline: 6px; }
  .editor-topbar { top: 0; }
  .editor-topbar .fullscreen-button { display: none; }
  .story-settings > summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .story-settings-body { padding: 20px 15px; }
  .visual-editor-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .editor-insert-menu { position: sticky; top: 8px; left: 0; width: max-content; margin: 8px 0 0 8px; }
  .editor-bubble { max-width: calc(100vw - 20px); overflow-x: auto; }
  .promotion-section { padding: 20px 0 80px; }
  .promotion-card, .promotion-card.promotion-with-image { min-height: 0; padding: 28px; grid-template-columns: 1fr; gap: 45px; }
  .promotion-art { width: min(280px, calc(100% - 12px)); }
  .promotion-body h2 { font-size: clamp(2.3rem, 12vw, 3.8rem); }
  .stat-grid div:nth-child(2) { border-right: 0; }
  .stat-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form-grid, .form-grid.thirds { grid-template-columns: 1fr; gap: 0; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .admin-heading .button { width: 100%; text-align: center; }
  .admin-list article { padding: 22px 0; align-items: flex-start; flex-direction: column; }
  .row-actions { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .row-actions a, .row-actions button { min-height: 40px; display: inline-flex; align-items: center; }
  .editor-form input, .editor-form textarea, .editor-form select, .story-settings input, .story-settings textarea, .story-settings select { font-size: 16px; }
  .editor-form fieldset { margin: 22px 0; padding: 20px 15px; }
  .team-grid { grid-template-columns: 1fr; }
  .admin-access-panel, .pending-admins { padding: 23px 18px; }
  .pending-admins > article { align-items: flex-start; flex-direction: column; }
  .pending-admins article form { width: 100%; }
  .pending-admins article label { flex: 1; }
  .pending-admins article input { width: 100%; }
  .sticky-form-action { width: 100%; bottom: 8px; justify-content: space-between; }
  .sticky-form-action span { display: none; }
}

/* Phone-first polish: preserve the editorial character without desktop-scale spacing. */
@media (max-width: 760px) {
  :root { --page: calc(100% - 32px); --reading: calc(100% - 32px); }
  body { font-size: 15.5px; line-height: 1.62; }
  main { min-width: 0; }
  .eyebrow { margin-bottom: 11px; font-size: .62rem; letter-spacing: .15em; }
  .button { min-height: 46px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; }

  .site-header {
    position: sticky; z-index: 35; top: 0; width: 100%; height: 66px; padding: 0 max(16px, env(safe-area-inset-left));
    border-bottom-color: rgb(220 213 202 / .78); background: rgb(247 244 238 / .9); backdrop-filter: blur(16px);
  }
  .wordmark { font-size: 1.13rem; }
  .menu-toggle { min-width: 62px; min-height: 38px; padding: 7px 13px; background: #fbf8f2; }
  .site-nav { position: fixed; top: 72px; left: 12px; right: 12px; padding: 8px 14px; border-radius: 17px; box-shadow: 0 22px 65px rgb(45 38 31 / .16); }
  .site-nav a { min-height: 48px; padding: 10px 6px; }

  .home-hero { min-height: calc(100svh - 66px); overflow: hidden; padding-top: clamp(66px, 11vh, 96px); padding-bottom: 88px; }
  .home-hero::after { content: ""; position: absolute; z-index: -1; top: 19%; right: -95px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgb(128 85 72 / .075), transparent 68%); }
  .home-hero h1 { margin-bottom: 22px; font-size: clamp(3.05rem, 14.5vw, 4.35rem); line-height: .99; }
  .hero-copy { max-width: 95%; font-size: 1.05rem; line-height: 1.58; }
  .scroll-cue { bottom: 27px; }
  .section, .wide-section { padding-top: 62px; padding-bottom: 68px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2, .page-intro h1 { font-size: clamp(2.35rem, 11vw, 3.45rem); }

  .writing-list { border-top: 0; }
  .writing-row { gap: 10px; margin-bottom: 12px; padding: 23px 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgb(251 248 242 / .68); }
  .writing-row h3 { font-size: 1.62rem; line-height: 1.16; }
  .writing-row > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-family: var(--serif); font-size: .9rem; line-height: 1.6; }
  .writing-meta { gap: 8px; font-size: .58rem; letter-spacing: .06em; }
  .series-card { min-height: 235px; padding: 27px 23px; border-radius: 18px; background: rgb(251 248 242 / .62); }
  .series-card h2, .series-card h3 { font-size: 2.35rem; }

  .page-intro { padding-top: 58px; padding-bottom: 27px; }
  .article-shell { padding: 56px 0 84px; }
  .article-header { margin-bottom: 45px; }
  .article-header h1 { margin-bottom: 18px; font-size: clamp(2.72rem, 12.7vw, 3.85rem); line-height: 1.03; }
  .article-subtitle { font-size: 1.08rem; line-height: 1.6; }
  .article-meta { margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); font-size: .68rem; }
  .featured-image { margin-top: 42px; border-radius: 12px; }
  .prose { font-size: 1.075rem; line-height: 1.84; }
  .prose p { margin-bottom: 1.45em; }
  .prose h2 { margin-top: 2em; font-size: 1.7em; }
  .prose blockquote { margin: 2.15em 0; padding: .2em 0 .2em 1em; font-size: 1.08em; }
  .prose img { margin-top: 2.35em; margin-bottom: 2.35em; border-radius: 10px; }
  .series-navigation { width: calc(100% - 32px); margin-top: 72px; padding-top: 24px; gap: 14px; }

  .series-hero, .book-detail { padding-top: 45px; }
  .series-hero { gap: 30px; }
  .series-hero > img { width: 100%; max-height: none; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: cover; }
  .series-hero h1, .book-detail h1 { font-size: clamp(2.75rem, 12.5vw, 3.9rem); line-height: 1.04; }
  .part-list article { padding: 34px 0; }
  .book-detail { gap: 42px; padding-bottom: 85px; }
  .book-cover-large { width: min(270px, 78%); }
  .book-card { padding: 18px 0; border-bottom: 1px solid var(--line); }

  .promotion-section { padding: 12px 0 65px; }
  .promotion-card, .promotion-card.promotion-with-image { padding: 24px; gap: 34px; border-radius: 20px; }
  .promotion-art { width: min(250px, calc(100% - 12px)); }
  .promotion-body h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); line-height: 1.05; }
  .promotion-description { font-size: .96rem; }

  .discussion-section { width: calc(100% - 24px); margin-bottom: 75px; padding-top: 44px; }
  .discussion-heading h2 { font-size: 2.65rem; }
  .discussion-intro { margin-bottom: 31px; font-size: .95rem; }
  .reaction-guide { border-radius: 0 12px 12px 0; }
  .comment-form { padding: 19px 16px; box-shadow: 0 10px 32px rgb(54 43 33 / .055); }
  .comment-submit .button { width: 100%; }
  .comment-list { margin-top: 48px; }
  .comment-list > .comment-thread { padding: 24px 0 20px; }
  .comment-body { padding-top: 8px; font-size: 1rem; }
  .comment-reactions button { flex: 1; justify-content: center; }
  .auth-cloud { width: calc(100vw - 20px); max-height: calc(100svh - 20px); overflow-y: auto; padding: 22px 20px; }

  .reader-login-shell { min-height: 0; padding: 42px 0 72px; gap: 27px; }
  .reader-login-copy h1 { margin-bottom: 17px; font-size: clamp(2.75rem, 13vw, 3.75rem); line-height: 1.03; }
  .reader-login-copy > p:last-of-type { margin-bottom: 0; font-size: .98rem; }
  .reader-login-copy ul { display: none; }
  .reader-login-card { padding: 25px 22px; border-radius: 18px; }
  .reader-login-card h2 { font-size: 1.8rem; }

  .reader-profile { padding-top: 50px; padding-bottom: 85px; }
  .reader-profile-hero { gap: 15px; padding-bottom: 34px; }
  .reader-profile-hero h1 { font-size: 2.55rem; }
  .reader-profile-hero > div:last-child { min-width: 0; }
  .reader-profile-hero > div:last-child > p:last-child { overflow-wrap: anywhere; }
  .reader-profile-grid { margin-top: 22px; gap: 18px; }
  .reader-profile-main, .reader-profile-side { gap: 18px; }
  .reader-panel { padding: 22px 18px; border-radius: 14px; }
  .reader-panel > header { gap: 10px; }
  .profile-series-row { align-items: flex-start; flex-direction: column; }

  .site-footer { width: calc(100% - 32px); padding: 38px 0 calc(38px + env(safe-area-inset-bottom)); gap: 22px; }

  .admin-shell { width: calc(100% - 20px); margin: 12px auto 80px; }
  .admin-nav { position: sticky; z-index: 18; top: 66px; margin-inline: -2px; padding: 8px 2px 12px; background: linear-gradient(var(--paper) 82%, transparent); }
  .admin-nav a, .admin-nav .text-button { min-height: 42px; border-radius: 999px; background: #fbf8f2; }
  .admin-heading { padding: 20px 2px 27px; }
  .admin-heading h1 { font-size: 2.65rem; }
  .range-tabs { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .analytics-metrics { border-radius: 14px; overflow: hidden; }
  .analytics-metrics article { padding: 20px 16px; }
  .analytics-panel { padding: 21px 17px; border-radius: 14px; }
  .admin-list article { padding: 21px 6px; }
  .visual-editor-wrap { margin-inline: -2px; border-radius: 12px; overflow: clip; }
  .editor-topbar { top: 114px; overflow: hidden; }
  .editor-tool-group { padding-bottom: 2px; scrollbar-width: none; }
  .visual-editor { min-height: 480px; padding: 34px 20px; font-size: 1.06rem; }
  .compose-title { padding-top: 13px; font-size: clamp(2.55rem, 13vw, 3.5rem); }
  .category-options { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .category-option { min-width: 145px; scroll-snap-align: start; }
  .category-option:last-child { grid-column: auto; }
  .category-option > span { min-height: 112px; }
  .story-settings { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
