/* ==============================
   公共样式 · 二级页面
   与主页 index.html 使用同一套设计 token
   ============================== */

:root {
  --serif: "Iowan Old Style", "Baskerville", Georgia, "Times New Roman", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --paper: #f3efe5;
  --paper-deep: #e8e0d0;
  --paper-light: #faf7ef;

  --ink: #171713;
  --ink-soft: rgba(23, 23, 19, 0.72);
  --muted: rgba(23, 23, 19, 0.54);

  --hairline: rgba(23, 23, 19, 0.13);
  --line: rgba(23, 23, 19, 0.18);
  --line-strong: rgba(23, 23, 19, 0.43);

  --accent: #b5482f;
  --accent-soft: rgba(181, 72, 47, 0.14);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --page-x: max(
    clamp(22px, 4.65vw, 76px),
    calc((100vw - 1680px) / 2)
  );

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--serif);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--paper-light);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

/* ==============================
   PAGE
   ============================== */

.page {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;

  padding:
    calc(25px + var(--safe-top))
    var(--page-x)
    calc(20px + var(--safe-bottom));

  overflow: clip;

  background:
    radial-gradient(
      780px circle at 78% 18%,
      rgba(255, 255, 255, 0.68),
      transparent 48%
    ),
    radial-gradient(
      520px circle at 10% 90%,
      rgba(181, 72, 47, 0.045),
      transparent 62%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22),
      transparent 46%
    ),
    var(--paper);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;

  pointer-events: none;

  opacity: 0.12;
  mix-blend-mode: multiply;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  box-shadow:
    inset 0 0 140px rgba(23, 23, 19, 0.035),
    inset 0 -60px 100px rgba(23, 23, 19, 0.018);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;
  opacity: 0.18;

  background-image:
    linear-gradient(
      to right,
      rgba(23, 23, 19, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(23, 23, 19, 0.028) 1px,
      transparent 1px
    );

  background-size: 64px 64px;

  -webkit-mask-image:
    radial-gradient(
      circle at 52% 41%,
      #000 0%,
      rgba(0, 0, 0, 0.36) 42%,
      transparent 76%
    );

  mask-image:
    radial-gradient(
      circle at 52% 41%,
      #000 0%,
      rgba(0, 0, 0, 0.36) 42%,
      transparent 76%
    );
}

/* ==============================
   TOPBAR
   ============================== */

.topbar {
  position: relative;
  z-index: 8;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-width: 0;

  font-family: var(--serif);

  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);

  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
  color: var(--ink);
  white-space: nowrap;

  text-decoration: none;
}

.brand-mark {
  position: relative;

  flex: 0 0 auto;
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.edition {
  color: var(--muted);
  white-space: nowrap;
}

/* ==============================
   RESOURCES MENU
   ============================== */

.res-menu {
  position: relative;

  flex: 0 0 auto;
}

.res-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 9px 16px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: transparent;
  color: var(--ink);

  font-family: var(--serif);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    border-color 0.32s var(--ease),
    background 0.32s var(--ease),
    color 0.32s var(--ease);
}

.res-trigger:hover,
.res-trigger[aria-expanded="true"] {
  border-color: rgba(181, 72, 47, 0.5);
  background: var(--accent-soft);
  color: var(--accent);
}

.res-trigger:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.res-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: var(--accent);
}

.res-caret {
  width: 0;
  height: 0;

  margin-top: 2px;

  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;

  transition: transform 0.32s var(--ease);
}

.res-menu.is-open .res-caret {
  transform: rotate(180deg);
}

.res-pop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;

  min-width: 236px;
  padding: 9px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--paper-light);
  box-shadow:
    0 22px 46px rgba(23, 23, 19, 0.12),
    0 4px 12px rgba(23, 23, 19, 0.05);

  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;

  transition:
    opacity 0.32s var(--ease-out),
    transform 0.32s var(--ease-out),
    visibility 0.32s;
}

.res-menu.is-open .res-pop {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.res-item {
  display: flex;
  align-items: baseline;
  gap: 11px;

  width: 100%;
  padding: 12px 14px;

  border: none;
  border-radius: 9px;

  background: transparent;
  color: var(--ink);

  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: left;

  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.res-item:hover,
.res-item:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);

  outline: none;
}

.res-item.is-current {
  color: var(--accent);
}

.res-item.is-current .res-count {
  color: var(--accent);
}

.res-idx {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.res-name {
  flex: 0 0 auto;
}

.res-count {
  margin-left: auto;

  font-size: 10px;
  color: var(--muted);
}

.res-more {
  margin-top: 5px;
  padding: 11px 14px 7px;

  border-top: 1px dashed var(--hairline);

  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

/* ==============================
   SUBPAGE
   ============================== */

.subpage {
  position: relative;
  z-index: 5;

  flex: 1 0 auto;

  width: 100%;
  max-width: 1080px;

  margin: 0 auto;

  padding:
    clamp(44px, 8vh, 88px)
    clamp(0px, 1.5vw, 20px)
    clamp(50px, 9vh, 96px);

  animation: viewIn 0.55s var(--ease-out) both;
}

.subpage:focus {
  outline: none;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: clamp(26px, 4vh, 42px);
  padding-bottom: 15px;

  border-bottom: 1px solid var(--hairline);
}

.view-bar-back,
.view-bar-home {
  padding: 8px 16px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: transparent;
  color: var(--ink);

  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;

  text-decoration: none;

  cursor: pointer;

  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.view-bar-back:hover,
.view-bar-home:hover {
  border-color: rgba(181, 72, 47, 0.55);
  color: var(--accent);
}

.view-bar-back:focus-visible,
.view-bar-home:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.view-bar-meta {
  color: var(--muted);

  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.view-note {
  margin: clamp(22px, 3.4vh, 34px) 0 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-align: center;
}

/* ==============================
   SKILL GRID
   ============================== */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.skill-card {
  position: relative;

  padding: 24px 24px 20px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: var(--paper-light);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;

  cursor: pointer;

  transition:
    transform 0.38s var(--ease-out),
    border-color 0.38s var(--ease),
    box-shadow 0.38s var(--ease);

  animation: cardIn 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.skill-card:hover {
  transform: translateY(-5px);

  border-color: rgba(181, 72, 47, 0.5);
  box-shadow:
    0 18px 38px rgba(23, 23, 19, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.skill-card:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skill-idx {
  color: var(--muted);

  font-size: 10px;
  letter-spacing: 0.16em;
}

.skill-name {
  margin: 12px 0 0;

  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.skill-desc {
  margin: 9px 0 0;

  color: var(--ink-soft);

  font-size: 13px;
  line-height: 1.65;
}

.skill-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 20px;
  padding-top: 15px;

  border-top: 1px solid var(--hairline);
}

.skill-tag {
  color: var(--accent);

  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;

  border: 1px solid rgba(181, 72, 47, 0.32);
  border-radius: 999px;

  padding: 5px 10px;

  white-space: nowrap;
}

.skill-dl {
  padding: 7px 16px;

  border: 1px solid var(--ink);
  border-radius: 999px;

  background: var(--ink);
  color: var(--paper-light);

  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;

  cursor: pointer;

  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.skill-dl:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.skill-dl:active {
  transform: scale(0.96);
}

.skill-dl:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ==============================
   SKILL DETAIL
   ============================== */

.detail {
  max-width: 720px;
}

.detail-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-name {
  margin: 0;

  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.detail-meta {
  color: var(--muted);

  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
}

.detail-tagline {
  margin: 16px 0 0;

  color: var(--ink-soft);

  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 22px;
  padding-bottom: clamp(26px, 4vh, 40px);

  border-bottom: 1px solid var(--hairline);
}

.detail-dl {
  padding: 11px 24px;

  border: 1px solid var(--accent);
  border-radius: 999px;

  background: var(--accent);
  color: var(--paper-light);

  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;

  cursor: pointer;

  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.detail-dl:hover {
  background: #993c1d;
  border-color: #993c1d;
}

.detail-dl:active {
  transform: scale(0.97);
}

.detail-dl:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.detail-sec {
  margin-top: clamp(24px, 3.6vh, 34px);
}

.detail-sec-title {
  margin: 0 0 12px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-sec-p {
  margin: 0;

  color: var(--ink-soft);

  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.detail-sec-list {
  display: grid;
  gap: 6px;
}

.detail-sec-li {
  position: relative;

  margin: 0;
  padding-left: 16px;

  color: var(--ink-soft);

  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.detail-sec-li::before {
  content: "";

  position: absolute;
  top: 0.85em;
  left: 0;

  width: 6px;
  height: 1px;

  background: var(--accent);
}

/* ==============================
   PROMPT LIST
   ============================== */

.prompt-list {
  max-width: 760px;
}

.prompt-row {
  border-bottom: 1px solid var(--hairline);
}

.prompt-head {
  display: flex;
  align-items: baseline;
  gap: 14px;

  padding: 17px 4px;

  cursor: pointer;

  transition: background 0.25s var(--ease);
}

.prompt-head:hover {
  background: rgba(181, 72, 47, 0.055);
}

.prompt-idx {
  color: var(--muted);

  font-size: 10px;
  letter-spacing: 0.14em;

  flex: 0 0 auto;
}

.prompt-name {
  flex: 0 0 auto;

  font-size: 14px;
  letter-spacing: 0.05em;
}

.prompt-desc {
  margin-left: auto;
  overflow: hidden;

  color: var(--muted);

  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;

  max-width: 46%;
}

.prompt-caret {
  width: 0;
  height: 0;

  margin-top: 4px;
  margin-left: 2px;

  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(23, 23, 19, 0.5);

  transition: transform 0.3s var(--ease);

  flex: 0 0 auto;
}

.prompt-row.is-open .prompt-caret {
  transform: rotate(180deg);
}

.prompt-body {
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.34s var(--ease-out);
}

.prompt-body-in {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 2px 4px 18px;
}

.prompt-text {
  flex: 1;
  min-width: 0;

  padding: 13px 16px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--paper-light);
  color: var(--ink-soft);

  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.02em;

  white-space: pre-wrap;
}

.prompt-copy {
  flex: 0 0 auto;

  padding: 9px 18px;

  border: 1px solid var(--ink);
  border-radius: 999px;

  background: var(--ink);
  color: var(--paper-light);

  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;

  cursor: pointer;

  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.prompt-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.prompt-copy:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ==============================
   BOOKS
   ============================== */

.books-head {
  max-width: 860px;
}

.books-title {
  margin: 0;

  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.books-sub {
  margin: 14px 0 0;

  color: var(--muted);

  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.books-count {
  max-width: 860px;

  margin: 26px 0 6px;
  padding-bottom: 14px;

  border-bottom: 1px solid var(--line);

  color: var(--muted);

  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-list {
  max-width: 860px;
}

.book-row {
  display: flex;
  align-items: baseline;
  gap: 18px;

  padding: 13px 6px;

  border-bottom: 1px solid var(--hairline);

  transition:
    background 0.25s var(--ease),
    padding-left 0.3s var(--ease);

  animation: cardIn 0.5s var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 24) * 0.03s);
}

.book-row:hover {
  background: rgba(181, 72, 47, 0.055);
  padding-left: 16px;
}

.book-no {
  flex: 0 0 auto;

  min-width: 38px;

  color: var(--muted);

  font-size: 11px;
  letter-spacing: 0.12em;
}

.book-name {
  flex: 1;
  min-width: 0;

  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.book-author {
  flex: 0 0 auto;

  max-width: 38%;
  overflow: hidden;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==============================
   TOAST
   ============================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 60;

  padding: 11px 22px;

  border-radius: 999px;

  background: var(--ink);
  color: var(--paper-light);

  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;

  opacity: 0;
  transform: translateX(-50%) translateY(10px);

  pointer-events: none;

  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==============================
   FOOTER
   ============================== */

.footer {
  position: relative;
  z-index: 8;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;

  min-width: 0;
  padding-top: 17px;

  border-top: 1px solid var(--hairline);
}

.footer-note {
  margin: 0;

  color: var(--muted);

  font-family: var(--serif);

  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icp {
  grid-column: 1 / -1;

  margin: 2px 0 0;

  color: rgba(23, 23, 19, 0.32);

  font-family: var(--serif);

  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.icp a {
  color: inherit;

  text-decoration: none;
}

.icp a:hover {
  color: var(--muted);
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 3.4vw, 50px);

  min-width: 0;

  font-family: var(--serif);

  font-size: clamp(12px, 1.02vw, 14px);
}

.links a {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 6px 0;

  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.links a::before {
  content: attr(data-index);

  color: var(--muted);

  font:
    8px/1 var(--serif);

  transform: translateY(-4px);
}

.links a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 0;
  left: 17px;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: right center;

  transition: transform 0.48s var(--ease-out);
}

.arrow {
  display: inline-block;

  font-size: 15px;
  line-height: 1;

  transition: transform 0.48s var(--ease-out);
}

.links a:hover::after,
.links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.links a:hover .arrow,
.links a:focus-visible .arrow {
  transform: translate(4px, -4px);
}

.links a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

/* ==============================
   REDUCED MOTION
   ============================== */

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

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 760px), (max-aspect-ratio: 4 / 5) {
  :root {
    --page-x: clamp(22px, 5.6vw, 48px);
  }

  .page {
    padding-top: calc(21px + var(--safe-top));
    padding-bottom: calc(17px + var(--safe-bottom));
  }

  .topbar {
    font-size: 9px;
  }

  .topbar-left {
    gap: 14px;
  }

  .res-trigger {
    padding: 8px 13px;
  }

  .subpage {
    padding-top: clamp(30px, 5svh, 46px);
    padding-bottom: clamp(32px, 6svh, 54px);
  }

  .view-bar {
    flex-wrap: wrap;
  }

  .view-bar-meta {
    font-size: 9px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .prompt-desc {
    display: none;
  }

  .prompt-body-in {
    flex-direction: column;
  }

  .prompt-copy {
    align-self: flex-end;
  }

  .book-author {
    max-width: 26%;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
  }

  .footer-note {
    display: none;
  }

  .links {
    justify-content: space-between;
    gap: 10px;

    width: 100%;
    font-size: 11px;
  }

  .links a {
    gap: 5px;
  }

  .links a::before {
    display: none;
  }

  .links a::after {
    left: 0;
  }
}

@media (max-width: 520px) {
  .edition {
    display: none;
  }

  .ambient-grid {
    background-size: 48px 48px;
    opacity: 0.13;
  }

  .book-author {
    display: none;
  }

  .book-no {
    min-width: 30px;
  }
}

@media (max-width: 390px) {
  :root {
    --page-x: 20px;
  }

  .links {
    font-size: 10.5px;
  }

  .arrow {
    font-size: 13px;
  }
}
