:root {
      color-scheme: dark;
      --paper: #171a24;
      --paper-deep: #10131b;
      --paper-pale: #f1eadf;
      --ink: #f4eee6;
      --ink-soft: #b9b4ae;
      --walnut: #3a2118;
      --walnut-deep: #1c0e0a;
      --rule: rgba(244, 238, 230, 0.24);
      --accent: #c87046;
      --serif: "Noto Serif KR", "Iowan Old Style", "Baskerville", serif;
      --mono: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --ease-out: cubic-bezier(0.2, 0.72, 0.24, 1);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      width: 100%;
      min-height: 100%;
      margin: 0;
      overflow: hidden;
      background: var(--paper);
      color: var(--ink);
    }

    body {
      font-family: var(--serif);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    button {
      color: inherit;
      font: inherit;
    }

    button:focus-visible {
      outline: 1px solid var(--ink);
      outline-offset: 4px;
    }

    [hidden] {
      display: none !important;
    }

    .experience {
      position: fixed;
      inset: 0;
      isolation: isolate;
      overflow: hidden;
      background: var(--paper);
      transition: background-color 720ms var(--ease-out), color 520ms var(--ease-out);
    }

    .frame {
      position: absolute;
      inset: 18px;
      z-index: 8;
      border: 1px solid var(--rule);
      pointer-events: none;
    }

    .frame::before,
    .frame::after {
      position: absolute;
      width: 18px;
      height: 18px;
      border-color: rgba(42, 34, 27, 0.48);
      content: "";
    }

    .frame::before {
      top: -1px;
      left: -1px;
      border-top: 1px solid;
      border-left: 1px solid;
    }

    .frame::after {
      right: -1px;
      bottom: -1px;
      border-right: 1px solid;
      border-bottom: 1px solid;
    }

    .masthead {
      position: absolute;
      top: 40px;
      right: 42px;
      left: 42px;
      z-index: 7;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 32px;
      transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
      pointer-events: none;
    }

    .identity {
      display: grid;
      grid-template-columns: auto auto;
      align-items: baseline;
      gap: 12px;
    }

    .identity__name {
      margin: 0;
      font-size: clamp(1.02rem, 1.55vw, 1.36rem);
      font-weight: 500;
      letter-spacing: -0.025em;
    }

    .identity__edition,
    .issue,
    .eyebrow,
    .microcopy,
    .counter,
    .meta-list dt,
    .folio,
    .fallback__kicker {
      font-family: var(--mono);
      font-size: 0.66rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      line-height: 1.45;
      text-transform: uppercase;
    }

    .identity__edition {
      color: var(--ink-soft);
    }

    .issue {
      max-width: 260px;
      margin: 1px 0 0;
      color: var(--ink-soft);
      text-align: right;
    }

    .hero-word {
      position: absolute;
      top: 12.5%;
      left: 50%;
      z-index: 1;
      margin: 0;
      color: rgba(68, 50, 34, 0.075);
      font-size: clamp(7rem, 20vw, 20rem);
      font-weight: 400;
      letter-spacing: -0.085em;
      line-height: 0.75;
      text-transform: uppercase;
      transform: translateX(-51%);
      white-space: nowrap;
      pointer-events: none;
      transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out);
    }

    .scene-shell {
      position: absolute;
      inset: 0;
      z-index: 3;
    }

    #scene {
      display: block;
      width: 100%;
      height: 100%;
      cursor: default;
      opacity: 0;
      touch-action: none;
      transition: opacity 900ms var(--ease-out);
    }

    .webgl-ready #scene {
      opacity: 1;
    }

    .pointer-label {
      position: fixed;
      z-index: 12;
      display: grid;
      min-width: 128px;
      padding: 9px 12px 8px;
      border: 1px solid rgba(39, 30, 22, 0.24);
      background: rgba(244, 236, 219, 0.92);
      box-shadow: 0 8px 24px rgba(59, 38, 22, 0.08);
      font-family: var(--mono);
      font-size: 0.61rem;
      letter-spacing: 0.12em;
      line-height: 1.45;
      text-transform: uppercase;
      transform: translate(16px, 18px);
      transition: opacity 120ms ease;
      pointer-events: none;
      backdrop-filter: blur(8px);
    }

    .pointer-label[aria-hidden="true"] {
      opacity: 0;
    }

    .browse-ui {
      position: absolute;
      right: 42px;
      bottom: 38px;
      left: 42px;
      z-index: 7;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: end;
      gap: 28px;
      transition: opacity 400ms var(--ease-out), transform 650ms var(--ease-out);
    }

    .selection {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: end;
      gap: 16px;
      min-width: 0;
    }

    .counter {
      padding-bottom: 5px;
      color: var(--ink-soft);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .selection__copy {
      min-width: 0;
    }

    .selection__title {
      margin: 0;
      overflow: hidden;
      font-size: clamp(1.7rem, 3vw, 3.1rem);
      font-weight: 400;
      letter-spacing: -0.055em;
      line-height: 0.98;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .selection__note {
      max-width: 480px;
      margin: 7px 0 0;
      color: var(--ink-soft);
      font-size: 0.86rem;
      line-height: 1.45;
    }

    .browse-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .round-button,
    .text-button,
    .close-button {
      border: 1px solid rgba(43, 34, 27, 0.28);
      background: rgba(244, 236, 219, 0.72);
      cursor: pointer;
      transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms var(--ease-out);
      backdrop-filter: blur(8px);
    }

    .round-button {
      display: grid;
      width: 42px;
      height: 42px;
      padding: 0;
      border-radius: 50%;
      place-items: center;
    }

    .round-button:hover,
    .text-button:hover,
    .close-button:hover {
      border-color: var(--ink);
      background: var(--paper-pale);
      transform: translateY(-2px);
    }

    .round-button svg,
    .close-button svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.25;
    }

    .text-button {
      min-height: 42px;
      padding: 0 19px;
      border-radius: 999px;
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .index-nav {
      display: grid;
      justify-items: end;
      gap: 12px;
    }

    .markers {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
    }

    .marker {
      position: relative;
      width: 24px;
      height: 24px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .marker::before {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(48, 39, 31, 0.34);
      content: "";
      transform: translate(-50%, -50%);
      transition: width 260ms var(--ease-out), background 220ms ease;
    }

    .marker:hover::before {
      background: var(--ink);
    }

    .marker[aria-current="true"]::before {
      width: 19px;
      border-radius: 4px;
      background: var(--accent);
    }

    .microcopy {
      margin: 0;
      color: var(--ink-soft);
      text-align: right;
    }

    .detail-panel {
      position: absolute;
      top: 20%;
      right: clamp(42px, 7vw, 116px);
      z-index: 9;
      width: min(38vw, 470px);
      max-height: 68vh;
      padding: clamp(24px, 3vw, 42px);
      overflow: auto;
      border: 1px solid rgba(49, 38, 28, 0.22);
      background:
        linear-gradient(90deg, rgba(84, 58, 37, 0.055), transparent 6%, transparent 94%, rgba(84, 58, 37, 0.045)),
        rgba(244, 237, 220, 0.91);
      box-shadow:
        0 28px 80px rgba(56, 36, 21, 0.12),
        inset 0 0 36px rgba(113, 79, 46, 0.055);
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
      pointer-events: none;
      backdrop-filter: blur(14px);
    }

    .detail-panel::before {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 1px;
      background: linear-gradient(180deg, transparent, rgba(74, 52, 35, 0.08), transparent);
      content: "";
      pointer-events: none;
    }

    .mode-detail .detail-panel {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0ms, 300ms, 300ms;
      pointer-events: auto;
    }

    .mode-detail.is-opening .detail-panel {
      pointer-events: none;
    }

    .mode-detail .browse-ui {
      opacity: 0;
      transform: translateY(28px);
      pointer-events: none;
    }

    .mode-detail .hero-word {
      opacity: 0.22;
      transform: translateX(-51%) scale(0.96);
    }

    .mode-detail .masthead {
      opacity: 0.34;
      transform: translateY(-8px);
    }

    .close-button {
      position: absolute;
      top: 18px;
      right: 18px;
      display: grid;
      width: 38px;
      height: 38px;
      padding: 0;
      border-radius: 50%;
      place-items: center;
    }

    .eyebrow {
      margin: 0 46px 18px 0;
      color: var(--ink);
    }

    .detail-title {
      max-width: 90%;
      margin: 0;
      font-size: clamp(2.4rem, 5vw, 5.2rem);
      font-weight: 500;
      letter-spacing: -0.05em;
      line-height: 0.92;
    }

    .detail-deck {
      margin: 22px 0 0;
      font-size: clamp(1rem, 1.35vw, 1.22rem);
      line-height: 1.55;
    }

    .detail-deck::first-letter {
      float: left;
      margin: 5px 7px 0 0;
      color: var(--accent);
      font-size: 3.25em;
      line-height: 0.72;
    }

    .meta-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px 24px;
      margin: 30px 0 0;
      padding: 22px 0 0;
      border-top: 1px solid var(--rule);
    }

    .meta-list div {
      min-width: 0;
    }

    .meta-list dt {
      margin: 0 0 6px;
      color: var(--ink-soft);
    }

    .meta-list dd {
      margin: 0;
      font-size: 0.86rem;
      line-height: 1.45;
    }

    .detail-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 28px;
      padding-top: 18px;
      border-top: 1px solid var(--rule);
    }

    .detail-controls .microcopy {
      text-align: left;
    }

    .reset-button {
      flex: 0 0 auto;
      min-height: 36px;
      padding: 0 14px;
    }

    .folio {
      position: absolute;
      right: 40px;
      bottom: 31px;
      z-index: 6;
      color: rgba(43, 35, 28, 0.55);
      writing-mode: vertical-rl;
      transition: opacity 300ms ease;
      pointer-events: none;
    }

    .mode-detail .folio {
      opacity: 0;
    }

    .static-fallback {
      position: absolute;
      inset: 0;
      z-index: 14;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 28px;
      padding: 48px;
      overflow: auto;
      background:
        radial-gradient(circle at 50% 0%, rgba(255, 251, 238, 0.75), transparent 38%),
        var(--paper);
    }

    .webgl-ready .static-fallback {
      display: none;
    }

    .fallback__header {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 28px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--rule);
    }

    .fallback__header h2 {
      max-width: 760px;
      margin: 6px 0 0;
      font-size: clamp(2.5rem, 7vw, 6.2rem);
      font-weight: 400;
      letter-spacing: -0.07em;
      line-height: 0.86;
    }

    .fallback__status {
      max-width: 360px;
      margin: 0;
      color: var(--ink-soft);
      line-height: 1.5;
      text-align: right;
    }

    .fallback__grid {
      display: grid;
      grid-template-columns: repeat(10, minmax(140px, 1fr));
      align-items: end;
      gap: 12px;
      min-width: 1500px;
      padding: 28px 0;
    }

    .fallback-book {
      position: relative;
      display: grid;
      align-content: end;
      min-height: var(--book-height, 360px);
      padding: 18px;
      overflow: hidden;
      border: 1px solid rgba(247, 235, 205, 0.38);
      background: var(--book-color);
      color: #f2e5c8;
      text-decoration: none;
      box-shadow: 0 18px 34px rgba(49, 31, 18, 0.13);
    }

    .fallback-book::before {
      position: absolute;
      inset: 10px;
      border: 1px solid color-mix(in srgb, var(--book-foil), transparent 35%);
      content: "";
    }

    .fallback-book::after {
      position: absolute;
      top: 12%;
      left: 50%;
      width: 44%;
      aspect-ratio: 1;
      border: 1px solid var(--book-foil);
      border-radius: 50%;
      content: "";
      opacity: 0.75;
      transform: translateX(-50%);
    }

    .fallback-book span,
    .fallback-book strong {
      position: relative;
      z-index: 1;
    }

    .fallback-book span {
      font-family: var(--mono);
      font-size: 0.58rem;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    .fallback-book strong {
      margin-top: 8px;
      font-size: clamp(1.25rem, 2vw, 2rem);
      font-weight: 400;
      letter-spacing: -0.035em;
      line-height: 0.95;
    }

    .fallback__footer {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      padding-top: 16px;
      border-top: 1px solid var(--rule);
      color: var(--ink-soft);
      font-size: 0.78rem;
      line-height: 1.5;
    }

    .loading {
      position: absolute;
      inset: 0;
      z-index: 20;
      display: grid;
      background: var(--paper);
      place-items: center;
    }

    .loading__inner {
      display: grid;
      justify-items: center;
      gap: 16px;
    }

    .loading__mark {
      position: relative;
      width: 46px;
      height: 58px;
      border: 1px solid var(--ink);
      border-radius: 2px 5px 5px 2px;
      animation: bind 1.6s var(--ease-out) infinite alternate;
    }

    .loading__mark::before {
      position: absolute;
      top: -1px;
      bottom: -1px;
      left: 7px;
      width: 1px;
      background: var(--ink);
      content: "";
      opacity: 0.45;
    }

    .loading p {
      margin: 0;
      font-family: var(--mono);
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    @keyframes bind {
      from {
        transform: rotateY(-8deg) translateY(2px);
      }
      to {
        transform: rotateY(14deg) translateY(-2px);
      }
    }

    @media (max-width: 900px) {
      .masthead {
        top: 34px;
        right: 32px;
        left: 32px;
      }

      .issue {
        max-width: 170px;
      }

      .browse-ui {
        right: 32px;
        bottom: 30px;
        left: 32px;
        grid-template-columns: 1fr auto;
      }

      .selection {
        grid-column: 1 / -1;
      }

      .browse-actions {
        justify-content: flex-start;
      }

      .index-nav {
        align-self: center;
      }

      .microcopy {
        display: none;
      }

      .detail-panel {
        top: auto;
        right: 24px;
        bottom: 24px;
        left: 24px;
        width: auto;
        max-height: 42vh;
        padding: 24px;
      }

      .detail-title {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
      }

      .detail-deck {
        margin-top: 14px;
        font-size: 0.98rem;
      }

      .meta-list {
        margin-top: 20px;
      }

      .fallback__grid {
        grid-template-columns: repeat(7, minmax(132px, 1fr));
      }
    }

    @media (max-width: 620px) {
      .frame {
        inset: 10px;
      }

      .masthead {
        top: 24px;
        right: 22px;
        left: 22px;
      }

      .identity {
        grid-template-columns: 1fr;
        gap: 2px;
      }

      .issue {
        font-size: 0.56rem;
      }

      .hero-word {
        top: 17%;
        font-size: 35vw;
      }

      .browse-ui {
        right: 22px;
        bottom: 20px;
        left: 22px;
        gap: 14px;
      }

      .selection {
        grid-template-columns: auto 1fr;
        gap: 10px;
      }

      .selection__title {
        font-size: 1.7rem;
      }

      .selection__note {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.78rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .text-button {
        padding: 0 14px;
      }

      .markers {
        gap: 2px;
      }

      .marker {
        width: 20px;
      }

      .detail-panel {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-height: 44vh;
      }

      .meta-list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
      }

      .folio {
        display: none;
      }

      .static-fallback {
        padding: 28px 22px;
      }

      .fallback__header {
        display: grid;
      }

      .fallback__status {
        text-align: left;
      }
    }

    @media (pointer: coarse) {
      .pointer-label {
        display: none;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* Minimal presentation: the books carry the visual identity. */
    .experience {
      background: var(--paper);
    }

    .frame,
    .masthead,
    .hero-word,
    .pointer-label,
    .folio {
      display: none !important;
    }

    #scene {
      cursor: default;
    }

    #scene.has-book-hover {
      cursor: pointer;
    }

    .mode-detail #scene {
      cursor: grab;
    }

    .mode-detail #scene.has-page-hover {
      cursor: grab;
    }

    .mode-detail #scene.has-closed-book-hover {
      cursor: pointer;
    }

    .mode-detail #scene.is-page-dragging,
    .mode-detail #scene:active {
      cursor: grabbing;
    }

    .browse-ui {
      right: auto;
      bottom: 22px;
      left: 50%;
      width: min(760px, calc(100vw - 40px));
      grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
      align-items: center;
      gap: 16px;
      transform: translateX(-50%);
      color: var(--ink);
      transition: color 520ms var(--ease-out), opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
    }

    .selection {
      display: flex;
      align-items: baseline;
      gap: 10px;
    }

    .selection__title {
      font-size: 1rem;
      font-weight: 500;
      letter-spacing: -0.025em;
      line-height: 1;
    }

    .selection__note,
    .microcopy {
      display: none;
    }

    .counter {
      padding: 0;
      font-size: 0.58rem;
    }

    .browse-actions {
      gap: 2px;
    }

    .round-button,
    .text-button,
    .close-button {
      border: 0;
      background: transparent;
      backdrop-filter: none;
      transition: color 420ms var(--ease-out), border-color 420ms var(--ease-out);
    }

    .round-button {
      width: 38px;
      height: 38px;
    }

    .text-button {
      min-height: 38px;
      padding: 0 13px;
      border-bottom: 1px solid rgba(38, 35, 30, 0.42);
      border-radius: 0;
    }

    .round-button:hover,
    .text-button:hover,
    .close-button:hover {
      border-color: var(--ink);
      background: transparent;
      transform: none;
    }

    .index-nav {
      gap: 0;
    }

    .marker {
      width: 20px;
      height: 28px;
    }

    .marker[aria-current="true"]::before {
      width: 14px;
    }

    .detail-panel {
      top: 50%;
      right: clamp(34px, 5vw, 72px);
      bottom: auto;
      left: auto;
      width: min(32vw, 390px);
      max-height: 76vh;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      transform: translateY(calc(-50% + 18px));
      backdrop-filter: none;
      color: var(--ink);
      transition:
        color 520ms var(--ease-out),
        opacity 620ms var(--ease-out),
        transform 620ms var(--ease-out);
    }

    .detail-panel::before {
      display: none;
    }

    .mode-detail .detail-panel {
      transform: translateY(-50%);
    }

    .mode-detail .browse-ui {
      transform: translate(-50%, 22px);
    }

    .close-button {
      top: -10px;
      right: -10px;
    }

    .eyebrow {
      margin-bottom: 12px;
      color: var(--ink-soft);
      transition: color 520ms var(--ease-out);
    }

    .detail-title {
      font-size: clamp(2.8rem, 5vw, 4.5rem);
    }

    .detail-deck {
      margin-top: 18px;
      font-size: clamp(0.98rem, 1.2vw, 1.1rem);
      line-height: 1.5;
      color: var(--ink);
      transition: color 520ms var(--ease-out);
    }

    .meta-list,
    .meta-list dt,
    .meta-list dd {
      transition: color 520ms var(--ease-out), border-color 520ms var(--ease-out);
    }

    .detail-deck::first-letter {
      float: none;
      margin: 0;
      color: inherit;
      font-size: inherit;
      line-height: inherit;
    }

    .meta-list {
      gap: 14px 22px;
      margin-top: 22px;
      padding-top: 18px;
    }

    .detail-controls {
      margin-top: 18px;
      padding-top: 0;
      border: 0;
    }

    .reset-button {
      margin-left: auto;
    }

    @media (max-width: 820px) {
      .browse-ui {
        bottom: 16px;
        width: calc(100vw - 28px);
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
      }

      .selection {
        grid-column: 1 / -1;
        justify-content: center;
      }

      .browse-actions {
        justify-content: flex-start;
      }

      .detail-panel {
        top: auto;
        right: 24px;
        bottom: 24px;
        left: 24px;
        width: auto;
        max-height: 42vh;
        transform: translateY(18px);
      }

      .mode-detail .detail-panel {
        transform: translateY(0);
      }

      .detail-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
      }

      .detail-deck {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .meta-list {
        display: none;
      }
    }

    /* V2 — an original editorial system built around the books, not a framed interface. */
    body {
      font-family: var(--mono);
    }

    .experience::after {
      position: absolute;
      inset: 0;
      z-index: 4;
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 22%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 22%);
      content: "";
      opacity: 0.52;
      pointer-events: none;
      transition: opacity 600ms var(--ease-out);
    }

    .editorial-header {
      position: absolute;
      top: 30px;
      right: 34px;
      left: 34px;
      z-index: 8;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
      color: var(--ink);
      pointer-events: none;
      transition:
        color 520ms var(--ease-out),
        opacity 520ms var(--ease-out),
        transform 680ms var(--ease-out);
    }

    .editorial-identity,
    .editorial-index {
      display: grid;
      gap: 3px;
    }

    .editorial-index {
      justify-items: end;
      text-align: right;
    }

    .editorial-identity strong {
      font-family: var(--serif);
      font-size: clamp(1.2rem, 1.8vw, 1.7rem);
      font-weight: 400;
      letter-spacing: -0.03em;
      line-height: 1;
    }

    .editorial-identity span,
    .editorial-index span {
      color: var(--ink-soft);
      font-size: 0.58rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      line-height: 1.5;
      text-transform: uppercase;
      transition: color 520ms var(--ease-out);
    }

    .browse-ui {
      right: 34px;
      bottom: 26px;
      left: 34px;
      width: auto;
      grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
      gap: 26px;
      transform: none;
    }

    .selection {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      align-items: start;
      gap: 13px;
    }

    .counter {
      padding-top: 7px;
      color: var(--ink-soft);
      font-variant-numeric: tabular-nums;
      transition: color 520ms var(--ease-out);
    }

    .selection__title,
    .detail-title,
    .fallback__header h2,
    .fallback-book strong {
      font-family: var(--serif);
    }

    .selection__title {
      font-size: clamp(1.85rem, 3vw, 3.25rem);
      font-weight: 400;
      letter-spacing: -0.055em;
      line-height: 1.12;
      padding-block: 0.1em;
      margin-block: -0.1em;
    }

    .selection__note {
      display: block;
      max-width: 420px;
      margin-top: 10px;
      color: var(--ink-soft);
      font-size: 0.75rem;
      letter-spacing: 0.01em;
      line-height: 1.45;
      transition: color 520ms var(--ease-out);
    }

    .browse-actions {
      align-self: end;
      padding-bottom: 4px;
      gap: 4px;
    }

    .round-button,
    .text-button,
    .close-button {
      color: var(--ink);
    }

    .round-button {
      width: 44px;
      height: 44px;
    }

    .text-button {
      min-height: 44px;
      padding: 0 18px;
      border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent);
      border-radius: 999px;
    }

    .text-button:hover {
      color: var(--paper);
      border-color: var(--ink);
      background: var(--ink);
    }

    .index-nav {
      align-self: end;
      gap: 10px;
      padding-bottom: 7px;
    }

    .markers {
      gap: 5px;
    }

    .marker {
      width: 28px;
      height: 32px;
    }

    .marker::before {
      width: 17px;
      height: 1px;
      border-radius: 0;
      background: color-mix(in srgb, var(--ink) 35%, transparent);
    }

    .marker[aria-current="true"]::before {
      width: 27px;
      height: 2px;
      border-radius: 0;
      background: var(--ink);
    }

    .microcopy {
      display: block;
      font-size: 0.53rem;
      letter-spacing: 0.14em;
      transition: color 520ms var(--ease-out);
    }

    .detail-panel {
      top: 50%;
      right: clamp(34px, 5vw, 78px);
      width: min(34vw, 460px);
      max-height: 74vh;
      color: var(--ink);
    }

    .mode-detail .browse-ui {
      transform: translateY(26px);
    }

    .mode-detail .editorial-header {
      opacity: 0.58;
      transform: translateY(-6px);
    }

    .detail-title {
      max-width: calc(100% - 28px);
      font-size: clamp(3.5rem, 6.3vw, 6.7rem);
      font-weight: 400;
      letter-spacing: -0.065em;
      line-height: 0.82;
    }

    .detail-title.is-long {
      font-size: clamp(2.35rem, 4.25vw, 4.45rem);
      line-height: 0.94;
    }

    .detail-deck {
      max-width: 38em;
      margin-top: 24px;
      font-family: var(--serif);
      font-size: clamp(1.05rem, 1.35vw, 1.3rem);
      line-height: 1.5;
    }

    .meta-list {
      margin-top: 28px;
      border-top-color: color-mix(in srgb, var(--ink) 26%, transparent);
    }

    .meta-list dd {
      font-size: 0.75rem;
      line-height: 1.45;
    }

    .detail-controls {
      align-items: end;
      margin-top: 24px;
    }

    .reset-button {
      min-height: 32px;
      padding: 0;
      border: 0;
      border-bottom: 1px solid color-mix(in srgb, var(--ink) 52%, transparent);
      border-radius: 0;
    }

    .detail-buttons {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 18px;
      margin-left: auto;
    }

    .detail-buttons .reset-button {
      margin-left: 0;
    }

    .essay-open {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-top: 26px;
      padding-top: 20px;
      border-top: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
    }

    .essay-open__copy {
      display: grid;
      gap: 5px;
      margin: 0;
      color: var(--ink-soft);
      font-size: 0.68rem;
      line-height: 1.45;
    }

    .essay-open__copy strong {
      color: var(--ink);
      font-family: var(--serif);
      font-size: 1rem;
      font-weight: 400;
    }

    .essay-open__link {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding-top: 0;
      padding-bottom: 0;
      line-height: 1;
      text-decoration: none;
    }

    .page-navigation,
    .detail-controls {
      display: none;
    }

    .page-navigation {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr) 40px;
      align-items: center;
      gap: 12px;
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
    }

    .page-button {
      display: grid;
      width: 40px;
      height: 40px;
      padding: 0;
      border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent);
      border-radius: 50%;
      color: var(--ink);
      background: transparent;
      place-items: center;
      transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        opacity 180ms ease,
        transform 180ms ease;
    }

    .page-button svg {
      width: 15px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.35;
    }

    .page-button:not(:disabled):hover {
      color: var(--paper);
      background: var(--ink);
      transform: translateY(-1px);
    }

    .page-button:disabled {
      opacity: 0.28;
      cursor: default;
    }

    .page-button:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    .page-status {
      display: grid;
      min-width: 0;
      gap: 3px;
      text-align: center;
    }

    .page-status strong {
      overflow: hidden;
      font-family: var(--serif);
      font-size: 0.92rem;
      font-weight: 400;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .page-status span {
      color: var(--ink-soft);
      font-size: 0.53rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .close-button {
      top: 7px;
      right: 7px;
      width: 42px;
      height: 42px;
      border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
    }

    .close-button:focus-visible {
      outline-offset: 3px;
    }

    .close-button:hover {
      color: var(--paper);
      background: var(--ink);
    }

    .static-fallback,
    .loading {
      background: var(--paper);
      color: var(--ink);
    }

    @media (max-width: 880px) {
      .editorial-header {
        top: 22px;
        right: 22px;
        left: 22px;
      }

      .browse-ui {
        right: 20px;
        bottom: 18px;
        left: 20px;
        width: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 16px;
      }

      .selection {
        grid-column: 1 / -1;
        justify-content: start;
      }

      .selection__title {
        font-size: clamp(1.8rem, 7.1vw, 2.65rem);
      }

      .selection__note {
        max-width: min(72vw, 430px);
      }

      .browse-actions {
        justify-content: flex-start;
      }

      .index-nav {
        align-self: center;
      }

      .detail-panel {
        top: auto;
        right: 22px;
        bottom: 22px;
        left: 22px;
        width: auto;
        max-height: 62vh;
      }

      .detail-title {
        font-size: clamp(3rem, 14vw, 5rem);
      }

      .detail-title.is-long {
        font-size: clamp(2.2rem, 8.8vw, 3.65rem);
      }

      .detail-deck {
        font-size: 1rem;
      }

      .essay-open {
        align-items: stretch;
      }
    }

    @media (max-width: 560px) {
      .editorial-index span:last-child,
      .selection__note,
      .microcopy {
        display: none;
      }

      .editorial-identity strong {
        font-size: 1.1rem;
      }

      .browse-ui {
        bottom: 14px;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
      }

      .selection {
        grid-column: 1;
        grid-template-columns: 34px 1fr;
      }

      .counter {
        padding-top: 4px;
      }

      .selection__title {
        font-size: 1.72rem;
      }

      .browse-actions {
        grid-column: 1;
        justify-content: center;
        width: 100%;
        padding-bottom: 0;
      }

      .browse-actions .round-button {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
      }

      .browse-actions .text-button {
        flex: 0 1 168px;
        min-width: 132px;
        min-height: 44px;
        white-space: nowrap;
      }

      .index-nav {
        grid-column: 1;
        justify-items: center;
        width: 100%;
        padding-bottom: 0;
      }

      .markers {
        justify-content: center;
        width: 100%;
        gap: 0;
      }

      .marker {
        width: 28px;
        height: 32px;
      }

      .marker::before {
        width: 12px;
      }

      .marker[aria-current="true"]::before {
        width: 24px;
      }

      .detail-panel {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-height: 68vh;
        padding: 24px 20px 20px;
      }

      .detail-title {
        font-size: clamp(2.35rem, 12vw, 3.7rem);
        line-height: 0.9;
      }

      .meta-list {
        gap: 14px 18px;
        margin-top: 20px;
        padding-top: 16px;
      }

      .essay-open {
        display: grid;
        margin-top: 18px;
        padding-top: 16px;
      }

      .essay-open__link {
        justify-content: center;
        width: 100%;
      }
    }

    /* Active shelf correction: one reading rhythm, one optical gutter, no nested scroll. */
    .detail-panel {
      max-height: calc(100vh - 92px);
      overflow: clip;
      scrollbar-width: none;
    }

    .detail-panel::-webkit-scrollbar {
      display: none;
    }

    .detail-panel > :not(.close-button) {
      width: 100%;
      box-sizing: border-box;
    }

    .detail-title {
      width: calc(100% - 64px);
      max-width: calc(100% - 64px);
      font-size: clamp(2.85rem, 5vw, 5.25rem);
      line-height: 1.12;
      letter-spacing: -0.035em;
      word-break: keep-all;
      overflow-wrap: normal;
      text-wrap: balance;
    }

    .detail-title.is-long {
      width: calc(100% - 64px);
      max-width: calc(100% - 64px);
      font-size: clamp(2.25rem, min(3.5vw, 6.3vh), 3.75rem);
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .detail-deck {
      max-width: 34rem;
      line-height: 1.72;
      word-break: keep-all;
      text-wrap: pretty;
    }

    .meta-list,
    .essay-open {
      max-width: none;
    }

    @media (max-width: 880px) {
      .detail-panel {
        top: 52px;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: none;
        min-height: 0;
        padding: 20px clamp(22px, 4.5vw, 40px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: var(--paper);
        transform: translateY(14px);
        overflow: clip;
      }

      .mode-detail .detail-panel {
        transform: translateY(0);
      }

      .detail-panel .eyebrow {
        padding-right: 68px;
      }

      .detail-title,
      .detail-title.is-long {
        margin-top: 14px;
        width: calc(100% - 84px);
        max-width: calc(100% - 84px);
        align-self: flex-start;
        line-height: 1.2;
        letter-spacing: -0.025em;
      }

      .detail-title {
        font-size: clamp(2.4rem, 7.3vw, 3.2rem);
      }

      .detail-title.is-long {
        font-size: clamp(2.15rem, 6.1vw, 2.75rem);
      }

      .detail-deck {
        margin-top: 16px;
        max-width: 42rem;
        font-size: clamp(0.94rem, 2.35vw, 1.05rem);
        line-height: 1.68;
        -webkit-line-clamp: 3;
      }

      .meta-list {
        display: grid;
        gap: 10px 22px;
        margin-top: 16px;
        padding-top: 14px;
      }

      .meta-list dt {
        margin-bottom: 4px;
      }

      .meta-list dd {
        font-size: 0.74rem;
        line-height: 1.45;
      }

      .essay-open {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 20px;
        margin-top: 16px;
        padding-top: 14px;
      }
    }

    @media (max-width: 560px) {
      .detail-panel {
        top: 58px;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: none;
        padding: 18px 18px 16px;
      }

      .detail-title,
      .detail-title.is-long {
        font-size: clamp(2rem, 9.4vw, 2.7rem);
        line-height: 1.22;
        letter-spacing: -0.02em;
      }

      .detail-deck {
        margin-top: 14px;
        font-size: 0.92rem;
        line-height: 1.62;
      }

      .meta-list {
        display: none;
      }

      .essay-open {
        margin-top: 14px;
        padding-top: 12px;
      }
    }

    @media (max-height: 500px) and (min-width: 561px) and (orientation: landscape) {
      .detail-panel,
      .mode-detail .detail-panel {
        top: 12px;
        right: 12px;
        bottom: 12px;
        left: 50%;
        width: auto;
        max-height: none;
        padding: 14px 18px;
        justify-content: center;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
        border-radius: 8px;
      }

      .detail-panel .eyebrow {
        padding-right: 48px;
        font-size: 0.58rem;
      }

      .detail-title,
      .detail-title.is-long {
        width: calc(100% - 52px);
        max-width: calc(100% - 52px);
        margin-top: 8px;
        font-size: clamp(1.6rem, 3.8vw, 2rem);
        line-height: 1.18;
      }

      .detail-deck {
        display: -webkit-box;
        margin-top: 8px;
        overflow: hidden;
        font-size: 0.78rem;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .meta-list {
        display: none;
      }

      .essay-open {
        grid-template-columns: minmax(0, 1fr) auto;
        margin-top: 10px;
        padding-top: 10px;
      }

      .essay-open__copy {
        font-size: 0.6rem;
      }

      .essay-open__copy strong {
        font-size: 0.86rem;
      }

      .essay-open__copy span {
        display: none;
      }

      .essay-open__link {
        min-height: 44px;
      }

      .close-button {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
      }
    }

    .editorial-aside {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      pointer-events: none;
    }

    .site-info {
      position: relative;
      pointer-events: auto;
    }

    .site-info__button {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 0 11px;
      border: 1px solid var(--rule);
      border-radius: 999px;
      color: var(--ink-soft);
      font-family: var(--mono);
      font-size: 0.58rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
      list-style: none;
      transition:
        color 320ms var(--ease-out),
        border-color 320ms var(--ease-out);
    }

    .site-info__button::-webkit-details-marker {
      display: none;
    }

    .site-info__button:hover,
    .site-info__button:focus-visible,
    .site-info[open] .site-info__button {
      color: var(--ink);
      border-color: var(--ink);
    }

    .site-info__panel {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: min(360px, calc(100vw - 44px));
      max-height: min(60vh, 430px);
      overflow-y: auto;
      padding: 16px 16px 14px;
      border: 1px solid var(--rule);
      border-radius: 14px;
      background: rgba(16, 19, 27, 0.96);
      box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
      color: rgba(244, 238, 230, 0.76);
      font-family: var(--mono);
      font-size: 0.74rem;
      font-weight: 400;
      line-height: 1.62;
      letter-spacing: 0;
      text-align: left;
      text-transform: none;
    }

    .site-info__lead {
      margin: 0 0 12px;
    }

    .site-info__branch {
      margin: 0 0 10px;
    }

    .site-info__branch strong {
      display: block;
      color: rgba(244, 238, 230, 0.94);
      font-weight: 600;
    }

    .site-info__branch span {
      display: block;
      color: rgba(244, 238, 230, 0.66);
    }

    .site-info__links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      padding-top: 10px;
      border-top: 1px solid rgba(244, 238, 230, 0.1);
    }

    .site-info__links a {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      color: rgba(244, 238, 230, 0.92);
      text-decoration: none;
      border-bottom: 1px solid rgba(244, 238, 230, 0.34);
    }

    .site-info__links a:hover,
    .site-info__links a:focus-visible {
      color: #fff;
      border-bottom-color: rgba(255, 255, 255, 0.75);
    }

    .mode-detail .site-info__panel {
      display: none;
    }

    @media (max-width: 880px) {
      .editorial-aside {
        gap: 10px;
      }

      .site-info__panel {
        width: min(340px, calc(100vw - 28px));
        font-size: 0.72rem;
      }
    }

    @media (max-width: 560px) {
      .site-info__button {
        letter-spacing: 0.08em;
        padding: 0 9px;
      }

      .site-info__panel {
        position: fixed;
        top: 62px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: 62vh;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .site-info__button {
        transition: none;
      }
    }
