@import url("bookshelf.css");
:root {
  --wine: #452333;
  --wine-dark: #331925;
  --wine-soft: #6c3b52;
  --cream: #f6f4f0;
  --paper: #eeebe5;
  --ink: #29262a;
  --muted: #6a6469;
  --gold: #b49a66;
  --line: #d8d2d3;
  --font-body: "DM Sans", sans-serif;
  --font-headline: "Libre Caslon Display", Georgia, serif;
  --font-reading: "Literata", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
}
h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a7843f;
  outline-offset: 5px;
}
::selection {
  background: #dcc2cf;
  color: var(--wine-dark);
}
input,
textarea {
  caret-color: var(--wine);
}
* {
  scrollbar-color: #9d8290 transparent;
  scrollbar-width: thin;
}
[hidden] {
  display: none !important;
}
.ico {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.content-width {
  width: min(1184px, calc(100% - 112px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 200;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
/* Masthead */
.top-nav {
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  gap: 28px;
  min-height: 100px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.brand-monogram {
  font: 48px/0.9 var(--font-headline);
  color: var(--wine);
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.nav-brand-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.nav-brand-title span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 52px;
  font-size: 13px;
}
.nav-links a {
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--wine);
  text-decoration: underline;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang-switch {
  display: flex;
  gap: 10px;
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 6px 1px;
  font-size: 11px;
  color: var(--muted);
}
.lang-switch .active {
  color: var(--wine);
  box-shadow: 0 1px 0 var(--wine);
  font-weight: 700;
}
.nav-search {
  border: 0;
  background: none;
  padding: 8px;
  display: flex;
}
.home-page {
  overflow: hidden;
}
/* The reading room */
.library-room {
  background: var(--wine);
  color: var(--cream);
  padding: 62px max(56px, calc((100vw - 1184px) / 2)) 26px;
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  align-items: end;
  margin-bottom: 48px;
}
.hero h1 {
  font: clamp(48px, 5.2vw, 76px) / 1.05 var(--font-headline);
  letter-spacing: -0.025em;
  max-width: 680px;
}
.hero-aside {
  padding-bottom: 5px;
}
.hero-aside p {
  color: #e2d4dc;
  font-size: 15px;
  line-height: 1.8;
  max-width: 310px;
}
.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  border: 0;
  border-radius: 6px;
  background: var(--cream);
  color: var(--wine);
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.hero-button:hover {
  background: #e7dce1;
}
.shelf-caption,
.shelf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #e2d4dc;
}
.shelf-caption {
  margin-bottom: 18px;
}
.shelf-caption span:first-child {
  font-weight: 600;
  color: var(--cream);
}
.shelf-foot {
  margin-top: 22px;
}
.text-button {
  background: none;
  border: 0;
  border-bottom: 1px solid #a88796;
  color: var(--cream);
  padding: 5px 0;
  font-size: 12px;
}
.stage-wrap {
  margin: 0;
  position: relative;
}
.bookcase {
  box-shadow: 0 20px 35px #1c0c1b55;
  border-radius: 7px 7px 3px 3px;
}
.bookcase-inner {
  border-width: 9px;
}
.shelving-area {
  height: 272px;
  min-height: 272px;
}
.arch-alcove {
  min-width: 0;
}
.center-arch {
  flex: 1.6;
}
.left-arch,
.right-arch {
  flex: 1;
}
.arch-alcove .shelf-ledge {
  order: 2;
  height: 12px;
}
.arch-alcove .books-container {
  height: 238px;
  padding: 12px 15px 0;
  gap: 9px;
}
.book-spine {
  border: 0;
  font: inherit;
  color: inherit;
}
.spine-title {
  font-family: var(--font-reading);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.spine-panel {
  display: flex;
  justify-content: center;
  min-height: 10px;
}
.book-spine-dark {
  background-color: #26303c;
}
.book-spine-red {
  background-color: #613343;
}
.book-spine-green {
  background-color: #354a40;
}
.book-spine-gold {
  background-color: #97794c;
}
.drawer-base {
  height: 70px;
  box-shadow: 0 -5px 12px #0006;
}
.drawer-center .nav-controls {
  height: auto;
  gap: 16px;
}
.drawer-center .nav-btn {
  width: 36px;
  height: 32px;
}
.hover-book-title {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--wine);
  padding: 7px 15px;
  white-space: nowrap;
  border-radius: 4px;
  visibility: hidden;
  font-size: 12px;
  pointer-events: none;
}
.hover-book-title.show {
  visibility: visible;
}
.drawer-front {
  cursor: default;
}
.left-arch .book-spine,
.right-arch .book-spine {
  cursor: default;
}
.left-arch .book-spine:hover,
.right-arch .book-spine:hover {
  transform: none;
}
.books-container:empty:after {
  content: "…";
  color: #d8c0a0;
  padding: 30px;
}
.cornice-top {
  box-shadow: 0 5px 10px #0007;
}
/* Catalogue */
.featured {
  padding-block: 64px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
h2 {
  font: 40px/1.15 var(--font-headline);
  letter-spacing: -0.015em;
}
.monthly-controls {
  display: flex;
  gap: 8px;
}
.monthly-arrow {
  background: none;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.monthly-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.feature-grid {
  display: flex;
  gap: 24px;
}
.feature-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-top: 1px solid var(--line);
  padding: 26px 0 16px;
}
.feature-card:only-child {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 36px;
  border: 0;
  background: var(--paper);
  padding: 30px;
  border-radius: 12px;
}
.feature-cover {
  height: 180px;
  background: var(--wine);
  border-radius: 2px 8px 8px 2px;
  color: #f4eceb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 26px;
  box-shadow:
    inset 5px 0 0 #ffffff17,
    inset 8px 0 0 #0002;
  margin-bottom: 20px;
}
.feature-cover span {
  font: 30px/1.15 var(--font-headline);
  overflow-wrap: anywhere;
}
.feature-cover small {
  font-size: 11px;
  color: #e6d6dd;
}
.feature-card:only-child .feature-cover {
  height: 205px;
  margin: 0;
  grid-row: 1/6;
}
.feature-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 20px;
}
.feature-card-title {
  font: 32px/1.2 var(--font-headline);
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.feature-card-description {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 65ch;
}
.feature-card-link {
  align-self: start;
  justify-self: start;
  border: 0;
  border-bottom: 1px solid #a78a97;
  padding: 4px 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--wine);
  display: inline-flex;
  gap: 22px;
  align-items: center;
}
.feature-card-link:hover {
  color: #955373;
}
.catalog-message {
  padding: 30px 0;
  color: var(--muted);
}
.catalog-message button {
  margin-left: 12px;
}
.inline-link {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--wine-soft);
  padding: 3px 0;
  text-decoration: none;
  color: var(--wine);
  font-size: 13px;
  font-weight: 500;
}
/* Author and writing */
.about-section {
  padding: 64px 0 70px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
}
.author-mark {
  font: 72px/1 var(--font-headline);
  color: var(--wine-soft);
  display: block;
  margin-bottom: 26px;
}
.about-header h2 {
  font-size: 36px;
}
.about-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.about-quote {
  font: 32px/1.4 var(--font-headline);
  color: var(--wine);
  margin-bottom: 24px;
}
.about-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 24px;
}
.writing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  border-top: 1px solid var(--line);
  padding: 52px 0 64px;
}
.release-section h2 {
  font: 14px var(--font-body);
  margin-bottom: 18px;
  font-weight: 600;
}
.release-title {
  font: 30px/1.2 var(--font-headline);
  max-width: 350px;
  margin-bottom: 28px;
}
.progress-bar {
  height: 3px;
  background: #ddd5d8;
}
.progress-fill {
  width: 65%;
  height: 100%;
  background: var(--wine-soft);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.support-section {
  display: flex;
  align-items: center;
  gap: 24px;
}
.support-section img {
  width: 100px;
  height: 155px;
  object-fit: contain;
}
.support-section h2 {
  font-size: 27px;
  max-width: 330px;
  margin-bottom: 12px;
}
.support-section p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.support-section #shareNote {
  font-size: 11px;
  margin-top: 8px;
  margin-bottom: 0;
}
.newsletter-section {
  background: #e9e2e6;
  padding: 54px 0;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
  align-items: center;
}
.newsletter-grid h2 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--wine);
}
.newsletter-grid > div > p {
  font-size: 13px;
  max-width: 360px;
  color: var(--muted);
}
.newsletter-status {
  border-left: 1px solid #cfc0c9;
  padding-left: 44px;
}
.newsletter-status .ico {
  margin-bottom: 12px;
  color: var(--wine);
}
.newsletter-status h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 9px;
}
.newsletter-status a {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--wine);
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 34px;
}
.footer-brand {
  font: 24px var(--font-headline);
  text-decoration: none;
}
.footer-brand span {
  display: block;
  font: 11px var(--font-body);
  color: var(--muted);
  margin-top: 9px;
}
.footer-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 12px;
}
.footer-links a {
  text-decoration: none;
}
.footer-year {
  color: var(--muted);
  font-size: 11px;
}
/* Reader */
.reader-view {
  display: none;
}
.story-hero {
  background: var(--wine);
  color: var(--cream);
  padding: 32px 28px 64px;
}
.reader-head-content {
  max-width: 850px;
  margin: auto;
}
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
}
.reader-back,
.font-btn {
  border: 1px solid #927280;
  background: transparent;
  color: inherit;
  padding: 9px 13px;
  border-radius: 5px;
  font-size: 12px;
}
.font-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.reader-tags {
  display: flex;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 16px;
}
.reader-tag {
  border: 1px solid #967584;
  border-radius: 20px;
  padding: 3px 12px;
}
.reader-title {
  font: clamp(42px, 6vw, 72px) / 1.12 var(--font-headline);
  overflow-wrap: anywhere;
}
.reader-meta {
  display: flex;
  gap: 28px;
  color: #e2d4dc;
  font-size: 12px;
  margin-top: 24px;
}
.reader-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.reader-body {
  max-width: 730px;
  padding: 55px 24px;
  margin: auto;
}
.story-text {
  font: 20px/1.9 var(--font-reading);
  overflow-wrap: anywhere;
}
.story-text p {
  margin-bottom: 1.5em;
}
.reader-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 45px;
}
.reader-secondary {
  border: 0;
  background: none;
  color: var(--wine);
  font-size: 12px;
  padding: 10px 0;
}
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  z-index: 100;
}
.reviews-section {
  max-width: 1000px;
  margin: auto;
  padding: 30px 28px 80px;
}
.reviews-title {
  margin-bottom: 32px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.review-form h3 {
  font-size: 17px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 12px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #736b70;
}
.review-submit,
.studio-save,
.studio-new,
.privacy-close-btn {
  background: var(--wine);
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 12px 20px;
  font-size: 13px;
}
.reviews-clip {
  display: none;
}
.reviews-stack {
  position: relative;
  min-height: 300px;
}
.review-card {
  position: absolute;
  inset: 0;
  padding: 28px;
  background: var(--paper);
  border-radius: 12px;
  transition:
    transform 0.25s,
    opacity 0.25s;
  cursor: pointer;
}
.review-card[data-pos="0"] {
  z-index: 3;
}
.review-card[data-pos="1"] {
  transform: translateY(8px) scale(0.96);
  z-index: 2;
}
.review-card[data-pos="2"] {
  transform: translateY(16px) scale(0.92);
  z-index: 1;
}
.review-card[data-pos="hidden"] {
  display: none;
}
.review-card.leaving {
  transform: translateX(-40px);
  opacity: 0;
}
.review-quote-icon {
  display: none;
}
.review-stars {
  color: #77582c;
  margin-bottom: 20px;
}
.review-text {
  font: 20px/1.6 var(--font-reading);
  overflow-wrap: anywhere;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.reviews-hint,
.reviews-empty {
  font-size: 13px;
  color: var(--muted);
}
.reviews-hint {
  margin-top: 30px;
}
/* Focused dialogs and author workspace */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #20131bcc;
  padding: 30px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
.privacy-modal.show {
  display: flex;
}
.privacy-card {
  width: min(720px, 100%);
  padding: 42px;
  position: relative;
  background: var(--cream);
  border-radius: 14px;
  margin: auto;
}
.privacy-card h2 {
  margin: 15px 0 24px;
}
.privacy-card h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}
.privacy-card p,
.privacy-card li {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.privacy-x {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
}
.privacy-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--wine);
}
.privacy-foot {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
}
.search-label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.lib-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.lib-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 12px 0;
}
.lib-ico {
  display: flex;
  width: 40px;
  flex-shrink: 0;
}
.lib-ico svg {
  width: 40px;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.4;
}
.lib-info {
  flex: 1;
  min-width: 0;
}
.lib-info h3 {
  font: 25px var(--font-headline);
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.lib-tags,
.lib-teaser {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.lib-arrow {
  color: var(--wine);
}
.studio-card {
  width: min(1000px, 100%);
}
.studio-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
}
.studio-list {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.studio-item {
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
}
.studio-item.active {
  color: var(--wine);
  text-decoration: underline;
}
.studio-form {
  display: grid;
  gap: 15px;
}
.studio-form label {
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.studio-row,
.studio-row-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.studio-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.studio-actions,
.studio-gate {
  display: flex;
  gap: 12px;
  align-items: center;
}
.studio-del {
  padding: 10px 16px;
  border: 1px solid #b69ba7;
  border-radius: 5px;
  color: var(--wine);
  background: none;
}
.studio-note {
  font-size: 12px;
  color: var(--wine);
  margin-top: 10px;
}
.studio-note.err {
  color: #9e233f;
}
.empty-result {
  padding: 20px 0;
}
@media (min-width: 1600px) {
  .library-room {
    padding-top: 80px;
    padding-bottom: 32px;
  }
  .hero {
    margin-bottom: 60px;
  }
}
@media (max-width: 1000px) {
  .top-nav {
    padding-inline: 32px;
  }
  .nav-links {
    margin-right: 15px;
    gap: 22px;
  }
  .content-width {
    width: calc(100% - 64px);
  }
  .library-room {
    padding: 45px 32px 26px;
  }
  .hero {
    gap: 45px;
  }
  .hero h1 {
    font-size: 58px;
  }
  .about-section {
    gap: 50px;
  }
  .newsletter-grid {
    gap: 50px;
  }
  .writing-section {
    gap: 35px;
  }
  .support-section img {
    width: 75px;
  }
  .feature-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}
@media (max-width: 680px) {
  .top-nav {
    padding: 18px 22px;
    flex-wrap: wrap;
    gap: 18px;
    min-height: 0;
  }
  .brand-monogram {
    font-size: 39px;
    padding-right: 13px;
  }
  .nav-brand {
    gap: 11px;
  }
  .nav-brand-title {
    font-size: 14px;
  }
  .nav-brand-title span {
    font-size: 11px;
  }
  .nav-tools {
    gap: 14px;
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 13px;
    font-size: 12px;
  }
  .content-width {
    width: calc(100% - 44px);
  }
  .library-room {
    padding: 34px 22px 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }
  .hero h1 {
    font-size: 52px;
    max-width: 390px;
  }
  .hero-aside p {
    max-width: 340px;
    font-size: 14px;
  }
  .hero-button {
    margin-top: 18px;
  }
  .shelf-caption {
    align-items: start;
    gap: 20px;
    font-size: 11px;
  }
  .shelf-caption span:last-child {
    max-width: 145px;
    text-align: right;
  }
  .shelving-area {
    height: 248px;
    min-height: 248px;
    padding: 4px 2px 0;
  }
  .arch-alcove {
    min-height: 220px;
  }
  .arch-alcove .books-container {
    height: 215px;
    padding-inline: 10px;
  }
  .bookcase-inner {
    border-width: 5px;
  }
  .center-arch {
    flex: 1;
  }
  .carved-column {
    width: 18px;
  }
  .drawer-base {
    height: 64px;
  }
  .drawer-center {
    min-width: 95px;
  }
  .drawer-center .nav-btn {
    width: 32px;
    height: 32px;
  }
  .drawer-center .nav-controls {
    gap: 8px;
  }
  .drawer-left,
  .drawer-right {
    min-width: 0;
  }
  .drawer-front {
    width: 90%;
  }
  .shelf-foot {
    font-size: 11px;
    gap: 12px;
  }
  .text-button {
    font-size: 11px;
    white-space: nowrap;
  }
  .featured {
    padding-block: 40px;
  }
  h2 {
    font-size: 34px;
  }
  .feature-card {
    flex-basis: 85%;
    min-width: 230px;
  }
  .feature-card:only-child {
    padding: 20px;
    grid-template-columns: 105px 1fr;
    gap: 0 20px;
    min-width: 0;
  }
  .feature-card:only-child .feature-cover {
    height: 170px;
    padding: 16px 13px;
  }
  .feature-cover span {
    font-size: 24px;
  }
  .feature-cover small {
    font-size: 11px;
  }
  .feature-card-title {
    font-size: 27px;
  }
  .feature-meta {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .feature-card-description {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .feature-card-link {
    font-size: 12px;
    gap: 12px;
  }
  .about-section {
    padding-block: 38px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .author-mark {
    font-size: 54px;
    margin-bottom: 15px;
  }
  .about-header h2 {
    font-size: 34px;
  }
  .about-quote {
    font-size: 29px;
  }
  .writing-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 36px;
  }
  .support-section {
    border-top: 1px solid var(--line);
    padding-top: 30px;
  }
  .support-section img {
    width: 80px;
    height: 135px;
  }
  .newsletter-section {
    padding-block: 38px;
  }
  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .newsletter-grid h2 {
    font-size: 39px;
  }
  .newsletter-status {
    border-left: 0;
    border-top: 1px solid #cfc0c9;
    padding: 24px 0 0;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 25px;
    padding-block: 28px;
  }
  .footer-links {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }
  .footer-year {
    margin-left: auto;
  }
  .reader-controls {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .reader-title {
    font-size: 44px;
  }
  .reader-body {
    padding: 35px 22px;
  }
  .reader-meta {
    gap: 15px;
    flex-wrap: wrap;
  }
  .story-text {
    font-size: 18px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .privacy-modal {
    padding: 12px;
  }
  .privacy-card {
    padding: 36px 22px 24px;
  }
  .studio-grid,
  .studio-row,
  .studio-row-3 {
    grid-template-columns: 1fr;
  }
  .studio-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }
  .studio-gate {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Leitura: superfície contínua, coluna confortável e controles ao alcance. */
.reader-view {
  --reader-bg: #f8f6f2;
  --reader-ink: #383034;
  --reader-muted: #74656c;
  --reader-line: #ded5d8;
  --reader-accent: #63364d;
  background: var(--reader-bg);
  color: var(--reader-ink);
  min-height: 100vh;
  padding-bottom: 24px;
}
.reader-view[data-theme="night"] {
  --reader-bg: #262126;
  --reader-ink: #e5dde0;
  --reader-muted: #b9a9b3;
  --reader-line: #4c3d46;
  --reader-accent: #d5a6be;
  color-scheme: dark;
}
.is-reading .top-nav {
  padding-block: 17px;
  min-height: 82px;
}
.is-reading .nav-links {
  display: none;
}
.is-reading .nav-tools {
  margin-left: auto;
}
.reading-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--reader-bg);
  color: var(--reader-ink);
  border-block: 1px solid var(--reader-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(28px, calc((100vw - 1120px) / 2));
  min-height: 73px;
}
.reading-toolbar .reader-back {
  border: 0;
  padding: 10px 0;
  color: var(--reader-accent);
  font-size: 13px;
}
.reading-location {
  font-size: 12px;
  color: var(--reader-muted);
  font-variant-numeric: tabular-nums;
}
.reading-settings {
  display: flex;
  align-items: center;
  gap: 24px;
}
.reading-settings .font-controls {
  gap: 4px;
  border: 1px solid var(--reader-line);
  border-radius: 7px;
  padding: 2px;
}
.reading-settings .font-btn {
  border: 0;
  min-width: 40px;
  min-height: 36px;
  padding: 6px;
  font-size: 14px;
}
.reading-settings output {
  font-size: 12px;
  min-width: 23px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.reader-theme-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--reader-muted);
}
.reader-theme-label select {
  width: auto;
  border: 1px solid var(--reader-line);
  background: var(--reader-bg);
  color: var(--reader-ink);
  font-size: 12px;
  padding: 9px 25px 9px 10px;
  min-height: 42px;
}
.reader-track {
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.reader-track span {
  height: 100%;
  display: block;
  background: var(--reader-accent);
  width: 0;
}
.reader-view .story-hero {
  background: none;
  color: inherit;
  padding: 65px 28px 0;
}
.reader-head-content {
  max-width: 680px;
}
.reader-tags {
  gap: 12px;
  margin-bottom: 20px;
}
.reader-tag {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--reader-accent);
  font-size: 12px;
}
.reader-title {
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.reader-title:focus {
  outline: none;
}
.reader-meta {
  color: var(--reader-muted);
  font-size: 13px;
  margin-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--reader-line);
}
.reader-meta .ico {
  width: 16px;
  height: 16px;
}
.reader-body {
  max-width: 736px;
  padding: 38px 28px 48px;
}
.story-text {
  font-family: var(--font-reading);
  font-size: var(--reading-size, 20px);
  line-height: 1.95;
  letter-spacing: 0.002em;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.story-text p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 1.35em;
  text-align: left;
}
.story-text p:first-child:first-letter {
  font-family: var(--font-headline);
  font-size: 3.5em;
  float: left;
  line-height: 0.9;
  margin: 0.07em 0.12em 0 0;
  color: var(--reader-accent);
}
.reading-end {
  text-align: center;
  border-bottom: 1px solid var(--reader-line);
  margin-top: 56px;
  padding-bottom: 30px;
}
.end-mark {
  display: block;
  color: var(--reader-accent);
  font: 42px/1 var(--font-headline);
  margin-bottom: 22px;
}
.reading-end p {
  font: 22px/1.4 var(--font-headline);
  color: var(--reader-ink);
}
.reading-end a {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--reader-muted);
}
.reader-actions {
  border: 0;
  margin-top: 12px;
  padding-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.reader-secondary {
  color: var(--reader-accent);
  min-height: 44px;
  padding-inline: 12px;
}
.reader-view .reviews-section {
  border-top: 1px solid var(--reader-line);
  max-width: 1000px;
  padding-top: 42px;
  scroll-margin-top: 110px;
}
.reader-view .reviews-title {
  font-size: 32px;
}
.reader-view .reviews-grid {
  gap: 48px;
}
.reader-view .reviews-empty,
.reader-view .reviews-hint {
  color: var(--reader-muted);
}
.reader-view .review-card {
  background: var(--reader-bg);
  border: 1px solid var(--reader-line);
}
.reader-view .review-meta {
  color: var(--reader-muted);
}
.reader-view .review-form input,
.reader-view .review-form select,
.reader-view .review-form textarea {
  background: var(--reader-bg);
  color: var(--reader-ink);
  border-color: var(--reader-line);
}
.reader-view input::placeholder,
.reader-view textarea::placeholder {
  color: var(--reader-muted);
}
.reader-view .review-submit {
  background: var(--reader-accent);
  color: var(--reader-bg);
}
.reader-view .reviews-stack:has(.reviews-empty) {
  min-height: 0;
}
.reader-view .review-stars {
  color: var(--reader-accent);
}
@media (max-width: 680px) {
  .is-reading .top-nav {
    padding: 16px 22px;
    min-height: 70px;
  }
  .reading-toolbar {
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 20px;
  }
  .reading-toolbar .reader-back {
    font-size: 12px;
    padding: 5px 0;
  }
  .reading-location {
    font-size: 11px;
    margin-left: auto;
  }
  .reading-settings {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .reader-theme-label {
    gap: 8px;
  }
  .reader-view .story-hero {
    padding: 38px 24px 0;
  }
  .reader-title {
    font-size: 44px;
  }
  .reader-meta {
    font-size: 12px;
    padding-bottom: 24px;
    margin-top: 20px;
  }
  .reader-body {
    padding: 30px 24px 36px;
  }
  .story-text {
    line-height: 1.85;
  }
  .story-text p:first-child:first-letter {
    font-size: 3em;
  }
  .reading-end {
    margin-top: 38px;
  }
  .reader-view .reviews-section {
    padding: 30px 24px;
    scroll-margin-top: 140px;
  }
  .reader-view .reviews-title {
    font-size: 29px;
  }
  .reader-view .reviews-grid {
    gap: 28px;
  }
  .reader-view .review-form h3 {
    font-size: 16px;
  }
}
.studio-gate {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 380px;
  align-items: stretch;
}
.studio-gate label {
  font-size: 13px;
  display: grid;
  gap: 6px;
}
#studioLogout {
  float: right;
  margin-bottom: 16px;
}
