.human-writes-view {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
}

.human-writes-host {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
}

.hw-module {
  --hw-ink: #2b241a;
  --hw-ink-soft: rgba(58, 46, 29, 0.72);
  --hw-paper: #f4eddf;
  --hw-paper-soft: #faf5ea;
  --hw-board: #b08958;
  --hw-board-dark: #8d6639;
  --hw-shadow: rgba(10, 6, 2, 0.22);
  --hw-image-radius: 16px;
  --hw-image-gap: clamp(6px, 0.7vw, 12px);
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  color: var(--hw-ink);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  position: relative;
  box-sizing: border-box;
}

.hw-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}

.hw-book {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: clamp(10px, 1.2vw, 16px);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, var(--hw-board), var(--hw-board-dark));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hw-book::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hw-paper-stack {
  position: absolute;
  inset: 24px 16px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(245, 237, 223, 0.08), rgba(245, 237, 223, 0)),
    repeating-linear-gradient(180deg, rgba(255, 249, 240, 0.74) 0 3px, rgba(219, 198, 166, 0.42) 3px 6px);
  opacity: 0.34;
  pointer-events: none;
}

.hw-spiral {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 34px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 0.8rem, rgba(40, 28, 14, 0.56) 0.18rem, transparent 0.2rem) 50% 0 / 100% 1.3rem repeat-y,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(79, 57, 31, 0.28), rgba(255, 255, 255, 0.12));
  opacity: 0.84;
  pointer-events: none;
  z-index: 3;
}
.hw-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, var(--hw-paper-soft), var(--hw-paper));
  box-shadow:
    0 12px 30px var(--hw-shadow),
    inset 0 0 0 1px rgba(104, 81, 51, 0.08);
}
.hw-page--left {
  margin-right: 20px;
}

.hw-page--right {
  margin-left: 20px;
}

.hw-page--single {
  display: none;
}
.hw-page-article {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(14px, 1.35vw, 22px);
  background-image:
    linear-gradient(rgba(88, 63, 30, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 30%);
  background-size: 100% 1.72rem, 100% 100%;
}
.hw-running-head {
  margin: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(99, 74, 41, 0.16);
  color: var(--hw-ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-page-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding-top: 0.72rem;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 88, 52, 0.45) rgba(0, 0, 0, 0);
}

.hw-page-body h2,
.hw-page-body h3,
.hw-page-body p,
.hw-page-body blockquote {
  margin: 0;
}

.hw-page-body h2 {
  font-size: clamp(1.18rem, 1.7vw, 1.94rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.012em;
  color: rgba(27, 20, 10, 0.96);
}

.hw-page-body h3 {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hw-ink-soft);
}

.hw-page-body p,
.hw-page-body li {
  font-size: clamp(0.86rem, 0.88vw, 0.95rem);
  line-height: 1.5;
}

.hw-page-body--rtl {
  direction: rtl;
  text-align: right;
}

.hw-page-body--cover {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: start;
  overflow: hidden;
}

.hw-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--hw-image-radius);
  clip-path: inset(0 round var(--hw-image-radius));
  border: 0;
}

.hw-inline-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  align-self: center;
  border-radius: var(--hw-image-radius);
  clip-path: inset(0 round var(--hw-image-radius));
  border: 0;
}

.hw-cover-image {
  position: absolute;
  inset: 0;
  filter: saturate(0.88) contrast(1.06) brightness(0.92);
}

.hw-cover-copy {
  position: relative;
  z-index: 1;
  max-width: 78%;
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(12, 10, 8, 0.56);
  color: #f6eddc;
  justify-items: start;
  text-align: left;
}

.hw-cover-copy h2 {
  color: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}


.hw-cover-copy p {
  font-size: 0.82rem;
  line-height: 1.38;
}

.hw-page-body--intro {
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-inline: clamp(0px, 2vw, 16px);
}

.hw-page-body--text-centered {
  align-content: center;
  justify-items: center;
}

.hw-page-body--toc,
.hw-page-body--text,
.hw-page-body--image-top,
.hw-page-body--image-split,
.hw-page-body--quote,
.hw-page-body--full-image,
.hw-page-body--image-bottom {
  grid-auto-rows: min-content;
}

.hw-page-body--image-top {
  grid-template-rows: minmax(220px, 42%) minmax(0, 1fr);
  align-content: stretch;
}

.hw-page-body--image-split {
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: stretch;
}

.hw-page-body--quote {
  place-content: center;
  text-align: center;
}

.hw-page-body--quote blockquote {
  font-size: clamp(1.06rem, 1.55vw, 1.4rem);
  line-height: 1.36;
  color: rgba(46, 33, 18, 0.86);
}

.hw-page-body--full-image {
  padding-top: 0;
  align-content: stretch;
  gap: 0.78rem;
}

.hw-page-body--full-image.hw-page-body--with-copy {
  grid-template-rows: minmax(260px, 1fr) auto;
}

.hw-page-body--full-image.hw-page-body--image-only {
  grid-template-rows: minmax(280px, 1fr);
}

.hw-page-body--image-bottom {
  padding-top: 0;
  align-content: stretch;
  gap: 0.78rem;
}

.hw-page-body--image-bottom.hw-page-body--with-copy {
  grid-template-rows: auto minmax(260px, 1fr);
}

.hw-page-body--image-bottom.hw-page-body--image-only {
  grid-template-rows: minmax(280px, 1fr);
}

.hw-text-flow {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.hw-text-flow--centered {
  width: min(100%, 34ch);
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.hw-text-flow--centered h2,
.hw-text-flow--centered h3,
.hw-text-flow--centered p,
.hw-text-flow--centered blockquote,
.hw-text-flow--centered .hw-paragraph {
  text-align: center;
}

.hw-page-body--rtl .hw-text-flow--centered,
.hw-page-body--rtl .hw-text-flow--centered h2,
.hw-page-body--rtl .hw-text-flow--centered h3,
.hw-page-body--rtl .hw-text-flow--centered p,
.hw-page-body--rtl .hw-text-flow--centered blockquote,
.hw-page-body--rtl .hw-text-flow--centered .hw-paragraph {
  text-align: center;
}

.hw-page-footer,
.hw-page-count {
  display: none;
}

.hw-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.hw-toc-button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.1rem 0;
  color: var(--hw-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hw-page-body--rtl .hw-toc-button {
  text-align: right;
}

.hw-toc-button:hover,
.hw-toc-button:focus-visible {
  color: #000;
  transform: translateX(3px);
}

.hw-page-body--rtl .hw-toc-button:hover,
.hw-page-body--rtl .hw-toc-button:focus-visible {
  transform: translateX(-3px);
}

.hw-text-flow--stacked-image {
  padding: 0 0.12rem 0.12rem;
}

.hw-inline-image-frame,
.hw-full-image-figure,
.hw-image-bottom-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: var(--hw-image-gap);
  border-radius: var(--hw-image-radius);
  background: transparent;
}

.hw-full-image-figure {
  background: transparent;
}

.hw-page-body--full-image .hw-inline-image {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
}

.hw-page-body--full-image-stretched .hw-inline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hw-page-body--image-top > .hw-inline-image-frame,
.hw-page-body--image-split > .hw-inline-image-frame,
.hw-page-body--image-bottom .hw-image-bottom-figure,
.hw-page-body--image-bottom.hw-page-body--centered-copy .hw-image-bottom-figure {
  min-width: 0;
  min-height: 0;
}

.hw-nav,
.hw-contents {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f6ead5;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.hw-nav {
  position: relative;
  z-index: 6;
  width: 52px;
  height: 126px;
  border-radius: 999px;
  font-size: 1.25rem;
  transform: none;
}

.hw-nav--left {
  left: auto;
}

.hw-nav--right {
  right: auto;
}

.hw-nav:hover,
.hw-nav:focus-visible {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.hw-nav.is-forward {
  color: #9dc1ff;
  border-color: rgba(86, 145, 255, 0.45);
  background: rgba(40, 105, 225, 0.22);
  box-shadow: 0 0 0 1px rgba(86, 145, 255, 0.14) inset;
}

.hw-nav.is-forward:hover,
.hw-nav.is-forward:focus-visible {
  background: rgba(52, 121, 255, 0.3);
  border-color: rgba(115, 168, 255, 0.58);
}

.hw-nav:disabled {
  opacity: 0.62;
  cursor: default;
}

.hw-contents {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 5;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.4rem 0.82rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: rgba(20, 16, 11, 0.18);
  backdrop-filter: blur(2px);
}

.hw-contents:hover,
.hw-contents:focus-visible {
  transform: translateX(-50%) scale(1.02);
  color: #fff7ea;
  background: rgba(20, 16, 11, 0.36);
  border-color: rgba(255, 255, 255, 0.22);
}

.hw-mobile-bar {
  display: none;
}

.hw-mobile-nav,
.hw-mobile-contents {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f6ead5;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.hw-mobile-nav {
  width: 1.58rem;
  height: 1.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.hw-mobile-nav--left {
  justify-self: start;
}

.hw-mobile-nav--right {
  justify-self: end;
}

.hw-mobile-nav.is-forward {
  color: #9dc1ff;
  border-color: rgba(86, 145, 255, 0.52);
  background: rgba(40, 105, 225, 0.28);
}

.hw-mobile-nav:disabled {
  opacity: 0.46;
  cursor: default;
}

.hw-mobile-contents {
  min-height: 1.46rem;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-self: center;
}

.hw-swipe-hint {
  display: none;
}

.hw-swipe-hint.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  padding: 0.32rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 10, 8, 0.34);
  color: #f5e7ce;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  z-index: 25;
  pointer-events: none;
}

.hw-swipe-hint-icon {
  display: inline-block;
  animation: hwSwipeHintMotion 1.2s ease-in-out infinite;
}

@keyframes hwSwipeHintMotion {
  0% {
    transform: translateX(-3px);
    opacity: 0.7;
  }
  50% {
    transform: translateX(3px);
    opacity: 1;
  }
  100% {
    transform: translateX(-3px);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-swipe-hint-icon {
    animation: none;
  }
}

.hw-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hw-measure {
  position: fixed;
  left: -10000px;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.hw-module.is-flipping .hw-page {
  animation: hwFlip 260ms ease;
  transform-origin: center center;
}

@keyframes hwFlip {
  0% {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }
  45% {
    transform: rotateY(8deg) scale(0.992);
    filter: brightness(1.04);
  }
  100% {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }
}

.hw-page-body::-webkit-scrollbar {
  width: 8px;
}

.hw-page-body::-webkit-scrollbar-track {
  background: transparent;
}

.hw-page-body::-webkit-scrollbar-thumb {
  background: rgba(117, 88, 52, 0.32);
  border-radius: 999px;
}

.hw-page-body::-webkit-scrollbar-thumb:hover {
  background: rgba(117, 88, 52, 0.5);
}

@media (max-width: 980px) {
  .hw-module {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  .hw-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .hw-book {
    width: calc(100% - 4px);
    max-width: 96vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    padding: clamp(7px, 2.1vw, 10px);
    border-radius: 18px;
  }

  .hw-paper-stack,
  .hw-spiral,
  .hw-page--left,
  .hw-page--right,
  .hw-nav,
  .hw-contents {
    display: none;
  }

  .hw-page--single {
    position: relative;
    display: flex;
    min-height: 0;
    height: 100%;
  }

  .hw-page-article {
    padding: clamp(10px, 3vw, 14px) clamp(10px, 3vw, 14px) clamp(8px, 2.2vw, 10px);
    background-image:
      linear-gradient(rgba(88, 63, 30, 0.032) 1px, transparent 1px),
      radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 30%);
  }

  .hw-page--single > .hw-page-article {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  .hw-page-body--cover,
  .hw-page-body--full-image,
  .hw-page-body--image-bottom {
    padding-top: 0;
    gap: 0.56rem;
  }

  .hw-page-body--full-image.hw-page-body--with-copy {
    grid-template-rows: minmax(210px, 1fr) auto;
  }

  .hw-page-body--full-image.hw-page-body--image-only {
    grid-template-rows: minmax(220px, 1fr);
  }

  .hw-page-body--image-bottom.hw-page-body--with-copy {
    grid-template-rows: auto minmax(210px, 1fr);
  }

  .hw-page-body--image-bottom.hw-page-body--image-only {
    grid-template-rows: minmax(220px, 1fr);
  }

  .hw-page-body--full-image .hw-full-image-figure,
  .hw-page-body--image-bottom .hw-image-bottom-figure {
    height: 100%;
    min-height: 0;
  }

  .hw-page-body--image-top {
    grid-template-rows: minmax(180px, 38%) minmax(0, 1fr);
  }

  .hw-page-body--image-split {
    grid-template-columns: 1fr;
  }

  .hw-cover-copy {
  position: relative;
  z-index: 1;
  max-width: 78%;
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(12, 10, 8, 0.56);
  color: #f6eddc;
  justify-items: start;
  text-align: left;
}

  .hw-cover-copy h2 {
    color: inherit !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
    font-size: clamp(0.54rem, 3.15vw, 0.74rem) !important;
    line-height: 1.02;
  }

  .hw-cover-copy p {
    font-size: clamp(0.44rem, 2.45vw, 0.58rem) !important;
    line-height: 1.1;
  }

  .hw-text-flow--stacked-image {
    padding: 0 0.05rem 0.1rem;
  }

  .hw-page-body {
    padding-top: 0.45rem;
    padding-right: 0.1rem;
    overflow-anchor: none;
  }

  .hw-page-body h2 {
    font-size: clamp(1.22rem, 5.45vw, 1.6rem);
    line-height: 1.14;
  }

  .hw-page-body p,
  .hw-page-body li,
  .hw-page-body .hw-paragraph {
    font-size: clamp(0.78rem, 3.05vw, 0.88rem);
    line-height: 1.48;
    text-wrap: wrap;
  }

  .hw-page-body--image-split {
    grid-template-columns: 1fr;
  }

  .hw-mobile-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    left: auto;
    transform: none;
    width: min(92vw, 420px);
    margin: 4px auto calc(env(safe-area-inset-bottom) + 2px);
    min-height: 31px;
    padding: 0.12rem 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 13, 10, 0.48);
    backdrop-filter: blur(3px);
    z-index: 18;
  }

  .hw-mobile-nav:hover,
  .hw-mobile-nav:focus-visible,
  .hw-mobile-contents:hover,
  .hw-mobile-contents:focus-visible {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .hw-swipe-hint.is-visible {
    top: 58px;
    left: 12px;
    bottom: auto;
    transform: none;
  }
}

.hw-body {
  display: block;
}

.hw-page-body .hw-paragraph {
  margin: 0 0 1.2em;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: wrap;
  direction: inherit;
  unicode-bidi: plaintext;
}

.hw-page-body .hw-paragraph:last-child,
.hw-page-body .hw-paragraph--quote {
  margin-bottom: 0;
}

.hw-page-body .hw-paragraph-spacer {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.hw-toc-group {
  display: grid;
  gap: 0.25rem;
}

.hw-toc-divider {
  height: 1px;
  margin: 0.12rem 0 0.06rem;
  background: linear-gradient(90deg, rgba(94, 68, 37, 0), rgba(94, 68, 37, 0.45), rgba(94, 68, 37, 0));
}

.hw-toc-button {
  display: block;
}

.hw-toc-mark {
  display: inline-block;
  width: 0.62rem;
  height: 1px;
  vertical-align: middle;
  margin-right: 0.42rem;
  background: rgba(43, 36, 26, 0.74);
}

.hw-toc-label {
  display: inline;
  min-width: 0;
}

.hw-page-body--rtl .hw-toc-list li {
  display: flex;
  justify-content: flex-end;
}

.hw-page-body--rtl .hw-toc-button {
  direction: rtl;
  text-align: right;
}

.hw-page-body--rtl .hw-toc-mark {
  margin-right: 0;
  margin-left: 0.42rem;
}


.hw-page-body--rtl .hw-paragraph {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.hw-toc-groups {
  display: grid;
  gap: 0.45rem;
}













