@charset "UTF-8";

.back-to-top {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sidebar);
  color: var(--accent);
  box-shadow: 0 4px 18px #48303d20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top[hidden], .viewer-open .back-to-top { display: none; }
.back-to-top:hover { background: var(--soft); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

:root {
  color-scheme: light;
  --page: #fffafb;
  --sidebar: #fff1f6;
  --ink: #48303d;
  --muted: #866676;
  --accent: #a04470;
  --line: #efd9e4;
  --soft: #fce7f0;
  --side-width: 252px;
  --space: clamp(26px, 4.3vw, 80px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #f2cadb;
  color: #48303d;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 15px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 20px;
}
.sidebar {
  width: var(--side-width);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 38px 24px 24px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.sidebar > * {
  flex-shrink: 0;
  min-width: 0;
}
.brand-block {
  margin-bottom: 36px;
}
.wordmark {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  font-style: italic;
  font-size: 47px;
  letter-spacing: -3px;
  line-height: 1.1;
}
.wordmark span {
  color: #c1799c;
}
.brand-block p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: 0.3px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-link:hover,
.sub-link:hover,
.nav-link[aria-current],
.sub-link[aria-current] {
  color: var(--accent);
}
.sub-navigation {
  padding: 5px 0 19px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid #e1b6ca;
  margin: 0 0 13px 1px;
}
.sub-link {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.sub-link[aria-current] {
  font-weight: bold;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.sidebar-footer > span {
  display: block;
  width: 27px;
  height: 1px;
  background: #d0a0b8;
  margin-bottom: 15px;
}
.social-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 220px;
  color: var(--accent);
}
.vgen-mark {
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url('social/vgen.png') center / contain no-repeat;
  -webkit-mask: url('social/vgen.png') center / contain no-repeat;
}
.commission-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 60px;
  padding: 36px;
  background: var(--sidebar);
  border-top: 1px solid var(--line);
}
.commission-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-top: 12px;
}
.commission-cta .solid-link {
  flex-shrink: 0;
  margin: 0;
}
@media (max-width: 700px) {
  .commission-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
    margin-top: 36px;
  }
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 32px;
}
.social-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}
.social-logo {
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: var(--social-mask) center / contain no-repeat;
  -webkit-mask: var(--social-mask) center / contain no-repeat;
}
#site-navigation.is-open + .sidebar-footer {
  display: block;
  grid-column: 1 / -1;
}
.menu-toggle {
  display: none;
}
.page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  margin-left: var(--side-width);
  padding: 0 var(--space);
  max-width: 1900px;
}
.page-heading {
  padding: 62px 0 36px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
}
h1 {
  font-size: clamp(38px, 4.7vw, 68px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 12px 0 16px;
}
h2 {
  font-size: 34px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.page-intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.portfolio-grid {
  columns: 3;
  column-gap: 19px;
}
.artwork {
  break-inside: avoid;
  margin: 0 0 22px;
}
.art-button {
  border: 0;
  padding: 0;
  width: 100%;
  background: var(--soft);
  display: block;
  position: relative;
}
.art-button img {
  display: block;
  width: 100%;
  height: auto;
}
.book-gallery .art-button {
  max-width: 360px;
  margin-inline: auto;
}
.book-gallery .art-button img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.art-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  gap: 15px;
  color: white;
  background: linear-gradient(transparent 55%, #301721bc);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 14px;
  text-align: left;
  line-height: 1.4;
}
.art-overlay span:last-child {
  font-size: 22px;
}
.art-button:hover .art-overlay,
.art-button:focus-visible .art-overlay {
  opacity: 1;
}
.story-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: transparent;
  border-block: 1px solid var(--line);
  padding-block: 24px;
  gap: 24px;
  margin-top: 62px;
  min-height: 270px;
}
.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  min-width: 0;
}
.contact-form h3 {
  font-size: 28px;
  margin: 0 0 12px;
}
.contact-form label {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin-top: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--page);
  color: var(--ink);
  padding: 12px;
  font:
    16px/1.5 Arial,
    sans-serif;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.contact-form button {
  justify-self: start;
  margin-top: 12px;
}
.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.editorial-copy .contact-form-note {
  font:
    14px/1.6 Arial,
    sans-serif;
  color: var(--muted);
  margin: 4px 0 0;
}
.story-banner > div {
  padding: 24px 0;
  align-self: center;
}
.story-banner h2 {
  margin: 15px 0 26px;
}
.story-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  align-self: center;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d0a0b8;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
}
.text-link:hover {
  color: var(--ink);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  margin-top: 70px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.site-footer a {
  font-size: 14px;
}
.novels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.novel-card {
  min-width: 0;
}
.novel-cover {
  display: block;
  position: relative;
  background: #f8e0ed;
  height: clamp(320px, 36vw, 590px);
  overflow: hidden;
}
.novel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transition: transform 0.6s;
}
.novel-cover:hover img {
  transform: scale(1.025);
}
.cover-label {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  border: 1px solid #ffffff7d;
  background: #2d13225c;
}
.novel-details {
  padding: 26px 0 20px;
}
.novel-details h2 {
  margin: 12px 0 13px;
  max-width: 400px;
  font-size: clamp(29px, 3vw, 43px);
}
.novel-details > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}
.sample-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
main > .back-link {
  margin-top: 42px;
}
.novel-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: clamp(30px, 4vw, 75px);
  margin-top: 35px;
  align-items: center;
}
.book-cover img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}
.book-description h1 {
  font-size: clamp(38px, 4.4vw, 65px);
  max-width: 540px;
  margin-top: 18px;
}
.book-subtitle {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  margin: 22px 0;
}
.synopsis {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 29px;
}
.solid-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 17px 23px;
  background: var(--ink);
  color: white;
  font-size: 14px;
}
.solid-link:hover {
  background: var(--accent);
}
.book-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.chapter-index {
  margin: 62px 0 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.chapter-row {
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  gap: 20px;
  align-items: center;
  padding: 25px 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
}
.chapter-row:last-child {
  border-bottom: 1px solid var(--line);
}
.chapter-row:hover {
  background: var(--sidebar);
}
.chapter-number {
  color: var(--muted);
  font-size: 13px;
}
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-art img {
  display: block;
  width: 100%;
  height: auto;
}
.editorial-copy {
  font-size: 16px;
  line-height: 1.85;
}
.editorial-copy h2 {
  margin: 14px 0 25px;
}
.editorial-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 24px;
}
.empty-editorial {
  max-width: 700px;
  padding: 40px;
  background: var(--sidebar);
  font-size: 18px;
  line-height: 1.9;
}
.empty-editorial > p {
  margin: 18px 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: start;
}
.contact-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1080 / 1120;
  overflow: hidden;
  justify-self: center;
}
.contact-art img {
  /* Frame the drawing at x=900..1980, y=80..1200; the rest is transparent. */
  position: absolute;
  left: -83.333333%;
  top: -7.142857%;
  display: block;
  width: 185.185185%;
  max-width: none;
  height: auto;
}
.faq-list {
  max-width: 850px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  cursor: pointer;
  list-style: none;
  padding: 26px 0;
  font-size: 18px;
  line-height: 1.5;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  color: var(--accent);
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list details p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  padding: 0 35px 28px 0;
}

.viewer {
  width: calc(100vw - 40px);
  max-width: 1600px;
  height: calc(100dvh - 40px);
  max-height: none;
  padding: 0;
  border: 0;
  background: #291d27;
  color: white;
}
.viewer::backdrop {
  background: #150b12eb;
}
.viewer-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer-header,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
}
.viewer-header h2 {
  font-size: 22px;
}
.viewer button {
  color: white;
  background: transparent;
  border: 1px solid #896478;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 15px;
}
.viewer button + button {
  margin-left: 10px;
}
.viewer button:focus-visible {
  outline-color: #f2cadb;
}
.viewer-stage {
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  touch-action: none;
}
.viewer-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
}
.viewer-footer {
  font-size: 13px;
}
body.viewer-open {
  overflow: hidden;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reading-page {
  --reading-background: #fff1f6;
  --reading-color: #382b32;
  --reading-size: 1.3125rem;
  background: var(--reading-background);
}
.reading-page .page-shell {
  max-width: 1750px;
}
.reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px 0 24px;
  color: var(--reading-color);
}
.reader-top .back-link {
  color: inherit;
}
.index-link {
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reading-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 44px;
  padding: 24px 0 18px;
  color: var(--reader-ui-color, #48303d);
}
.reading-controls fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.reading-controls legend {
  width: 100%;
  padding: 0;
  margin-bottom: 13px;
  font-size: 13px;
  text-align: center;
}
.style-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.swatch-option,
.size-option {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.style-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.color-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid #b796a5;
  border-radius: 50%;
  background: var(--swatch);
}
.style-options input:checked + .color-swatch {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.style-options input:focus-visible + span {
  outline: 2px dashed currentColor;
  outline-offset: 6px;
}
.size-letter {
  display: grid;
  place-items: center;
  height: 40px;
  min-width: 35px;
  font-family: Georgia, serif;
  border-bottom: 2px solid transparent;
}
.size-small {
  font-size: 20px;
}
.size-medium {
  font-size: 25px;
}
.size-large {
  font-size: 32px;
}
.style-options input:checked + .size-letter {
  border-bottom-color: currentColor;
}
.chapter-arrows {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 10px 0 18px;
  color: var(--reader-ui-color, #48303d);
}
.chapter-arrows a,
.chapter-arrows button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 30px;
  border-radius: 50%;
}
.chapter-arrows a:hover {
  background: #c1799c22;
}
.chapter-arrows button:disabled {
  opacity: 0.25;
  cursor: default;
}
.reader-paper {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 35px 35px;
  color: var(--reading-color);
  background: var(--reading-background);
}
.chapter-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}
.chapter-heading .eyebrow {
  color: inherit;
  font-size: 12px;
}
.chapter-ordinal {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin: 36px 0 18px;
}
.chapter-heading h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.15;
  margin: 0 auto 24px;
  max-width: 650px;
}
.chapter-byline {
  font-size: 13px;
}
.chapter-ornament {
  display: block;
  font-size: 18px;
  margin: 38px auto;
}
.chapter-prose {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--reading-size);
  line-height: 1.9;
  overflow-wrap: break-word;
}
.chapter-prose > p {
  margin: 0 0 1.6em;
}
.chapter-prose > p:first-child::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.9;
  padding: 0.1em 0.13em 0 0;
}
.chapter-illustration {
  margin: 48px 0;
}
.chapter-illustration img, .chapter-prose img {
  display: block;
  width: 100%;
  max-height: 790px;
  object-fit: contain;
  height: auto;
}
.chapter-illustration figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding-top: 14px;
}
.chapter-ending {
  padding: 20px 0 30px;
  text-align: center;
}
.chapter-ending > p {
  font-size: 13px;
  margin-top: 20px;
}
.reading-page .site-footer {
  color: var(--reading-color);
  border-color: currentColor;
}

@media (max-width: 1100px) {
  :root {
    --side-width: 224px;
    --space: 30px;
  }
  .sidebar {
    padding-inline: 22px;
  }
  .wordmark {
    font-size: 43px;
  }
  .portfolio-grid {
    columns: 2;
  }
  .novels-grid {
    gap: 24px;
  }
  .novel-cover {
    height: 410px;
  }
  .story-banner > div {
    padding: 12px 0;
  }
  .story-banner h2 {
    font-size: 28px;
  }
  .about-layout,
  .contact-layout {
    gap: 30px;
  }
  .reading-controls {
    gap: 22px;
  }
  .reader-paper {
    padding-inline: 10px;
  }
}
@media (max-width: 900px), (max-height: 560px) {
  :root {
    --space: 22px;
  }
  .sidebar {
    position: relative;
    width: auto;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: visible;
  }
  .brand-block {
    margin: 0;
  }
  .wordmark {
    font-size: 43px;
    letter-spacing: -3px;
  }
  .brand-block p {
    margin-top: 7px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    align-self: start;
    margin-top: 6px;
    padding: 12px 0 12px 18px;
    background: none;
    border: 0;
    color: var(--ink);
    font-size: 14px;
  }
  .sidebar nav {
    display: none;
    grid-column: 1 / -1;
    margin-top: 26px;
  }
  .sidebar nav.is-open {
    display: flex;
  }
  .sidebar-footer {
    display: none;
  }
  .page-shell {
    margin-left: 0;
  }
  .page-heading {
    padding: 35px 0 30px;
  }
  h1 {
    letter-spacing: -1.2px;
  }
  .portfolio-grid {
    column-gap: 13px;
  }
  .artwork {
    margin-bottom: 17px;
  }
  .story-banner {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
  .story-banner img {
    height: auto;
  }
  .novels-grid,
  .novel-overview,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .novels-grid {
    gap: 32px;
  }
  .novel-cover {
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .novel-details h2 {
    font-size: 35px;
  }
  .book-cover {
    max-width: 370px;
    margin: auto;
  }
  .book-description {
    margin-top: 8px;
  }
  .chapter-index {
    margin-top: 45px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .chapter-row {
    grid-template-columns: 26px 1fr 15px;
    gap: 14px;
    font-size: 16px;
  }
  .about-art {
    max-width: 500px;
  }
  .empty-editorial {
    padding: 25px;
    font-size: 16px;
  }
  .site-footer {
    margin-top: 45px;
    padding-block: 25px;
  }
  .site-footer > span {
    max-width: 160px;
  }
  .viewer {
    width: 100vw;
    height: 100dvh;
  }
  .viewer-stage {
    padding-inline: 6px;
  }
  .reader-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 26px;
  }
  .reading-controls {
    padding: 20px 0 10px;
    gap: 20px;
  }

  .reader-paper {
    padding: 42px 0 15px;
  }
  .chapter-heading h1 {
    font-size: 38px;
  }
  .chapter-prose {
    line-height: 1.8;
  }
  .chapter-illustration {
    margin: 32px 0;
  }
}
@media (max-width: 520px) {
  .portfolio-grid {
    columns: 1;
  }
  .novel-cover {
    height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.zoomable-illustration {
  cursor: zoom-in;
}
.viewer-stage.is-zoomed {
  cursor: grab;
}
.viewer-stage.is-dragging {
  cursor: grabbing;
}
.viewer-footer {
  flex-wrap: wrap;
}
.zoom-controls {
  display: flex;
  gap: 8px;
}
.zoom-controls button + button {
  margin-left: 0;
}
#zoom-reset {
  min-width: 70px;
  font-variant-numeric: tabular-nums;
}
.viewer button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 500px) {
  .viewer-footer {
    padding: 10px;
    gap: 8px;
  }
  .viewer-footer button {
    padding-inline: 11px;
  }
  .viewer-header {
    padding: 12px;
  }
}

.page-shell,
main,
.book-description,
.editorial-copy {
  min-width: 0;
}
.story-banner,
.novels-grid,
.about-layout,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nav-link,
.sub-link,
.chapter-row,
.site-footer,
h1,
h2 {
  overflow-wrap: anywhere;
}
.viewer {
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
}
.viewer-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
#viewer-close {
  flex-shrink: 0;
}
@media (min-width: 901px) and (min-height: 561px) and (max-height: 800px) {
  .sidebar {
    padding-top: 26px;
    padding-bottom: 20px;
  }
  .brand-block {
    margin-bottom: 26px;
  }
  .sidebar-footer {
    padding-top: 20px;
  }
  .nav-link {
    padding-block: 10px;
  }
  .sub-navigation {
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 8px;
  }
}
@media (max-width: 900px), (max-height: 560px) {
  .story-banner,
  .novels-grid,
  .novel-overview,
  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar .nav-link {
    min-height: 44px;
  }
  .sub-navigation {
    gap: 0;
    padding-block: 0;
  }
  .sub-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 10px;
  }
  .viewer {
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }
  .novel-cover {
    max-height: 620px;
  }
  .menu-toggle {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  :root {
    --space: 18px;
  }
  .sidebar {
    padding: 20px 18px;
  }
  .wordmark {
    font-size: 39px;
  }
  .brand-block p {
    font-size: 12px;
  }
  .reading-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .reading-controls fieldset:last-child {
    grid-column: 1 / -1;
  }
  .style-options {
    gap: 0;
  }
  .swatch-option,
  .size-option {
    flex: 0 0 44px;
  }
  .reading-controls legend {
    font-size: 13px;
  }
  .chapter-heading h1 {
    font-size: clamp(30px, 8vw, 38px);
  }
  .chapter-illustration figcaption {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  .viewer-header h2 {
    font-size: 18px;
  }
  .viewer-footer {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  }
  .zoom-controls {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }
  .viewer-footer > div:last-child {
    justify-self: end;
  }
  .reader-paper {
    padding-top: 24px;
  }
}
@media (max-height: 450px) {
  .viewer-header,
  .viewer-footer {
    padding-block: 6px;
  }
  .viewer-footer {
    display: flex;
    flex-wrap: nowrap;
  }
  .zoom-controls {
    gap: 4px;
  }
}
.translation-unavailable {
  max-width: 640px;
  margin: 60px auto;
}
.translation-unavailable h1 {
  font-size: clamp(30px, 5vw, 52px);
}

.site-language-slot {
  margin: 0 0 4px;
}
.language-disclosure {
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font-size: 14px;
}
.language-disclosure summary,
.language-options a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  vertical-align: top;
  position: relative;
  flex-shrink: 0;
}
.language-disclosure summary {
  list-style: none;
}
.language-disclosure summary::marker,
.language-disclosure summary::-webkit-details-marker {
  display: none;
  content: '';
}
.language-disclosure img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.language-disclosure[open] {
  z-index: 20;
}
.language-options {
  position: absolute;
  top: 0;
  left: 44px;
  display: flex;
  gap: 6px;
  padding-left: 4px;
  width: max-content;
}
.language-disclosure:not([open]) .language-options {
  display: none;
}
.language-disclosure summary:focus-visible,
.language-options a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.story-language .language-options {
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
}
.story-language {
  text-align: center;
  margin: 8px auto 12px;
}
@media (max-width: 900px), (max-height: 560px) {
  .site-language-slot {
    margin: 0 0 4px;
  }
  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }
}

.sidebar .brand-block {
  margin-bottom: 20px;
}
@media (max-width: 900px), (max-height: 560px) {
  .sidebar .brand-block {
    margin-bottom: 0;
  }
  #site-navigation {
    margin-top: 12px;
  }
}

.page-shell > main {
  flex: 1 0 auto;
}

@media (min-width: 1101px) and (min-height: 800px) {
  .about-page .page-heading { padding: 32px 0 20px; }
  .about-page .editorial-copy { line-height: 1.65; }
  .about-page .editorial-copy > p:not(.eyebrow) { margin-bottom: 16px; }
  .about-page .editorial-copy h2 { margin: 12px 0 18px; }
  .about-page .about-art img { max-height: calc(100dvh - 300px); object-fit: contain; }
  .about-page .site-footer { margin-top: auto; padding: 20px 0; }
  .about-page main { padding-bottom: 24px; }
}
