/* libris — "The Living Word" brand identity (design system: libris with brand identity) */
:root {
  --paper: #FAF7F2; --surface: #F6ECE1; --line: #E8DED2;
  --ink: #1A1D24; --ink-muted: #585F6E;
  --coral: #E85D44; --accent: #B83A26; --on-accent: #FFFFFF; --accent-soft: #FCE5DF;
  --amber: #F5A623; --on-amber: #1A1D24; --amber-text: #9A5B00;
  --alert: #B42318;
  --link: var(--accent); --focus: var(--accent);
  --field: #FFFFFF;

  --font-sans: "libris-ui", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Literata", "Noto Serif", Georgia, serif;

  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 24px; --radius-pill: 9999px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12141A; --surface: #1B1E26; --line: #2A2E38;
    --ink: #F3EFEA; --ink-muted: #8E95A5;
    --accent: #E85D44; --on-accent: #12141A; --accent-soft: #3A1D18;
    --amber-text: #F5A623; --alert: #FF8A7A; --field: #1B1E26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12141A; --surface: #1B1E26; --line: #2A2E38;
  --ink: #F3EFEA; --ink-muted: #8E95A5;
  --accent: #E85D44; --on-accent: #12141A; --accent-soft: #3A1D18;
  --amber-text: #F5A623; --alert: #FF8A7A; --field: #1B1E26;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.45 var(--font-sans); font-variant-numeric: tabular-nums;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-10); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type styles */
.display { font-size: clamp(36px, 7vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; }
.title { font-size: clamp(26px, 4vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.heading { font-size: 22px; line-height: 28px; font-weight: 700; }
.label { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-muted); }
.hl { color: var(--coral); }
.spark { display: inline-block; width: .7em; height: .7em; vertical-align: .55em; margin-left: .08em; color: var(--coral); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.wordmark { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.03em; color: var(--coral); text-decoration: none; }
.wordmark small { font-size: .5em; letter-spacing: 0; }
.wordmark:hover { opacity: .85; }
.nav { display: flex; gap: var(--space-1); align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: var(--space-2) 12px; border-radius: var(--radius-pill); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.search { flex: 1; min-width: 0; max-width: 360px; margin-left: auto; }
.search input { width: 100%; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); color: var(--ink); }
.bell:hover { background: var(--accent-soft); }
.bell .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: var(--radius-pill); }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + var(--space-2)); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2); display: flex; flex-direction: column; z-index: 20; }
.menu-panel a, .menu-panel button { all: unset; cursor: pointer; padding: var(--space-2) 12px; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--accent-soft); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-1) 0; }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .nav, .search { display: none; }
  .header-actions { margin-left: auto; }
  body { padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-nav a { flex: 1; text-align: center; padding: 10px 4px; color: var(--ink-muted); text-decoration: none; font-size: 12px; font-weight: 600; }
  .mobile-nav a[aria-current="page"] { color: var(--accent); }
}

/* ---------- buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid transparent; font: 600 14px/20px var(--font-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease-out, background-color .15s ease-out; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-danger { background: transparent; color: var(--alert); border-color: var(--alert); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn[aria-pressed="true"].btn-like { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn[aria-pressed="true"].btn-follow { background: var(--surface); color: var(--ink); border-color: var(--ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .btn-like[aria-pressed="true"] svg { animation: pop .3s ease-out; }
  @keyframes pop { 50% { transform: scale(1.3); } }
}
.inline-form { display: inline; margin: 0; }

input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--field);
  border: 1.5px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 8px 12px;
}
input[type=search] { border-radius: var(--radius-pill); padding-inline: 16px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field > label, .field legend { font-weight: 600; font-size: 14px; }
.field .help { font-size: 13px; color: var(--ink-muted); }
.field .errors { color: var(--alert); font-size: 13px; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.field-check { flex-direction: row; align-items: flex-start; gap: var(--space-2); }
.field-check label { font-weight: 400; }
.radio-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.radio-list label { display: flex; gap: var(--space-2); align-items: center; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.form-narrow { max-width: 480px; margin: var(--space-10) auto; }

.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--ink-muted); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--ink); }
.badge-amber { background: var(--amber); color: var(--on-amber); }
.badge-draft { background: var(--paper); border: 1px dashed var(--ink-muted); color: var(--ink-muted); }
.badge-mature { background: var(--ink); color: var(--paper); }

/* ---------- messages ---------- */
.messages { list-style: none; margin: var(--space-4) auto 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.messages li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px var(--space-4); font-weight: 600; font-size: 14px; }
.messages li.success::before { content: "✓ "; color: var(--amber); }
.messages li.error { border-color: var(--alert); color: var(--alert); }

/* ---------- covers & story cards ---------- */
.cover { aspect-ratio: 2 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-type { display: flex; flex-direction: column; justify-content: space-between; padding: 14px; height: 100%; }
.cover-type .ct-title { font-weight: 800; font-size: clamp(15px, 1.6vw, 20px); line-height: 1.12; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cover-type .ct-spark { width: 26%; aspect-ratio: 1; align-self: flex-end; }
.cover-type .ct-author { font-size: 12px; font-weight: 600; }
.cv-0 { background: var(--coral); color: #1A1D24; border-color: transparent; }
.cv-1 { background: var(--ink); color: var(--paper); border-color: transparent; }
.cv-1 .ct-spark { color: var(--coral); }
.cv-2 { background: var(--surface); color: var(--ink); }
.cv-2 .ct-spark { color: var(--coral); }
.cv-3 { background: var(--amber); color: #1A1D24; border-color: transparent; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-6) var(--space-4); }
@media (max-width: 480px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story-card { display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: var(--ink); min-width: 0; }
.story-card:hover .cover { transform: translateY(-2px); }
.story-card .cover { transition: transform .15s ease-out; }
.story-card .sc-title { font-weight: 700; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.story-card .sc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.story-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); align-items: start; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }

/* ---------- home hero ---------- */
.hero { padding-block: var(--space-10); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.hero p.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 46ch; margin-top: var(--space-4); }
.hero .row { margin-top: var(--space-6); }
.genre-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- story page ---------- */
.story-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-10); padding-block: var(--space-10) var(--space-6); }
@media (max-width: 640px) { .story-head { grid-template-columns: 1fr; gap: var(--space-6); } .story-head .cover { max-width: 200px; } }
.stats { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 20px; line-height: 24px; }
.blurb { white-space: pre-line; max-width: 65ch; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a, .toc .toc-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 14px 4px; color: var(--ink); text-decoration: none; }
.toc a:hover { background: var(--accent-soft); }
.author-chip { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--amber); color: var(--on-amber); display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.avatar-lg { width: 96px; height: 96px; font-size: 40px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-10); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }

/* ---------- reader ---------- */
.reader { max-width: 68ch; margin: 0 auto; padding-block: var(--space-10); }
.reader-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-10); }
.reader .story-title { font: 600 30px/36px var(--font-serif); text-wrap: balance; }
.prose { font: 400 19px/1.75 var(--font-serif); }
.prose p { margin: 0 0 1em; }
.prose p + p { text-indent: 1.5em; margin-top: -0.4em; }
.prose blockquote { margin: 1em 0; padding-left: 1em; border-left: 2px solid var(--line); color: var(--ink-muted); font-style: italic; }
.prose h2, .prose h3 { font-family: var(--font-serif); margin: 1.4em 0 .6em; }
.prose hr { border: 0; text-align: center; margin: 2em 0; }
.prose hr::after { content: "* * *"; color: var(--ink-muted); letter-spacing: .5em; }
.prose ::selection { background: var(--amber); color: var(--on-amber); }
.author-note { background: var(--accent-soft); border-radius: var(--radius-md); padding: var(--space-4); font-size: 15px; }
.chapter-nav { display: flex; justify-content: space-between; gap: var(--space-4); margin-block: var(--space-10); }
.chapter-nav .btn { white-space: normal; text-align: center; }
.reader-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); padding-block: var(--space-6); border-block: 1px solid var(--line); }

/* ---------- comments ---------- */
.comments { display: flex; flex-direction: column; gap: var(--space-6); }
.comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.comment-body { white-space: pre-line; overflow-wrap: anywhere; }
.comment .replies { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.comment details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-muted); list-style: none; }
.comment-actions { display: flex; gap: var(--space-4); margin-top: 4px; }
.link-btn { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- writing ---------- */
.works { display: flex; flex-direction: column; gap: var(--space-4); }
.work { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; }
@media (max-width: 560px) { .work { grid-template-columns: 64px minmax(0, 1fr); } .work .row:last-child { grid-column: 1 / -1; } }
.editor-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.editor-shell trix-toolbar { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-2); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.editor-shell trix-toolbar .trix-button-group--file-tools { display: none; }
.editor-shell trix-toolbar .trix-button-group { border-color: var(--line); }
.editor-shell trix-toolbar .trix-button { border-color: var(--line); }
:root[data-theme="dark"] .editor-shell trix-toolbar .trix-button--icon::before { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .editor-shell trix-toolbar .trix-button--icon::before { filter: invert(1); } }
.editor-shell trix-editor { border: 0; min-height: 60vh; padding: var(--space-6) clamp(16px, 5vw, 56px); font: 400 19px/1.75 var(--font-serif); color: var(--ink); max-width: 68ch; margin: 0 auto; }
.editor-shell trix-editor:focus { outline: none; }
.editor-shell:focus-within { border-color: var(--focus); }
.word-counter { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: var(--space-2) var(--space-4); border-radius: 0 0 var(--radius-md) var(--radius-md); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- profile ---------- */
.profile-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-6); align-items: center; padding-block: var(--space-10) var(--space-6); }
.profile-band { height: 96px; background: var(--coral) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2764%27%20height%3D%2764%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cpath%20fill%3D%27%23FAF7F2%27%20d%3D%27M16%204%20Q16%2016%2028%2016%20Q16%2016%2016%2028%20Q16%2016%204%2016%20Q16%2016%2016%204Z%27/%3E%3Cpath%20fill%3D%27%23FAF7F2%27%20d%3D%27M48%2042%20Q48%2048%2054%2048%20Q48%2048%2048%2054%20Q48%2048%2042%2048%20Q48%2048%2048%2042Z%27/%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23FAF7F2%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20d%3D%27M40%2016%20A%2016%2016%200%200%200%2056%2032%27/%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23FAF7F2%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20d%3D%27M8%2048%20A%2016%2016%200%200%201%2024%2064%27/%3E%3C/svg%3E") 0 0 / 64px 64px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- notifications ---------- */
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notes li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.notes li.unread { background: var(--accent-soft); }
.notes a { color: var(--ink); }

/* ---------- empty, pagination, footer ---------- */
.empty { text-align: center; padding: var(--space-10) var(--space-4); border: 1.5px dashed var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-10); }
.site-footer { border-top: 1px solid var(--line); margin-top: var(--space-10); padding-block: var(--space-6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer a { color: var(--ink-muted); font-size: 13px; }
.page-pad { padding-block: var(--space-10); }

/* tiny covers (reader header, feed rows): colour block only */
.cover-mini .cover-type > * { display: none; }
.cover-mini .cover { border-radius: var(--radius-sm); }

/* ---------- brand pattern (sparkles + quarter arcs) ---------- */
.hero-art { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-4); align-items: end; }
.hero-art .slab { background: var(--coral); border-radius: var(--radius-lg); aspect-ratio: 3 / 4.4; display: grid; place-items: start end; padding: var(--space-6); }
.hero-art .slab svg { width: 42%; color: #FAF7F2; }
.hero-art .page { background: var(--surface) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2764%27%20height%3D%2764%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cpath%20fill%3D%27%23E85D44%27%20d%3D%27M16%204%20Q16%2016%2028%2016%20Q16%2016%2016%2028%20Q16%2016%204%2016%20Q16%2016%2016%204Z%27/%3E%3Cpath%20fill%3D%27%23E85D44%27%20d%3D%27M48%2042%20Q48%2048%2054%2048%20Q48%2048%2048%2054%20Q48%2048%2042%2048%20Q48%2048%2048%2042Z%27/%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23E85D44%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20d%3D%27M40%2016%20A%2016%2016%200%200%200%2056%2032%27/%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23E85D44%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20d%3D%27M8%2048%20A%2016%2016%200%200%201%2024%2064%27/%3E%3C/svg%3E") center / 64px 64px; border-radius: var(--radius-lg); aspect-ratio: 1; }
.hero-art .pill { grid-column: 2; height: 40px; width: 45%; border-radius: var(--radius-pill); background: var(--amber); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 360px; } }
.brand-band { background: var(--coral) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2764%27%20height%3D%2764%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cpath%20fill%3D%27%23FAF7F2%27%20d%3D%27M16%204%20Q16%2016%2028%2016%20Q16%2016%2016%2028%20Q16%2016%204%2016%20Q16%2016%2016%204Z%27/%3E%3Cpath%20fill%3D%27%23FAF7F2%27%20d%3D%27M48%2042%20Q48%2048%2054%2048%20Q48%2048%2048%2054%20Q48%2048%2042%2048%20Q48%2048%2048%2042Z%27/%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23FAF7F2%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20d%3D%27M40%2016%20A%2016%2016%200%200%200%2056%2032%27/%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%23FAF7F2%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20d%3D%27M8%2048%20A%2016%2016%200%200%201%2024%2064%27/%3E%3C/svg%3E") 0 0 / 64px 64px; border-radius: var(--radius-lg); padding: var(--space-10) var(--space-6); color: #1A1D24; }
.brand-band .inner { background: var(--paper); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-6); max-width: 560px; display: flex; flex-direction: column; gap: var(--space-4); }

/* ---------- self-publishing ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); counter-reset: step; }
.steps a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 14px 0 6px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.steps a span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); font-size: 13px; }
.steps li.done a span { background: var(--amber); color: var(--on-amber); }
.steps li[aria-current="step"] a { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.steps li[aria-current="step"] a span { background: var(--on-accent); color: var(--accent); }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.issues li { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.issues li.error { border-color: var(--alert); }
.badge-error { background: var(--alert); color: var(--paper); }
.badge-warn { background: var(--amber); color: var(--on-amber); }
.summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--space-4); margin: 0; }
.summary dt { font-weight: 600; font-size: 14px; color: var(--ink-muted); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.how { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--space-2); max-width: 70ch; }
.contrib { border: 0; border-top: 1px solid var(--line); padding: var(--space-4) 0 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.status-draft, .status-pending, .status-created, .status-note { background: var(--paper); border: 1px dashed var(--ink-muted); color: var(--ink-muted); }
.status-submitted, .status-in_review, .status-exported { background: var(--accent-soft); color: var(--ink); }
.status-changes, .status-failed { background: var(--alert); color: var(--paper); }
.status-approved { background: var(--amber); color: var(--on-amber); }
.status-live { background: var(--ink); color: var(--paper); }
.status-withdrawn { background: var(--line); color: var(--ink); }
input[type=date], input[type=number], input[type=file] { font: inherit; color: var(--ink); }
input[type=date], input[type=number] { width: 100%; background: var(--field); border: 1.5px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 8px 12px; }
