@font-face {
  font-family: "NarkisBlock";
  src:
    url("/assets/fonts/NarkisBlock-Regular.woff2") format("woff2"),
    url("/assets/fonts/NarkisBlock-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NarkisBlockBold";
  src:
    local("NarkisBlockMF Bold"),
    local("NarkisBlockMF-Bold"),
    url("/assets/fonts/NarkisBlock-Bold.woff2") format("woff2"),
    url("/assets/fonts/NarkisBlock-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #050505;
  --chrome: #050505;
  --chrome-ink: #ffffff;
  --chrome-line: rgba(255, 255, 255, 0.34);
  --topbar-height: 62px;
  --footer-height: 74px;
  --quote-chrome-gap: 24px;
  --book-width: min(1360px, calc(100vw - 88px));
  --book-edge: calc((100vw - var(--book-width)) / 2);
  --soft-ink: rgba(5, 5, 5, 0.62);
  --hairline: rgba(5, 5, 5, 0.13);
  --hairline-soft: rgba(5, 5, 5, 0.07);
  --shadow: rgba(5, 5, 5, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  background: var(--chrome);
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--chrome);
  color: var(--ink);
  font-family: "NarkisBlock", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: auto;
  text-rendering: optimizeLegibility;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.22;
}

.app-shell {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--chrome);
  isolation: isolate;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: var(--topbar-height);
  padding-block: max(14px, env(safe-area-inset-top, 0px));
  padding-inline: var(--book-edge);
  background: var(--chrome);
  box-shadow: 0 0 0 100vmax var(--chrome);
  clip-path: inset(0 -100vmax);
  color: var(--chrome-ink);
  direction: ltr;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.book-label {
  position: absolute;
  inset-block-start: 50%;
  right: var(--book-edge);
  transform: translateY(-50%);
  display: block;
  max-width: min(58vw, 300px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--chrome-ink);
  font-family: "NarkisBlock", "Times New Roman", serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  direction: rtl;
  text-align: right;
  white-space: normal;
}

.book-label span {
  display: block;
}

#shareButton {
  order: 1;
}

#tocToggle {
  order: 2;
}

#aboutToggle {
  order: 3;
}

.topbar .icon-button {
  width: 40px;
  height: 40px;
  border-color: var(--chrome-line);
  background: transparent;
  color: var(--chrome-ink);
  backdrop-filter: none;
}

.topbar .icon-button .ui-icon {
  width: 18px;
  height: 18px;
}

.icon-button,
.turn-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  backdrop-filter: blur(14px);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.icon-glyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.ui-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.ui-icon-arrow {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.icon-button:focus-visible,
.turn-button:focus-visible,
.book-label:focus-visible,
.toc-list button:focus-visible,
.about-accordion-toggle:focus-visible,
.about-form input:focus-visible,
.about-form textarea:focus-visible,
.about-form button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (hover: hover) {
  .icon-button:hover,
  .turn-button:hover {
    transform: translateY(-1px);
    border-color: rgba(5, 5, 5, 0.32);
    background: #ffffff;
  }

  .topbar .icon-button:hover,
  .page-controls .turn-button:hover {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
  }
}

.reader-stage {
  display: grid;
  place-items: center;
  height: 100svh;
  padding: 78px 44px 78px;
}

.book-frame {
  position: relative;
  width: var(--book-width);
  height: min(650px, calc(100svh - 160px));
  min-height: 430px;
  overflow: hidden;
  background: #ffffff;
}

.book-frame::before,
.book-frame::after {
  position: absolute;
  inset-block: 16px;
  z-index: -1;
  content: "";
  background: #ffffff;
  border: 1px solid var(--hairline-soft);
  box-shadow: none;
  transform-origin: center;
}

.book-frame::before {
  inset-inline: 14px -8px;
  transform: rotate(-0.35deg);
}

.book-frame::after {
  inset-inline: -8px 14px;
  transform: rotate(0.35deg);
}

.page-surface {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow: none;
  will-change: transform;
}

.page-snapshot {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.page-snapshot.slide-out-next {
  animation: slideOutNext 380ms cubic-bezier(0.25, 0.7, 0.25, 1) forwards;
}

.page-snapshot.slide-out-prev {
  animation: slideOutPrev 380ms cubic-bezier(0.25, 0.7, 0.25, 1) forwards;
}

.page-surface.slide-in-next {
  animation: slideInNext 380ms cubic-bezier(0.25, 0.7, 0.25, 1) both;
}

.page-surface.slide-in-prev {
  animation: slideInPrev 380ms cubic-bezier(0.25, 0.7, 0.25, 1) both;
}

@keyframes slideOutNext {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes slideOutPrev {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes slideInNext {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInPrev {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cover-layout,
.quote-layout {
  position: relative;
  z-index: 1;
  height: 100%;
}

.cover-layout {
  display: grid;
  place-items: center;
  padding: clamp(34px, 4.6vw, 68px);
}

.cover-title {
  justify-self: center;
  align-self: center;
  max-width: 300px;
  margin: 0;
  font-size: clamp(36px, 4.05vw, 64px);
  font-weight: 900;
  line-height: 0.95;
  text-align: right;
}

.cover-title span {
  display: block;
}

.cover-small {
  display: none;
}

.cover-strike {
  display: none;
}

.cover-hint {
  position: absolute;
  inset-block-end: clamp(26px, 4vw, 48px);
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1;
  animation: hintPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.cover-hint .ui-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.quote-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
  align-items: center;
  padding: clamp(38px, 5.2vw, 82px) 0;
}

.quote-text {
  grid-column: 1;
  justify-self: center;
  max-width: min(520px, calc((100vw - 88px) / 2 - 84px));
  margin: 0;
  color: var(--ink);
  font-family: "NarkisBlockBold", "NarkisBlock", "Times New Roman", serif;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 900;
  line-height: 1.16;
  text-align: right;
  transform: translateY(2px);
}

.quote-line {
  display: block;
}

.quote-spacer {
  display: block;
  height: 0.38em;
}

.quote-meta {
  grid-column: 2;
  justify-self: center;
  max-width: min(380px, calc((100vw - 88px) / 2 - 84px));
  color: var(--ink);
  font-size: clamp(15px, 1.08vw, 19px);
  line-height: 1.22;
  text-align: center;
  transform: translateY(2px);
}

.quote-meta strong {
  display: block;
  font-family: "NarkisBlockBold", "NarkisBlock", "Times New Roman", serif;
  font-weight: 900;
}

.quote-role {
  display: block;
  font-weight: 400;
}

.quote-source {
  display: block;
  margin-block-start: 0.78em;
}

.quote-meta > span,
.quote-source > span {
  display: block;
}

.quote-mark {
  position: absolute;
  color: var(--ink);
  width: clamp(54px, 5vw, 84px);
  aspect-ratio: 37.89 / 29.74;
  user-select: none;
  opacity: 1;
}

.quote-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.quote-mark.top {
  inset-block-start: clamp(32px, 4.4vw, 58px);
  inset-inline-start: clamp(36px, 5vw, 76px);
}

.quote-mark.bottom {
  inset-block-end: clamp(28px, 4.4vw, 54px);
  inset-inline-end: clamp(34px, 4.8vw, 70px);
  transform: rotate(180deg);
}

.page-links {
  position: absolute;
  z-index: 4;
  inset-block-end: clamp(28px, 4.4vw, 54px);
  inset-inline-start: clamp(36px, 5vw, 76px);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  direction: rtl;
}

.source-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "NarkisBlock", "Times New Roman", serif;
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 400;
  line-height: 1;
  direction: rtl;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
  cursor: pointer;
}

.save-image-link {
  color: var(--soft-ink);
}

.source-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.about-panel {
  position: absolute;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--hairline);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.33, 1, 0.68, 1);
  scrollbar-width: none;
}

.about-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.about-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-height: 100%;
  padding: clamp(32px, 4.6vw, 64px) 0;
}

.about-copy,
.about-actions {
  justify-self: center;
  direction: rtl;
  text-align: right;
}

.about-copy {
  grid-column: 1;
  max-width: min(420px, calc((100vw - 88px) / 2 - 84px));
}

.about-actions {
  grid-column: 2;
  width: min(560px, calc((100vw - 88px) / 2 - 56px));
}

.about-copy h2,
.about-actions h3,
.about-form h4 {
  color: var(--ink);
  font-family: "NarkisBlockBold", "NarkisBlock", "Times New Roman", serif;
  font-weight: 900;
  line-height: 1;
}

.about-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 1.8vw, 30px);
}

.about-actions h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 1.8vw, 30px);
}

.about-copy p {
  margin: 0 0 11px;
  color: rgba(5, 5, 5, 0.72);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.32;
}

.about-forms {
  display: grid;
  gap: 0;
  border-block-start: 1px solid var(--hairline-soft);
}

.about-accordion {
  border-block-end: 1px solid var(--hairline-soft);
}

.about-accordion-toggle {
  position: relative;
  display: grid;
  width: 100%;
  padding: 13px 0;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.about-accordion-toggle span {
  display: block;
  padding-inline-start: 24px;
  font-family: "NarkisBlockBold", "NarkisBlock", "Times New Roman", serif;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 900;
  line-height: 1;
}

.about-accordion-toggle::before {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  content: "+";
  color: rgba(5, 5, 5, 0.56);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.about-accordion.open .about-accordion-toggle::before {
  content: "−";
}

.about-accordion-panel {
  padding-block: 2px 14px;
}

.about-form {
  display: grid;
  gap: 7px;
}

.about-form label {
  display: grid;
  gap: 4px;
  color: rgba(5, 5, 5, 0.62);
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1.12;
}

.about-form input,
.about-form textarea {
  width: 100%;
  border: 0;
  border-block-end: 1px solid rgba(5, 5, 5, 0.24);
  border-radius: 0;
  padding: 5px 0 6px;
  background: transparent;
  color: var(--ink);
  font: 400 clamp(13px, 0.95vw, 16px) / 1.2 "NarkisBlock", "Times New Roman", serif;
  text-align: right;
  resize: vertical;
}

.about-form textarea {
  min-height: 50px;
}

.about-form input[type="url"] {
  direction: ltr;
  text-align: left;
  font-family: Arial, sans-serif;
}

.about-form button {
  justify-self: start;
  margin-block-start: 3px;
  padding: 7px 0;
  border-block-end: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: "NarkisBlockBold", "NarkisBlock", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.about-form button.copied {
  color: rgba(5, 5, 5, 0.56);
}

.about-feedback {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: rgba(5, 5, 5, 0.62);
  font-size: 12px;
  line-height: 1.2;
}

.topbar .icon-button.copied {
  border-color: rgba(255, 255, 255, 0.85);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.notfound {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.notfound h1 {
  margin: 0;
  font-family: "NarkisBlockBold", "NarkisBlock", "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
}

.notfound p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 17px;
}

.notfound a {
  color: var(--ink);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.redacted {
  display: inline-block;
  min-width: 2.4em;
  height: 0.68em;
  margin-inline: 0.12em;
  transform: translateY(0.08em);
  background: var(--ink);
  vertical-align: baseline;
}

.page-controls {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 46px minmax(120px, 210px) 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: calc(var(--footer-height) + var(--safe-bottom));
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(14px + var(--safe-bottom))
    max(16px, env(safe-area-inset-left, 0px));
  background: var(--chrome);
  box-shadow: 0 0 0 100vmax var(--chrome);
  clip-path: inset(0 -100vmax);
  color: var(--chrome-ink);
  direction: rtl;
  pointer-events: none;
}

.page-controls > * {
  pointer-events: auto;
}

.turn-button {
  width: 46px;
  height: 46px;
}

.page-controls .turn-button {
  border-color: var(--chrome-line);
  background: transparent;
  color: var(--chrome-ink);
  backdrop-filter: none;
}

.turn-button.prev {
  grid-column: 1;
  grid-row: 1;
}

.progress-wrap {
  grid-column: 2;
  grid-row: 1;
}

.turn-button.next {
  grid-column: 3;
  grid-row: 1;
}

.turn-button .ui-icon {
  width: 30px;
  height: 30px;
}

.progress-wrap {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  padding: 0 8px;
}

.progress-meter {
  width: min(180px, 28vw);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--chrome-ink);
  transition: width 240ms ease;
}

.progress-label {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  direction: ltr;
}

.toc-panel {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding: clamp(32px, 4.8vw, 74px) clamp(34px, 6vw, 92px);
  background: #ffffff;
  color: var(--ink);
  border: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.33, 1, 0.68, 1);
}

.toc-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-block-end: 2px solid var(--ink);
  padding-block-end: 16px;
}

.toc-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.icon-button.dark {
  border-color: var(--hairline);
  background: #ffffff;
  color: var(--ink);
}

.toc-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 12px 0 0;
  overflow: auto;
  list-style: none;
  scrollbar-width: none;
  counter-reset: toc;
}

.toc-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list .toc-cover {
  counter-increment: none;
}

.toc-list button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 13px 0;
  border-block-end: 1px solid var(--hairline-soft);
  background: transparent;
  color: var(--ink);
  direction: ltr;
  text-align: right;
}

.toc-list button::after {
  content: counter(toc, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: start;
  color: rgba(5, 5, 5, 0.44);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.toc-list .toc-cover button::after {
  content: "";
}

.toc-name {
  display: block;
  grid-column: 2;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.14;
  direction: rtl;
  text-align: right;
}

.toc-date {
  grid-column: 2;
  justify-self: end;
  display: block;
  margin-block-start: 3px;
  color: var(--soft-ink);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  direction: ltr;
}

.toc-date:empty {
  display: none;
}

.latin {
  display: inline;
  font-family: Arial, sans-serif;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.toc-list button[aria-current="true"] .toc-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.scrim {
  display: none;
}

@media (max-width: 820px) {
  .app-shell {
    min-height: 100svh;
  }

  .topbar {
    inset-inline: 0;
    gap: 6px;
    padding-inline: max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }

  .topbar .icon-button {
    width: 38px;
    height: 38px;
  }

  .book-label {
    right: max(12px, env(safe-area-inset-right, 0px));
    max-width: 52vw;
    font-size: 10px;
  }

  .reader-stage {
    align-items: stretch;
    height: 100svh;
    padding: 0;
  }

  .book-frame {
    width: 100vw;
    height: 100svh;
    min-height: 0;
  }

  .book-frame::before,
  .book-frame::after {
    display: none;
  }

  .page-surface {
    border: 0;
    box-shadow: none;
    transform-origin: center;
    overflow-y: auto;
  }

  .cover-layout {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 76px 32px calc(92px + var(--safe-bottom));
  }

  .cover-title {
    grid-column: 1;
    justify-self: center;
    max-width: min(68vw, 300px);
    font-size: clamp(36px, 10.8vw, 58px);
    line-height: 0.97;
    text-align: right;
  }

  .cover-hint {
    inset-block-end: calc(var(--footer-height) + var(--safe-bottom) + 20px);
  }

  .cover-small {
    display: none;
  }

  .quote-layout {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    min-height: 100%;
    padding: 82px 28px calc(106px + var(--safe-bottom));
  }

  .quote-text {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    font-size: clamp(18px, 4.85vw, 20px);
    font-weight: 900;
    line-height: 1.12;
    text-align: right;
    transform: translateY(6px);
  }

  .quote-meta {
    grid-column: 1;
    justify-self: start;
    max-width: 86vw;
    color: rgba(5, 5, 5, 0.78);
    font-size: clamp(13px, 3.5vw, 17px);
    line-height: 1.2;
    text-align: right;
    transform: translateY(6px);
  }

  .quote-mark {
    width: clamp(56px, 15.8vw, 64px);
    opacity: 1;
  }

  .quote-mark.top {
    inset-block-start: calc(var(--topbar-height) + var(--quote-chrome-gap));
    inset-inline-start: 24px;
  }

  .quote-mark.bottom {
    inset-block-end: calc(var(--footer-height) + var(--safe-bottom) + var(--quote-chrome-gap));
    inset-inline-end: 22px;
  }

  .page-links {
    inset-block-end: calc(var(--footer-height) + var(--safe-bottom) + var(--quote-chrome-gap));
    inset-inline-start: 24px;
    gap: 14px;
  }

  .source-link {
    font-size: 13px;
  }

  .about-panel {
    border: 0;
    transform: translateY(10px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    min-height: 100%;
    padding: calc(var(--topbar-height) + 34px) 28px calc(var(--footer-height) + var(--safe-bottom) + 34px);
  }

  .about-copy,
  .about-actions {
    grid-column: 1;
    justify-self: stretch;
    width: auto;
    max-width: none;
  }

  .about-copy h2 {
    margin-block-end: 16px;
    font-size: 22px;
  }

  .about-actions h3 {
    margin-block-end: 10px;
    font-size: 22px;
  }

  .about-copy p {
    margin-block-end: 10px;
    font-size: 13px;
    line-height: 1.25;
  }

  .about-forms {
    gap: 0;
  }

  .about-form {
    gap: 7px;
  }

  .about-accordion-toggle span {
    font-size: 17px;
  }

  .about-form label,
  .about-feedback {
    font-size: 12px;
  }

  .about-form input,
  .about-form textarea {
    font-size: 14px;
  }

  .toc-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: calc(var(--topbar-height) + 24px) 24px calc(var(--footer-height) + var(--safe-bottom) + 24px);
    border-color: rgba(5, 5, 5, 0.09);
    opacity: 0;
    transform: translateY(10px);
    transform-origin: top center;
  }

  .toc-panel.open {
    opacity: 1;
    transform: translateY(0);
  }

  .toc-head {
    align-items: center;
    border-block-end: 1px solid rgba(5, 5, 5, 0.18);
    padding-block-end: 12px;
  }

  .toc-head h2 {
    font-size: 20px;
  }

  .toc-head .icon-button {
    width: 32px;
    height: 32px;
  }

  .toc-head .icon-button .ui-icon {
    width: 18px;
    height: 18px;
  }

  .toc-list {
    padding-block-start: 8px;
  }

  .toc-list button {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 10px 0;
  }

  .toc-name {
    font-size: 14px;
    line-height: 1.1;
  }

  .toc-date,
  .toc-list button::after {
    font-size: 9px;
  }

  .page-controls {
    grid-template-columns: 46px minmax(112px, 1fr) 46px;
    gap: 10px;
  }

  .progress-meter {
    width: min(150px, 34vw);
  }
}

@media (max-width: 380px) {
  .quote-layout {
    padding-inline: 22px;
    gap: 12px;
  }

  .quote-text {
    font-size: 17px;
    line-height: 1.08;
  }

  .quote-meta {
    font-size: 12px;
    line-height: 1.1;
  }

  .quote-mark {
    width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
