:root {
  --paper:#f6f3ec;
  --surface:#eeebe3;
  --ink:#202923;
  --muted:#656b63;
  --copper:#a35f42;
  --line:#c9ccc2;
  --error:#913c36;
  --success:#32614d;
  --serif:Georgia,'Times New Roman',serif;
  --sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color-scheme:light;
  font-family:var(--sans);
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  min-width:320px
}
button,input,select,textarea {
  font:inherit
}
button,a,input,summary {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
p {
  line-height:1.65
}
button[disabled] {
  cursor:wait;
  opacity:.55
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:2px solid var(--copper);
  outline-offset:5px
}
button,input {
  border-radius:3px
}
button {
  color:inherit
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  font-family:var(--serif);
  font-weight:400
}
h1 {
  font-size:clamp(2.6rem,4.25vw,4.5rem);
  line-height:1.08;
  letter-spacing:-.045em;
  margin-bottom:24px
}
h2 {
  font-size:2rem;
  line-height:1.2;
  letter-spacing:-.025em;
  margin-bottom:20px
}
h3 {
  font-size:1.6rem;
  line-height:1.2;
  margin-bottom:8px
}
hr {
  border:0;
  border-top:1px solid var(--line)
}
[hidden] {
  display:none!important
}
.shell {
  width:87.5%;
  max-width:1344px;
  margin:0 auto
}
.site-header {
  height:87px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:42px
}
.wordmark {
  font-family:var(--serif);
  font-size:25px;
  letter-spacing:.28em;
  white-space:nowrap
}
.primary-nav,.utility-nav {
  display:flex;
  align-items:center;
  gap:30px;
  font-size:14px
}
.utility-nav {
  margin-left:auto;
  gap:25px
}
.site-header a:not(.wordmark):hover,.site-header a[aria-current] {
  color:var(--copper)
}
.language-switch {
  border-left:1px solid var(--line);
  padding-left:20px;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap
}
.language-switch .text-button {
  font-size:13px
}
.text-button {
  background:none;
  border:0;
  padding:4px 0;
  color:inherit;
  font-size:inherit;
  text-align:left
}
.text-button.active {
  color:var(--copper);
  text-decoration:underline;
  text-underline-offset:7px
}
.site-main {
  min-height:calc(100vh - 210px);
  padding-bottom:52px
}
.hero {
  display:grid;
  grid-template-columns:1.12fr 1fr;
  align-items:center;
  min-height:428px;
  padding:30px 0 28px;
  border-bottom:1px solid var(--line);
  gap:15px
}
.hero-copy {
  padding-left:30px;
  position:relative;
  z-index:1
}
.hero h1 {
  font-size:clamp(2.8rem,4.65vw,4.5rem);
  line-height:1.03;
  margin-bottom:22px;
  max-width:760px;
  letter-spacing:-.05em
}
.hero p {
  font-size:18px;
  line-height:1.6;
  color:#535a53;
  margin-bottom:27px
}
.hero-actions {
  display:flex;
  gap:30px;
  align-items:center
}
.hero-art {
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden
}
.hero-art img {
  width:114%;
  max-width:none;
  display:block;
  mix-blend-mode:multiply;
  object-fit:contain
}
.button {
  background:var(--ink);
  color:var(--paper);
  border:1px solid var(--ink);
  border-radius:3px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  min-height:42px;
  padding:10px 18px;
  font-size:14px;
  font-weight:500;
  line-height:1.25;
  text-align:center;
  transition:background .15s,border-color .15s,transform .15s;
  white-space:nowrap
}
.button:hover {
  background:#3b473f;
  border-color:#3b473f
}
.button.large {
  min-height:50px;
  padding:12px 26px;
  font-size:16px
}
.button.secondary {
  background:transparent;
  color:var(--ink);
  border-color:var(--line)
}
.button.secondary:hover {
  border-color:var(--ink);
  background:var(--surface)
}
.button.danger {
  background:var(--error);
  border-color:var(--error);
  color:#fff
}
.button.full {
  width:100%
}
.inline-link {
  color:var(--copper);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:5px;
  display:inline-flex;
  align-items:center;
  gap:13px;
  font-family:var(--serif);
  font-size:17px
}
.inline-link:hover {
  color:var(--ink)
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:27px 0 20px
}
.section-heading h2 {
  margin:0
}
.filters {
  display:flex;
  gap:25px;
  flex-wrap:wrap
}
.filters .text-button {
  font-family:var(--serif);
  font-size:16px
}
.story-row {
  display:grid;
  grid-template-columns:93px minmax(170px,.9fr) minmax(240px,1.25fr) auto;
  gap:26px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:17px 0;
  min-height:130px
}
.story-row:last-child {
  border-bottom:0
}
.story-name h3 {
  font-size:27px;
  margin-bottom:6px;
  letter-spacing:-.03em
}
.story-name h3 a:hover {
  color:var(--copper)
}
.byline {
  font-family:var(--serif);
  font-size:13px;
  letter-spacing:.1em;
  margin-bottom:0
}
.story-description {
  font-family:var(--serif);
  font-size:16px;
  line-height:1.45;
  margin:0;
  color:#555c53
}
.story-action {
  display:flex;
  align-items:center;
  gap:21px
}
.small-label {
  font-size:11px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--copper);
  display:block
}
.story-action .small-label {
  white-space:nowrap;
  font-size:10px;
  letter-spacing:.15em
}
.story-action .button {
  font-family:var(--serif);
  font-size:15px;
  font-weight:400
}
.book-cover {
  width:92px;
  aspect-ratio:2/2.85;
  padding:7px 6px 7px 10px;
  background:#233b33;
  color:#dfb182;
  position:relative;
  box-shadow:4px 4px 8px #20292316,inset 3px 0 2px #ffffff1f,inset -3px 0 0 #00000030;
  border-radius:1px 3px 3px 1px;
  overflow:hidden;
  flex-shrink:0
}
.cover-inner {
  border:1px solid #b8946538;
  height:100%;
  display:flex;
  align-items:center;
  text-align:center;
  flex-direction:column;
  padding:9px 5px;
  position:relative
}
.cover-brand {
  font-size:4px;
  font-family:var(--sans);
  letter-spacing:.2em;
  opacity:.7
}
.cover-title {
  font-family:var(--serif);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:10px;
  line-height:1.3;
  margin-top:9px;
  z-index:1
}
.cover-author {
  font-family:var(--serif);
  font-size:4px;
  letter-spacing:.15em;
  text-transform:uppercase;
  margin-top:auto;
  z-index:1
}
.cover-art {
  height:37%;
  width:100%;
  position:absolute;
  bottom:19%;
  left:0;
  background:repeating-radial-gradient(ellipse at 120% 190%,transparent 0 5px,#b8936050 6px 7px);
  border-top:1px solid #b8936030
}
.light .cover-art:before {
  content:'';
  position:absolute;
  left:49%;
  bottom:28%;
  width:9%;
  height:73%;
  border:1px solid #be976b;
  clip-path:polygon(25% 0,75% 0,100% 100%,0 100%);
  background:#c99c6938
}
.light .cover-art:after {
  content:'';
  position:absolute;
  border:1px solid #be976b;
  background:#be976b9a;
  border-radius:50%;
  width:13px;
  height:13px;
  right:10%;
  top:-28%
}
.glass {
  background:#e1d9c7;
  color:#3b453c
}
.glass .cover-art {
  background:repeating-radial-gradient(ellipse at 50% 120%,transparent 0 9px,#9b917331 10px 13px);
  border:0;
  height:57%;
  bottom:10%
}
.glass .cover-art:after {
  content:'';
  position:absolute;
  border:5px solid #c1b59d;
  border-radius:48% 48% 0 0;
  border-bottom:0;
  width:38%;
  height:90%;
  bottom:0;
  left:30%
}
.map {
  background:#526f76;
  color:#f3e7c5
}
.map .cover-art {
  background:repeating-radial-gradient(ellipse at 0% 100%,transparent 0 11px,#e3d6b840 12px 16px);
  height:50%;
  border-top:1px solid #e3d6b845;
  bottom:10%
}
.cover-link {
  display:block
}
.site-footer {
  border-top:1px solid var(--line);
  min-height:72px;
  display:flex;
  align-items:center;
  gap:25px;
  font-size:11px;
  color:var(--muted);
  line-height:1.5
}
.site-footer a {
  text-decoration:underline;
  text-underline-offset:3px
}
.footer-wordmark {
  margin-left:auto;
  letter-spacing:.35em;
  font-family:var(--serif);
  font-size:12px;
  color:var(--ink)
}
.page-heading {
  padding:60px 0 24px;
  max-width:900px
}
.page-heading h1 {
  font-size:clamp(2.6rem,4vw,4rem)
}
.page-heading p {
  color:var(--muted);
  font-size:18px
}
.back-link {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--copper);
  font-family:var(--serif);
  font-size:17px;
  margin-top:30px;
  margin-bottom:30px
}
.book-detail {
  display:grid;
  grid-template-columns:270px 1fr;
  gap:65px;
  padding:20px 8% 48px;
  align-items:center
}
.large-cover {
  width:250px;
  padding:18px 16px 18px 25px
}
.large-cover .cover-inner {
  padding:30px 15px
}
.large-cover .cover-brand {
  font-size:9px
}
.large-cover .cover-title {
  font-size:28px;
  margin-top:25px
}
.large-cover .cover-author {
  font-size:9px
}
.large-cover .light .cover-art:after,.large-cover .cover-art:after {
  width:35px;
  height:35px
}
.book-detail h1 {
  margin-top:16px;
  max-width:700px
}
.book-detail .byline {
  font-size:16px;
  margin-bottom:28px
}
.lead {
  font-family:var(--serif);
  font-size:23px;
  color:var(--muted);
  line-height:1.55
}
.book-facts {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
  padding:5px 0 26px
}
.book-facts span+span:before {
  content:'·';
  margin-right:20px
}
.fine-print {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  margin:14px 0
}
.chapter-section {
  border-top:1px solid var(--line)
}
.chapter-list {
  list-style:none;
  padding:0
}
.chapter-list li {
  display:flex;
  align-items:center;
  gap:30px;
  padding:22px 0;
  border-bottom:1px solid var(--line)
}
.chapter-number {
  font-family:var(--serif);
  font-size:19px;
  color:var(--copper)
}
.chapter-list h3 {
  font-size:23px
}
.chapter-list .muted {
  font-size:13px
}
.chapter-price {
  margin-left:auto;
  font-size:14px
}
.muted {
  color:var(--muted)
}
.copper {
  color:var(--copper)
}
.success-text {
  color:var(--success)
}
.error-text {
  color:var(--error)
}
.empty-state {
  text-align:center;
  padding:70px 20px;
  border-top:1px solid var(--line)
}
.empty-state p {
  color:var(--muted);
  max-width:560px;
  margin:0 auto 26px
}
.notice {
  background:#ecefe8;
  border-left:3px solid #8e9d86;
  padding:15px 18px;
  font-size:14px;
  line-height:1.6;
  margin:20px 0;
  color:var(--ink)
}
.notice a {
  text-decoration:underline;
  text-underline-offset:3px
}
.notice.warning {
  background:#f1e8d8;
  border-color:#b1844c
}
.notice.error {
  background:#f3e5df;
  border-color:var(--error);
  color:#752e29
}
.library-list {
  border-top:1px solid var(--line)
}
.library-row {
  display:flex;
  gap:30px;
  padding:30px 0;
  border-bottom:1px solid var(--line);
  align-items:center
}
.library-row h2 {
  margin:8px 0
}
.library-row p {
  color:var(--muted);
  font-size:13px;
  margin-bottom:14px
}
.prose-page {
  max-width:770px;
  margin:0 auto;
  padding-bottom:20px
}
.prose-page h1 {
  margin-top:10px
}
.prose-page h2 {
  margin-top:37px;
  font-size:28px
}
.prose-page p {
  line-height:1.8
}
.reader-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:var(--serif);
  font-size:15px
}
.reader-top .back-link {
  margin:28px 0
}
.reader-layout {
  display:grid;
  grid-template-columns:240px 1fr;
  gap:65px
}
.reader-rail {
  border-right:1px solid var(--line);
  padding-right:23px;
  display:flex;
  flex-direction:column
}
.chapter-disclosure summary {
  font-family:var(--serif);
  font-size:24px;
  list-style:none;
  cursor:pointer;
  padding:15px 0 20px
}
.chapter-disclosure summary::-webkit-details-marker {
  display:none
}
.reader-chapters {
  list-style:none;
  padding:0;
  margin:0
}
.reader-chapters li {
  display:flex;
  gap:15px;
  padding:15px 12px;
  margin:0 0 5px;
  line-height:1.4;
  font-family:var(--serif);
  font-size:18px
}
.reader-chapters li.selected {
  background:#dfd7c94d;
  border-radius:3px
}
.reader-chapters li div span {
  font-family:var(--sans);
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-top:5px
}
.reader-chapters .chapter-number {
  font-size:15px;
  margin-top:2px
}
.path-panel {
  border-top:1px solid var(--line);
  margin-top:70px;
  padding-top:25px
}
.path-panel h2 {
  font-size:24px
}
.path-panel>p {
  font-size:13px
}
.history-list {
  list-style:none;
  padding:0;
  margin:0 0 20px
}
.history-list li {
  position:relative;
  padding:0 0 18px 17px;
  border-left:1px solid var(--line);
  margin-left:4px;
  font-size:12px;
  line-height:1.45
}
.history-list li:before {
  content:'';
  width:7px;
  height:7px;
  background:var(--copper);
  border-radius:50%;
  position:absolute;
  left:-4px;
  top:4px
}
.history-list button {
  display:block;
  color:var(--copper);
  font-size:11px;
  margin-top:3px
}
.reader-main {
  min-width:0
}
.reading-preferences {
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:flex-end;
  padding:11px 0 40px;
  font-size:13px
}
.reading-preferences>span {
  margin-right:7px;
  color:var(--muted)
}
.reading-preferences [data-theme=light] {
  border-left:1px solid var(--line);
  padding-left:18px
}
.reader-article {
  max-width:720px;
  margin:0 auto;
  padding:0 0 40px
}
.reader-article>.small-label {
  margin:10px 0 14px
}
.reader-article h1 {
  font-size:clamp(2.8rem,4.5vw,4.4rem);
  margin-bottom:28px
}
.story-prose {
  font-family:var(--serif);
  font-size:var(--reading-size,21px);
  line-height:1.8
}
.story-prose p {
  line-height:1.8;
  margin:0 0 1.3em
}
.choices {
  padding-top:10px
}
.choices h2 {
  font-size:27px;
  margin-bottom:20px
}
.choice {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  text-align:left;
  background:transparent;
  border:1px solid #838c80;
  border-radius:3px;
  padding:17px 22px;
  gap:20px;
  margin-bottom:12px;
  font-family:var(--serif);
  font-size:20px;
  line-height:1.5;
  transition:background .18s,border-color .18s
}
.choice>span:last-child {
  color:var(--copper);
  font-size:26px
}
.choice:hover {
  background:var(--surface);
  border-color:var(--ink)
}
.paywall {
  text-align:center;
  max-width:600px;
  margin:35px auto;
  padding:30px 20px
}
.paywall-symbol {
  font-family:var(--serif);
  font-size:55px;
  color:var(--copper);
  margin-bottom:10px
}
.paywall h1 {
  font-size:45px;
  margin:16px 0 20px
}
.paywall>p {
  font-size:17px;
  color:var(--muted)
}
.unlock-price {
  font-family:var(--serif);
  font-size:52px;
  margin:22px 0
}
.unlock-price span {
  display:block;
  font-family:var(--sans);
  font-size:12px;
  color:var(--muted);
  margin-top:8px
}
.paywall .inline-link {
  display:table;
  margin:20px auto
}
.story-ending {
  text-align:center;
  border-top:1px solid var(--line);
  padding:35px 0;
  margin-top:30px
}
.ending-mark {
  font-size:38px;
  color:var(--copper)
}
.story-ending h2 {
  margin-top:15px
}
.reader-dark {
  --paper:#202923;
  --surface:#2b352e;
  --ink:#ede8dc;
  --muted:#b0b6a9;
  --copper:#d59b76;
  --line:#4a554a;
  background:var(--paper);
  color:var(--ink);
  color-scheme:dark
}
.reader-dark .notice {
  background:#313d30
}
.reader-dark .notice.warning {
  background:#463b2d
}
.reader-dark .notice.error {
  background:#4f302c;
  color:#f4c5b4
}
.reader-dark .reader-chapters li.selected {
  background:#384032
}
.auth-layout {
  display:grid;
  grid-template-columns:1fr 440px;
  gap:100px;
  max-width:1000px;
  margin:70px auto 30px;
  align-items:start
}
.auth-intro {
  padding-top:26px
}
.ornament {
  font-size:50px;
  color:var(--copper);
  display:block;
  margin-bottom:30px
}
.auth-intro h1 {
  font-size:56px
}
.auth-intro p {
  font-size:18px;
  color:var(--muted)
}
.auth-card {
  border-left:1px solid var(--line);
  padding-left:55px
}
.auth-card h2 {
  font-size:29px;
  margin-bottom:28px
}
.field {
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-bottom:20px;
  font-size:13px
}
.field input {
  width:100%;
  background:#faf8f1;
  border:1px solid #b5b9ad;
  min-height:48px;
  padding:11px 13px;
  color:var(--ink);
  font-size:16px
}
.field input:focus {
  border-color:var(--copper);
  outline-offset:2px
}
.auth-links {
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:22px 0 0;
  font-size:12px;
  color:var(--copper)
}
.auth-links a {
  text-decoration:underline;
  text-underline-offset:4px
}
.dev-note {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:35px
}
.account-layout {
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:70px;
  margin:15px 0 45px
}
.account-panel {
  border-top:1px solid var(--line);
  padding-top:25px
}
.account-panel h2 {
  font-size:32px
}
.detail-list {
  margin:25px 0
}
.detail-list>div {
  display:flex;
  justify-content:space-between;
  gap:25px;
  border-bottom:1px solid var(--line);
  padding:18px 0;
  font-size:14px
}
.detail-list dt {
  color:var(--muted)
}
.detail-list dd {
  margin:0;
  text-align:right;
  overflow-wrap:anywhere
}
.panel-actions {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding-top:22px;
  margin-top:35px;
  font-size:13px;
  color:var(--copper)
}
.account-links>a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:30px 0;
  border-top:1px solid var(--line);
  gap:20px
}
.account-links>a:hover {
  color:var(--copper)
}
.account-links h2 {
  margin-bottom:8px;
  font-size:27px
}
.account-links p {
  margin-bottom:0;
  color:var(--muted);
  font-size:13px
}
.account-links>a>span {
  font-size:28px;
  color:var(--copper)
}
.wallet-balance {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:28px 0 25px;
  margin-top:25px
}
.balance-number {
  font-family:var(--serif);
  font-size:70px;
  letter-spacing:-.04em;
  margin-top:10px
}
.balance-number>span {
  font-family:var(--sans);
  font-size:16px;
  letter-spacing:0;
  margin-left:16px;
  color:var(--muted)
}
.balance-details {
  min-width:290px;
  font-size:13px
}
.balance-details p {
  display:flex;
  justify-content:space-between;
  gap:50px;
  margin-bottom:8px
}
.balance-details p span {
  color:var(--muted)
}
.products {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:35px;
  padding:8px 0 20px
}
.product {
  border-top:1px solid var(--line);
  padding:26px 0 10px;
  display:flex;
  flex-direction:column;
  align-items:flex-start
}
.product h3 {
  font-size:28px;
  margin:15px 0
}
.product>p {
  font-size:14px;
  color:var(--muted);
  min-height:46px
}
.product-amount {
  font-family:var(--serif);
  font-size:38px;
  margin-top:auto
}
.product-amount>span {
  font-family:var(--sans);
  font-size:11px;
  color:var(--muted);
  display:block;
  margin:6px 0 18px
}
.product .coin-total {
  min-height:0;
  color:var(--copper);
  font-size:13px;
  margin-bottom:20px
}
.ledger-section {
  margin-top:45px
}
.ledger-section h2 {
  font-size:28px
}
.simple-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  padding:19px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}
.simple-row p {
  margin:5px 0 0;
  font-size:12px
}
.table-wrap {
  overflow:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:13px
}
th {
  font-weight:500;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.09em
}
td,th {
  border-bottom:1px solid var(--line);
  padding:17px 15px 17px 0;
  line-height:1.4
}
td small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:6px;
  max-width:220px;
  overflow-wrap:anywhere
}
.status {
  font-size:12px
}
.status.paid {
  color:var(--success)
}
.status.pending {
  color:var(--copper)
}
dialog {
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  border-radius:6px;
  width:min(510px,calc(100% - 32px));
  max-height:calc(100vh - 48px);
  padding:0;
  box-shadow:0 25px 100px #13251b35
}
dialog::backdrop {
  background:#1a261b70;
  backdrop-filter:blur(3px)
}
.dialog-content {
  padding:38px 34px 30px;
  position:relative
}
.dialog-content h2 {
  font-size:31px;
  padding-right:15px
}
.dialog-close {
  position:absolute;
  right:20px;
  top:15px;
  font-size:26px;
  color:var(--muted);
  padding:0 5px
}
.dialog-body {
  font-size:15px
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding-top:18px;
  flex-wrap:wrap
}
.checkout-summary {
  text-align:center;
  padding:22px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:22px
}
.checkout-summary h3 {
  font-size:24px
}
.checkout-summary>strong {
  font-family:var(--serif);
  font-weight:400;
  font-size:42px;
  display:block;
  margin:15px 0 8px
}
.checkout-summary>span {
  font-size:12px;
  color:var(--muted)
}
.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:var(--paper);
  padding:15px 22px;
  border-radius:4px;
  font-size:14px;
  max-width:calc(100vw - 35px);
  width:max-content;
  box-shadow:0 8px 35px #20292322;
  z-index:10
}
.loading {
  padding:80px 0;
  color:var(--muted);
  font-family:var(--serif);
  font-size:24px
}
.error-page {
  max-width:700px;
  padding:80px 0
}
.error-page p {
  color:var(--muted);
  margin:20px 0 30px
}
.error-page .button {
  margin-right:15px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  background:var(--ink);
  color:var(--paper);
  padding:12px 20px;
  z-index:100
}
.skip-link:focus {
  top:10px
}
@media(min-width:1450px) {
  .hero {
    min-height:455px
  }
  .hero h1 {
    font-size:74px
  }
  .story-row {
    grid-template-columns:105px minmax(260px,.9fr) minmax(330px,1.2fr) auto
  }
  .story-name h3 {
    font-size:31px
  }
  .book-cover {
    width:103px
  }
  .large-cover {
    width:250px
  }
  .story-description {
    font-size:18px
  }
  .story-row {
    min-height:145px
  }
  .hero-art img {
    width:110%
  }
}
@media(max-width:1150px) {
  .shell {
    width:90%
  }
  .site-header {
    gap:26px
  }
  .primary-nav,.utility-nav {
    gap:20px
  }
  .wordmark {
    font-size:22px;
    letter-spacing:.22em
  }
  .hero-copy {
    padding-left:0
  }
  .hero {
    min-height:380px
  }
  .hero h1 {
    font-size:55px
  }
  .hero p {
    font-size:16px
  }
  .hero-actions {
    gap:20px
  }
  .story-row {
    grid-template-columns:78px minmax(150px,.9fr) minmax(190px,1fr) auto;
    gap:20px
  }
  .book-cover {
    width:78px
  }
  .large-cover {
    width:240px
  }
  .cover-title {
    font-size:8px
  }
  .large-cover .cover-title {
    font-size:27px
  }
  .story-name h3 {
    font-size:24px
  }
  .story-action {
    flex-direction:column;
    gap:12px;
    align-items:flex-end
  }
  .reader-layout {
    grid-template-columns:200px 1fr;
    gap:40px
  }
  .reader-chapters li {
    padding:12px 7px;
    font-size:16px
  }
  .auth-layout {
    gap:65px;
    grid-template-columns:1fr 390px
  }
  .auth-card {
    padding-left:35px
  }
  .auth-intro h1 {
    font-size:48px
  }
  .products {
    gap:25px
  }
}
@media(max-width:900px) {
  .site-header {
    gap:24px;
    height:80px
  }
  .wordmark {
    font-size:19px
  }
  .primary-nav,.utility-nav {
    font-size:12px;
    gap:18px
  }
  .language-switch {
    gap:6px;
    padding-left:15px
  }
  .language-switch .text-button {
    font-size:12px
  }
  .hero {
    grid-template-columns:1fr 1fr;
    min-height:350px
  }
  .hero h1 {
    font-size:44px
  }
  .hero p {
    font-size:14px
  }
  .hero .button.large {
    padding:12px 17px;
    font-size:14px
  }
  .hero-actions {
    gap:18px
  }
  .hero .inline-link {
    font-size:15px
  }
  .section-heading h2 {
    font-size:28px
  }
  .filters {
    gap:18px
  }
  .story-row {
    grid-template-columns:70px minmax(160px,1fr) 155px;
    gap:19px;
    padding:20px 0
  }
  .book-cover {
    width:70px
  }
  .story-description {
    grid-column:2;
    grid-row:2;
    font-size:15px;
    margin-top:-13px
  }
  .cover-link {
    grid-row:1/3
  }
  .story-action {
    grid-column:3;
    grid-row:1/3;
    gap:15px
  }
  .story-name h3 {
    font-size:24px
  }
  .byline {
    font-size:11px
  }
  .story-row {
    min-height:130px
  }
  .book-detail {
    padding:20px 0 40px;
    grid-template-columns:225px 1fr;
    gap:40px
  }
  .large-cover {
    width:225px
  }
  .book-detail h1 {
    font-size:42px
  }
  .book-detail .lead {
    font-size:20px
  }
  .book-facts {
    gap:10px
  }
  .book-facts span+span:before {
    margin-right:10px
  }
  .auth-layout {
    gap:35px;
    grid-template-columns:1fr 360px
  }
  .auth-intro h1 {
    font-size:43px
  }
  .auth-card {
    padding-left:25px
  }
  .products {
    gap:20px
  }
  .product h3 {
    font-size:25px
  }
  .account-layout {
    gap:35px
  }
  .reader-layout {
    grid-template-columns:180px 1fr;
    gap:30px
  }
  .reader-rail {
    padding-right:15px
  }
  .reading-preferences {
    gap:14px
  }
  .reading-preferences>span {
    display:none
  }
  .reader-article h1 {
    font-size:45px
  }
  .story-prose {
    font-size:calc(var(--reading-size,21px) - 1px)
  }
}
@media(max-width:760px) {
  .shell {
    width:calc(100% - 38px)
  }
  .site-header {
    height:auto;
    min-height:105px;
    display:grid;
    grid-template-columns:1fr auto;
    row-gap:0;
    column-gap:15px;
    padding:22px 0 13px
  }
  .wordmark {
    font-size:22px;
    letter-spacing:.23em;
    grid-column:1
  }
  .primary-nav {
    grid-row:2;
    grid-column:1;
    padding-top:18px;
    gap:22px;
    font-size:12px
  }
  .utility-nav {
    grid-row:2;
    grid-column:2;
    padding-top:18px;
    font-size:12px;
    gap:15px
  }
  .language-switch {
    position:absolute;
    top:25px;
    right:20px;
    border:0;
    padding:0
  }
  .hero {
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:37px 0 16px;
    min-height:0
  }
  .hero-copy {
    width:100%
  }
  .hero h1 {
    font-size:clamp(40px,8.5vw,58px);
    line-height:1.06;
    margin-bottom:20px;
    max-width:610px
  }
  .hero p {
    font-size:15px;
    line-height:1.7;
    margin-bottom:24px
  }
  .hero p br {
    display:none
  }
  .hero-actions {
    gap:25px;
    flex-wrap:wrap
  }
  .hero .button.large {
    padding:13px 19px;
    font-size:14px
  }
  .hero-art {
    width:85%;
    align-self:center;
    max-height:300px;
    margin-top:5px
  }
  .hero-art img {
    width:110%
  }
  .section-heading {
    align-items:flex-start;
    flex-direction:column;
    padding:24px 0 14px;
    gap:20px
  }
  .section-heading h2 {
    font-size:28px
  }
  .filters {
    gap:22px;
    max-width:100%;
    font-size:14px
  }
  .filters .text-button {
    font-size:14px
  }
  .story-row {
    grid-template-columns:67px 1fr;
    gap:17px;
    padding:22px 0;
    min-height:170px
  }
  .book-cover {
    width:67px
  }
  .cover-inner {
    padding:7px 2px
  }
  .cover-title {
    font-size:8px
  }
  .story-name h3 {
    font-size:25px;
    letter-spacing:-.025em
  }
  .story-description {
    grid-column:2;
    grid-row:auto;
    font-size:15px;
    margin-top:-7px;
    line-height:1.4
  }
  .story-action {
    grid-column:2;
    grid-row:auto;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    gap:10px
  }
  .story-action .button {
    min-height:35px;
    font-size:13px;
    padding:8px 12px;
    gap:12px
  }
  .story-action .small-label {
    font-size:9px;
    letter-spacing:.12em
  }
  .cover-link {
    grid-row:1/4;
    align-self:start;
    margin-top:2px
  }
  .site-footer {
    flex-wrap:wrap;
    padding:20px 0;
    gap:13px;
    font-size:10px;
    min-height:90px
  }
  .footer-wordmark {
    font-size:10px;
    letter-spacing:.25em
  }
  .site-footer>span:first-child {
    width:100%
  }
  .site-main {
    padding-bottom:32px
  }
  .page-heading {
    padding:35px 0 15px
  }
  .page-heading h1 {
    font-size:39px;
    line-height:1.15
  }
  .page-heading p {
    font-size:16px
  }
  .back-link {
    margin:22px 0;
    font-size:15px
  }
  .book-detail {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:5px 0 35px;
    gap:30px
  }
  .book-detail-cover {
    align-self:center
  }
  .large-cover {
    width:185px;
    padding:13px 12px 13px 20px
  }
  .large-cover .cover-inner {
    padding:20px 9px
  }
  .large-cover .cover-brand {
    font-size:7px
  }
  .large-cover .cover-title {
    font-size:23px;
    margin-top:17px
  }
  .large-cover .cover-author {
    font-size:7px
  }
  .book-detail-copy {
    width:100%
  }
  .book-detail h1 {
    font-size:41px;
    margin-bottom:15px
  }
  .book-detail .byline {
    font-size:14px;
    margin-bottom:20px
  }
  .book-detail .lead {
    font-size:20px
  }
  .book-facts {
    font-size:11px
  }
  .chapter-list li {
    gap:17px
  }
  .chapter-list h3 {
    font-size:20px
  }
  .chapter-list .muted {
    font-size:11px
  }
  .chapter-price {
    font-size:12px;
    white-space:nowrap
  }
  .chapter-section .section-heading>.muted {
    font-size:12px
  }
  .prose-page h1 {
    font-size:42px
  }
  .prose-page p {
    font-size:15px
  }
  .prose-page .lead {
    font-size:21px
  }
  .reader-top {
    font-size:12px;
    gap:20px
  }
  .reader-layout {
    display:flex;
    flex-direction:column;
    gap:0
  }
  .reader-rail {
    border:0;
    padding:0
  }
  .chapter-disclosure {
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line)
  }
  .chapter-disclosure summary {
    font-family:var(--sans);
    font-size:13px;
    padding:15px 0;
    display:flex;
    justify-content:space-between
  }
  .chapter-disclosure summary:after {
    content:'+';
    font-size:17px;
    color:var(--copper)
  }
  .chapter-disclosure[open] summary:after {
    content:'−'
  }
  .reader-chapters li {
    font-size:17px;
    padding:11px 9px
  }
  .path-panel {
    order:2;
    margin-top:0;
    display:none
  }
  .reader-rail:has(details[open]) .path-panel {
    display:block;
    margin:18px 0 25px;
    border-top:0;
    padding:0
  }
  .path-panel h2 {
    font-size:22px
  }
  .history-list {
    max-height:200px;
    overflow:auto
  }
  .reading-preferences {
    padding:20px 0 30px;
    gap:23px;
    font-size:12px
  }
  .reading-preferences>span {
    display:block;
    font-size:10px;
    margin-right:auto
  }
  .reading-preferences [data-theme=light] {
    padding-left:16px
  }
  .reader-article h1 {
    font-size:42px;
    margin-bottom:25px
  }
  .reader-article>.small-label {
    font-size:10px;
    margin-top:0
  }
  .story-prose {
    font-size:var(--reading-size,21px)
  }
  .story-prose p {
    line-height:1.8
  }
  .choices h2 {
    font-size:26px
  }
  .choice {
    font-size:18px;
    padding:15px 17px;
    line-height:1.45
  }
  .choice>span:last-child {
    font-size:23px
  }
  .paywall {
    margin:0 auto;
    padding:15px 0
  }
  .paywall h1 {
    font-size:37px
  }
  .paywall>p {
    font-size:16px
  }
  .paywall-symbol {
    font-size:45px
  }
  .auth-layout {
    display:flex;
    flex-direction:column;
    gap:25px;
    margin:35px auto 10px;
    max-width:450px
  }
  .auth-intro {
    padding:0
  }
  .ornament {
    display:none
  }
  .auth-intro h1 {
    font-size:42px;
    margin-bottom:14px
  }
  .auth-intro p {
    font-size:16px;
    margin-bottom:0
  }
  .auth-intro .inline-link {
    display:none
  }
  .auth-card {
    padding:25px 0 0;
    border-left:0;
    border-top:1px solid var(--line);
    width:100%
  }
  .auth-card h2 {
    font-size:25px;
    margin-bottom:22px
  }
  .dev-note {
    margin-top:30px
  }
  .account-layout {
    display:flex;
    flex-direction:column;
    gap:40px
  }
  .account-panel h2 {
    font-size:29px
  }
  .detail-list>div {
    font-size:13px
  }
  .account-links>a {
    padding:23px 0
  }
  .account-links h2 {
    font-size:25px
  }
  .wallet-balance {
    padding:24px 0;
    align-items:flex-start;
    gap:20px
  }
  .balance-number {
    font-size:60px
  }
  .balance-number>span {
    font-size:12px;
    margin-left:9px
  }
  .balance-details {
    min-width:0;
    flex:1;
    max-width:220px;
    margin-top:20px;
    font-size:11px
  }
  .balance-details p {
    gap:10px
  }
  .wallet-balance .small-label {
    font-size:9px
  }
  .products {
    display:flex;
    flex-direction:column;
    gap:22px
  }
  .product {
    padding:22px 0 0;
    position:relative
  }
  .product h3 {
    font-size:28px
  }
  .product>p {
    min-height:0;
    max-width:90%
  }
  .product-amount {
    font-size:35px
  }
  .product .button {
    max-width:100%
  }
  .ledger-section {
    margin-top:35px
  }
  .ledger-section h2 {
    font-size:26px
  }
  td,th {
    font-size:11px;
    padding:14px 13px 14px 0;
    min-width:75px
  }
  td:first-child {
    min-width:140px
  }
  td small {
    font-size:9px
  }
  th {
    font-size:9px
  }
  .simple-row {
    font-size:12px;
    gap:15px
  }
  .simple-row .button {
    font-size:12px;
    padding:9px 12px
  }
  .dialog-content {
    padding:34px 24px 24px
  }
  .dialog-content h2 {
    font-size:28px
  }
  .dialog-body {
    font-size:14px
  }
  .dialog-actions {
    gap:10px
  }
  .dialog-actions .button {
    font-size:13px
  }
  .error-page {
    padding:50px 0
  }
  .error-page h1 {
    font-size:38px
  }
  .notice {
    font-size:12px;
    padding:13px 14px
  }
  .library-row {
    gap:22px
  }
  .library-row .book-cover {
    width:85px
  }
  .library-row h2 {
    font-size:26px
  }
  .library-row .small-label {
    font-size:9px
  }
  .library-row .cover-title {
    font-size:10px
  }
  .toast {
    font-size:13px;
    text-align:center;
    bottom:18px
  }
  .empty-state {
    padding:50px 5px
  }
  .empty-state h2 {
    font-size:29px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}

.refresh-status { display: block; margin-top: 10px; font-size: 12px; }
