/* Extend Aeonia's existing ink, parchment and muted metal palette. */
header { gap: 20px; }
header nav { gap: 8px; flex-wrap: wrap; }
header nav a, header nav a[data-view=support] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; padding: 11px 15px; min-height: 44px; white-space: nowrap; line-height: 1.4; }
header nav a.active { border-color: var(--accent); background: var(--surface); }
header nav a.active:after { display: none; }
header nav a:hover { background: var(--surface); border-color: var(--accent); }
.header-actions { gap: 12px; }
.profile-link { gap: 9px; white-space: nowrap; }
.profile-link.active { border-color: var(--accent); color: var(--accent); }
.profile-link svg { flex-shrink: 0; }
.project-links { display: flex; gap: 24px; flex-wrap: wrap; margin: -9px 0 34px; font-size: 14px; }
.project-links a { border-bottom: 1px solid var(--line); padding: 7px 0; color: var(--muted); }
.project-links a:hover { border-color: var(--accent); color: var(--text); }
.project-links span { color: var(--accent); margin-left: 8px; }
.about-view > .eyebrow { margin-top: 38px; }
.about-prose { max-width: 740px; }
.about-prose .lead { font: 26px/1.5 Georgia, serif; color: var(--text); }
.about-prose p, .author-letter p { font-size: 17px; color: var(--muted); }
.about-actions, .profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.signature { font: italic 26px Georgia, serif !important; color: var(--accent) !important; }
.author-layout { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); margin-top: 40px; align-items: start; }
.author-portrait { margin: 0; position: sticky; top: 28px; }
.author-portrait img { display: block; width: 100%; height: auto; max-height: 690px; object-fit: cover; object-position: center; border: 1px solid var(--line); border-radius: 3px; }
.author-portrait figcaption { padding: 18px 0; font: 20px Georgia, serif; letter-spacing: 3px; color: var(--accent); }
.author-portrait figcaption span { display: block; margin-top: 8px; color: var(--muted); font: 14px/1.5 Arial, sans-serif; letter-spacing: 0; }
.author-letter h1 { font-size: clamp(36px, 4vw, 60px); }
.author-letter blockquote { font: italic 23px/1.7 Georgia, serif; border-left: 2px solid var(--accent); margin: 30px 0; padding-left: 24px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 35px; }
.profile-card { border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 3vw, 36px); border-radius: 5px; min-width: 0; }
.profile-card .eyebrow { margin-bottom: 18px; }
.profile-card h2 { font-size: 30px; }
.profile-card p { overflow-wrap: anywhere; }
.profile-card dl { margin: 26px 0; }
.profile-card dt { color: var(--muted); font-size: 14px; margin-top: 18px; }
.profile-card dd { margin: 6px 0; overflow-wrap: anywhere; }
.account-status { display: inline-block; padding: 7px 11px; border: 1px solid var(--line); border-radius: 3px; color: var(--accent); font-size: 14px; }
.profile-card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.payment-history { list-style: none; padding: 0; margin: 0; }
.payment-history li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.payment-history li > div { display: flex; justify-content: space-between; gap: 16px; }
.payment-history p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.cadence-options { display: flex; gap: 20px; padding: 16px 0; margin: 20px 0 0; border: 0; }
.cadence-options legend { margin-bottom: 8px; font-size: 14px; }
.cadence-options label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cadence-options input { accent-color: var(--accent); width: 18px; height: 18px; }
#donation-form-wrap .check { display: flex; gap: 12px; align-items: start; font-size: 14px; line-height: 1.6; margin: 20px 0; }
#donation-form-wrap .check input { flex-shrink: 0; margin-top: 3px; }
#donation-form-wrap > button { margin-top: 18px; width: 100%; justify-content: center; }
.support-terms { max-width: 800px; margin: 36px 0; }
.support-terms p { color: var(--muted); }
.payment-letter { border-left: 2px solid var(--accent); padding: 20px 28px; background: var(--surface); max-width: 870px; margin-top: 25px; }
.payment-letter p:last-child { margin-bottom: 0; }
body { padding-bottom: 80px; }
.music-controls { position: fixed; bottom: 18px; right: 24px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 25px #0004; z-index: 22; max-width: calc(100vw - 32px); }
#music { white-space: nowrap; font-size: 14px; border: 0; padding: 8px 4px; }
#music small { display: inline-block; font-size: 12px; }
.music-controls #volume { width: 65px; accent-color: var(--accent); }
#toast { bottom: 100px; }
.first-tip { position: fixed; z-index: 25; background: var(--text); color: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 16px 40px 16px 18px; box-shadow: 0 6px 24px #0004; font-size: 14px; line-height: 1.5; }
.first-tip button { position: absolute; right: 6px; top: 5px; color: inherit; font-size: 24px; width: 30px; height: 36px; }
.tip-arrow { position: absolute; left: var(--arrow-left); width: 12px; height: 12px; background: var(--text); transform: translateX(-50%) rotate(45deg); }
.first-tip[data-direction=down] .tip-arrow { bottom: -6px; }
.first-tip[data-direction=up] .tip-arrow { top: -6px; }
.bible-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 35px; align-items: start; margin-top: 32px; }
.bible-tabs { position: sticky; top: 24px; max-height: calc(100vh - 70px); overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; padding: 6px; scrollbar-width: thin; }
.bible-tabs button { display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 14px 12px; font-size: 14px; line-height: 1.5; border-left: 2px solid transparent; color: var(--muted); }
.bible-tabs button:hover { background: var(--surface); color: var(--text); }
.bible-tabs button[aria-selected=true] { border-color: var(--accent); color: var(--text); background: var(--surface); }
.bible-tab-number { color: var(--accent); font-size: 12px; min-width: 18px; }
.bible-panels { min-width: 0; }
.bible-panels .extra-prose { margin-top: 0; padding-top: 0; }
.bible-panels h2 { line-height: 1.25; }
.bible-block summary { line-height: 1.5; }
.bible-block summary small { display: inline-block; margin-left: 10px; color: var(--muted); }
@media(max-width:1100px) { header { flex-wrap: wrap; } header nav { order: 3; width: 100%; justify-content: center; } }
@media(max-width:760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .author-layout { grid-template-columns: 1fr; }
  .author-portrait { position: static; max-width: 360px; }
  .author-portrait img { max-height: 480px; object-position: center 38%; }
  .bible-layout { grid-template-columns: 1fr; gap: 25px; }
  .bible-tabs { position: static; max-height: 210px; }
  .bible-tabs button { min-height: 48px; }
}
@media(max-width:650px) {
  header { gap: 18px 8px; }
  header nav { gap: 7px; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  header nav a, header nav a[data-view=support] { font-size: 14px; padding: 10px 8px; }
  .header-actions { margin-left: auto; gap: 5px; }
  .profile-link { padding: 10px; }
  .profile-link span { display: none; }
  .brand { font-size: 14px; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .project-links { gap: 8px 20px; }
  .music-controls { bottom: 12px; right: 16px; gap: 5px; padding: 6px 10px; }
  footer { padding-bottom: 28px; }
  .payment-letter { padding: 18px; }
  .profile-card .profile-actions > * { max-width: 100%; }
  dialog { padding: 35px 24px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .reader-top { flex-wrap: wrap; }
  #reader-location { flex-basis: 100%; order: 3; }
}

.project-links { align-items: center; }
.project-links .author-shortcut { display: inline-flex; align-items: center; gap: 10px; }
.author-shortcut img { border-radius: 50%; object-fit: cover; object-position: center 48%; border: 1px solid var(--accent); flex-shrink: 0; }
.project-links .author-shortcut span { color: inherit; margin: 0; }
.project-links .author-shortcut span[aria-hidden] { color: var(--accent); }
@media(max-width:650px) { header nav a[data-view=support] { grid-column: 1 / -1; } }

/* Equal-height links keep the two lower borders on the same baseline. */
.project-links { align-items: stretch; }
.project-links > a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; }
.project-links > a > span { margin-left: 0; }
.project-links .author-shortcut img { width: 32px; height: 32px; }
#return-reading { display: inline-flex; margin-bottom: 30px; }
.reader-status { flex-wrap: wrap; justify-content: flex-end; }
#save-status { margin-right: auto; }
.annotation-hint { margin: 22px 0; color: var(--muted); font-size: 14px; }
.annotations form > button { display: block; margin: 12px 0 0 auto; }
.comment-compose { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.comment-compose .check { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.comment-body { position: relative; min-height: 58px; }
.comment-body .reveal-spoiler { padding: 12px; font-size: 14px; }
.comment-body.spoiler-blurred { overflow: hidden; }
.comment-actions .vote-button { font-size: 14px; }
@media(max-width:650px) {
 .reader-status { justify-content: flex-start; gap: 10px; }
 #save-status { flex-basis: 100%; }
 .reader-status .text-button { font-size: 14px; }
 .comment-compose { align-items: flex-start; flex-direction: column; }
 .annotation-tabs { gap: 20px; }
 .annotation-tabs button { font-size: 14px; }
}

/* Responsive illustrated entrance and gold identity. */
#preloader{background:#141717;isolation:isolate;overflow:hidden}
#preloader .loader-scene{position:absolute;inset:0;z-index:-3;width:100%;height:100%}
#preloader .loader-scene img{width:100%;height:100%;object-fit:cover;animation:none;margin:0;border-radius:0}
#preloader .loader-vignette{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at center,transparent 15%,rgba(4,8,10,.82) 100%),linear-gradient(0deg,rgba(3,6,8,.75),rgba(3,6,8,.12) 65%);display:block}
#preloader .loader-brand{position:relative;text-align:center;gap:12px;padding:28px;text-shadow:0 2px 16px #000}
#preloader .loader-brand img{width:145px;height:145px;object-fit:contain;filter:drop-shadow(0 3px 20px #000)}
#preloader .loader-brand span,.brand>span{font-family:Georgia,serif;font-weight:600;color:#e6bf76;letter-spacing:.16em}
#preloader .loader-brand span{font-size:clamp(26px,4vw,49px);letter-spacing:.18em}
#preloader .loader-brand b{font-size:12px;letter-spacing:.45em;color:#e9d2a7}
#preloader .loader-brand small{margin-top:20px;color:#f2e5cd;letter-spacing:.15em}
.brand img{object-fit:contain;width:54px;height:64px}.brand small{letter-spacing:.23em}
.music-controls{position:fixed}.music-controls #playlist{position:absolute;bottom:calc(100% + 12px);right:0;width:min(340px,calc(100vw - 32px));padding:20px;background:var(--paper,#191c20);border:1px solid #85704b;border-radius:12px;box-shadow:0 12px 40px #0008;display:grid;gap:14px}
#playlist[hidden]{display:none}.music-controls #playlist select{width:100%}#music-secret{white-space:normal}#secret-count{display:block;font-size:12px}.spoiler-visibility{margin:12px 0 18px}#spoilers-form{display:grid;gap:16px}
.release-notice,#release-notice{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;border-left:2px solid #b69352;padding:16px 20px;margin:24px 0;background:#b693520a}#release-notice .eyebrow{margin:0}.chapter-release{display:block;font-size:11px;opacity:.7;margin-top:5px}.chapter-locked{max-width:620px;margin:50px auto;padding:32px;text-align:center;border:1px solid #b6935255;border-radius:12px}.locked-reading .page-controls,.locked-reading .page-edge{display:none}.early-chapters{display:grid;gap:12px}.batch-note{border-left:2px solid #b69352;padding-left:18px}
@media(max-width:650px){#preloader .loader-brand{align-self:end;margin-bottom:12vh}#preloader .loader-brand img{width:105px;height:105px}#preloader .loader-brand span{font-size:25px;letter-spacing:.12em}.music-controls{max-width:calc(100vw - 24px);gap:8px}#music{max-width:165px;font-size:12px}#playlist-toggle{font-size:12px}.music-controls input[type=range]{width:55px}.brand img{width:42px;height:50px}}
@media(prefers-reduced-motion:reduce){#preloader .loader-brand img{animation:none}}

/* Pre-launch usability and accessibility corrections. */
[data-theme=light] .brand>span{color:#694713}
[data-theme=light]{color-scheme:light}
.reduced-motion #preloader img,.reduced-motion #preloader i{animation:none}
.reduced-motion #preloader{transition:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.early-chapters>button{align-items:flex-start;flex-direction:column;gap:6px;text-align:left}
.chapter-release{font-size:12px}

/* Keep the fixed player operable with long track titles on narrow screens. */
#music{display:flex;flex-wrap:wrap;align-items:center;column-gap:5px;min-width:0;flex:1 1 auto;text-align:left}
#track-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#music small{flex-basis:100%;line-height:1.4}
#playlist-toggle{flex-shrink:0;white-space:nowrap}
.music-controls #volume{flex-shrink:0}
@media(max-width:650px){.music-controls{left:12px;right:12px;max-width:none;width:auto}#music{max-width:none}.music-controls #volume{width:52px}.music-controls #playlist{right:0;width:100%}footer{padding-bottom:104px}}

#mature-dialog{width:min(920px,96vw);max-width:96vw;max-height:96dvh;padding:clamp(20px,4vw,48px);border:2px solid var(--accent)}#mature-dialog::backdrop{background:rgba(0,0,0,.94);backdrop-filter:blur(12px)}#mature-title{font-size:clamp(24px,4vw,40px);line-height:1.15}#mature-scroll{max-height:38dvh;overflow-y:auto;overscroll-behavior:contain;border-block:1px solid var(--line);padding:24px 12px;font-size:clamp(19px,2vw,23px);line-height:1.85}#mature-scroll p{line-height:1.85;margin-bottom:36px}.mature-end{font-weight:bold}.mature-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}#mature-scroll-help,#mature-stage{font-size:13px;margin:12px 0}.mature-actions button{min-height:48px}#mature-stage{color:var(--accent)}
#direct-dialog{width:min(850px,94vw);max-width:94vw}#direct-messages{max-height:40vh;overflow:auto;margin:20px 0;padding:16px;background:var(--surface)}#direct-messages p{white-space:pre-wrap;overflow-wrap:anywhere}#direct-threads{display:flex;gap:10px;overflow:auto;max-height:140px}#direct-threads[hidden]{display:none}#direct-threads button{flex-direction:column;gap:5px;flex-shrink:0}#direct-form,.partnership-card form{display:grid;gap:14px}.author-desk{border:1px solid var(--accent);padding:28px;background:var(--surface);margin-top:28px}.partnership-card input:not([type=checkbox]){width:100%}#music-secret[hidden]{display:none!important}#commercial-dialog .small{overflow-wrap:anywhere}
@media(max-width:650px){#translate-toggle{padding:8px;font-size:12px}.header-actions{gap:6px}header .brand{font-size:13px;gap:6px}header .brand img{width:32px}.mature-actions{flex-direction:column}.mature-actions button{justify-content:center;width:100%}#mature-dialog{padding:18px}#mature-scroll{max-height:34dvh}#mature-title{font-size:23px}#mature-dialog>.eyebrow{margin-bottom:12px}}

#access-form{display:grid;gap:18px}#access-form input:not([type=checkbox]){width:100%}.access-tabs{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}#access-signup-fields{display:grid;gap:14px}#access-signup-fields[hidden]{display:none}

.access-password-control{display:flex;align-items:center;gap:8px}.access-password-control input{min-width:0;flex:1}.access-password-control button{flex:0 0 40px;width:40px;height:40px;padding:8px;display:grid;place-items:center}.access-password-control button[hidden]{display:none}.access-tabs [aria-pressed="true"]{text-decoration:underline;text-underline-offset:5px}
