:root {
  color-scheme: light;
  --phi: 1.618;
  --space-1: 8px;
  --space-2: 13px;
  --space-3: 21px;
  --space-4: 34px;
  --space-5: 55px;
  --space-6: 89px;
  --ink: #17211c;
  --muted: #69716c;
  --paper: #f3f0e9;
  --card: #fffdf8;
  --line: #d9d5cc;
  --accent: #dba834;
  --accent-light: #f2d98b;
  --accent-dark: #84610c;
  --coral: #df6234;
  --green: #243b30;
  --wood-dark: #3b2417;
  --wood: #754725;
  --wood-light: #b87a42;
  --shelf-back: #17251e;
  --shadow: 0 21px 55px rgb(29 38 33 / 10%);
  font-family: Inter, "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 61.8%, rgb(219 168 52 / 5%) 61.8%),
    radial-gradient(circle at 90% 0%, rgb(219 168 52 / 13%), transparent 34rem),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  overflow: hidden;
  color: #fffdf8;
  background:
    linear-gradient(90deg, var(--ink) 61.8%, #20332a 61.8%);
}

.header-inner {
  position: relative;
  display: grid;
  min-height: 233px;
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-5);
}

.brand-block {
  position: relative;
  z-index: 1;
}

.eyebrow,
.source-label {
  margin: 0 0 var(--space-1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.21em;
}

h1 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: clamp(2.55rem, 11vw, 5.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: var(--accent-light);
  font-size: 0.618em;
  letter-spacing: -0.035em;
}

.intro {
  margin: var(--space-3) 0 0;
  color: #bac3bc;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.golden-figure {
  position: absolute;
  right: -55px;
  bottom: -34px;
  display: grid;
  width: 233px;
  aspect-ratio: 1.618;
  grid-template-columns: 61.8% 38.2%;
  border: 1px solid rgb(242 217 139 / 34%);
  color: rgb(242 217 139 / 60%);
  font-family: Georgia, serif;
}

.golden-figure::before,
.golden-large::before,
.golden-small::before {
  position: absolute;
  border: 1px solid rgb(242 217 139 / 38%);
  border-radius: 50%;
  content: "";
}

.golden-figure::before {
  inset: 0 38.2% 0 0;
}

.golden-large {
  position: relative;
  border-right: 1px solid rgb(242 217 139 / 34%);
}

.golden-large::before {
  right: -0.5px;
  bottom: 0;
  width: 61.8%;
  aspect-ratio: 1;
}

.golden-small {
  position: relative;
  align-self: end;
  height: 61.8%;
  border-top: 1px solid rgb(242 217 139 / 34%);
}

.golden-small::before {
  right: 0;
  top: 0;
  width: 61.8%;
  aspect-ratio: 1;
}

.golden-figure span {
  position: absolute;
  right: var(--space-2);
  top: var(--space-2);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

main {
  min-height: 60vh;
}

.search-section {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 0 var(--space-2);
}

.search-panel {
  max-width: 1050px;
  margin: calc(var(--space-4) * -1) auto 0;
  padding: var(--space-2);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--space-3);
  background: rgb(255 253 248 / 94%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-box {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  border: 2px solid transparent;
  border-radius: var(--space-2);
  background: #eeeae2;
  transition: border-color 160ms ease, background 160ms ease;
}

.search-box:focus-within {
  border-color: var(--accent-dark);
  background: #fff;
}

.search-box svg {
  width: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #7f857f;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.filter-check {
  display: grid;
  width: var(--space-3);
  height: var(--space-3);
  place-items: center;
  border: 1px solid #b8b4aa;
  border-radius: 50%;
  color: transparent;
  font-size: 0.72rem;
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: #fffdf8;
  background: var(--green);
}

.filter-chip[aria-pressed="true"] .filter-check {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
}

.sort-control {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--space-2);
  background: var(--card);
}

.sort-control span {
  display: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.sort-control select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
}

.file-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: var(--space-2);
  color: var(--ink);
  border: 1px solid var(--accent);
  background: var(--accent);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.file-button:active {
  transform: translateY(1px);
}

.file-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shelf-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
}

.shelf-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.shelf-heading-row h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.source-label {
  margin-bottom: 5px;
  font-size: 0.65rem;
}

.result-count {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.library-summary {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.book-list {
  display: block;
  padding: var(--space-2);
  border: 13px solid var(--wood-dark);
  border-radius: var(--space-3);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%), transparent 18% 82%, rgb(0 0 0 / 12%)),
    var(--shelf-back);
  box-shadow:
    inset 0 0 34px rgb(0 0 0 / 38%),
    0 21px 55px rgb(45 27 16 / 18%);
}

.shelf-row {
  position: relative;
  padding: var(--space-3) var(--space-2) 0;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 5%), transparent 61.8%),
    linear-gradient(90deg, rgb(0 0 0 / 9%), transparent 13% 87%, rgb(0 0 0 / 13%));
}

.shelf-books {
  display: grid;
  min-height: 258px;
  grid-template-columns: repeat(var(--shelf-columns), minmax(0, 1fr));
  align-items: end;
  gap: clamp(var(--space-1), 2vw, var(--space-3));
}

.shelf-board {
  position: relative;
  z-index: 2;
  height: var(--space-4);
  margin: 0 calc(var(--space-2) * -1);
  border-top: 3px solid #c98e55;
  border-bottom: 5px solid #321d12;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 10%), transparent 22% 72%, rgb(0 0 0 / 14%)),
    linear-gradient(#8d592f, var(--wood));
  box-shadow:
    0 8px 13px rgb(0 0 0 / 44%),
    inset 0 1px rgb(255 255 255 / 16%);
}

.shelf-board::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 8px;
  background: linear-gradient(#4a2a19, #2c190f);
  content: "";
}

.shelf-label {
  position: absolute;
  left: 50%;
  bottom: 5px;
  overflow: hidden;
  max-width: 61.8%;
  padding: 3px var(--space-2);
  border: 1px solid rgb(242 217 139 / 32%);
  border-radius: 3px;
  color: #f7e8bd;
  background: #3b2417;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

.book-card {
  --book-lean: 0deg;

  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  justify-content: end;
  transform: rotate(var(--book-lean));
  transform-origin: 50% 100%;
  transition: transform 180ms ease;
}

.cover-link {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 144px);
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.cover-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1.618;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 4px var(--space-1) var(--space-1) 4px;
  background: transparent;
  box-shadow:
    5px 7px 13px rgb(0 0 0 / 38%),
    -3px 0 0 rgb(255 255 255 / 7%);
}

.cover-wrap::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(90deg, rgb(0 0 0 / 24%), transparent);
  content: "";
}

.book-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, transparent 45%, rgb(255 255 255 / 20%) 46% 54%, transparent 55%),
    var(--green);
  color: var(--accent-light);
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: 2rem;
  font-weight: 700;
}

.cover-wrap.is-missing .cover-fallback {
  z-index: 2;
}

.book-info {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 89px;
  margin-top: var(--space-1);
  padding: var(--space-1);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: var(--space-1) var(--space-1) 3px 3px;
  background: rgb(255 253 248 / 94%);
  box-shadow: 0 5px 10px rgb(0 0 0 / 20%);
  transform: rotate(calc(var(--book-lean) * -1));
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}

.purchase-date {
  display: inline-block;
  overflow: hidden;
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--accent-dark);
  background: #f8edca;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-category {
  display: none;
  flex: 0 0 auto;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
}

.book-category.is-manga {
  border-color: rgb(223 98 52 / 35%);
  color: #a83e19;
  background: #fbe5dc;
}

.book-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: clamp(0.68rem, 2.3vw, 0.88rem);
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.series-progress {
  margin: 4px 0 0;
  color: #a83e19;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 900;
  line-height: 1.3;
  white-space: normal;
}

.book-author {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.comment-button {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-left: auto;
  place-items: center;
  padding: 5px;
  border: 1px solid #c8aa62;
  border-radius: 50%;
  color: #654a0b;
  background: #fbf5e6;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.comment-button svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.comment-button:hover,
.comment-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform: scale(1.08);
}

.comment-button.has-comment {
  color: #fffdf8;
  border-color: var(--green);
  background: var(--green);
}

.comment-status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  display: none;
  width: 8px;
  height: 8px;
  border: 2px solid #fffdf8;
  border-radius: 50%;
  background: var(--accent);
}

.comment-button.has-comment .comment-status-dot {
  display: block;
}

.book-asin {
  display: none;
  margin-top: 4px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 700;
  text-decoration: none;
}

.book-card:hover {
  transform: rotate(0) translateY(-5px);
}

.book-card:hover .cover-link,
.cover-link:focus-visible {
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-3px);
}

.book-asin:hover {
  text-decoration: underline;
}

.comment-dialog,
.comment-view-dialog {
  width: min(calc(100% - 26px), 610px);
  max-height: min(86vh, 720px);
  padding: 0;
  border: 0;
  border-radius: var(--space-3);
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 34px 89px rgb(0 0 0 / 35%);
}

.comment-dialog::backdrop,
.comment-view-dialog::backdrop {
  background: rgb(10 20 15 / 68%);
  backdrop-filter: blur(4px);
}

.comment-form,
.comment-view-content {
  padding: var(--space-3);
}

.comment-view-content {
  display: grid;
}

.comment-thread {
  display: grid;
  gap: var(--space-2);
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: var(--space-2);
  border-radius: var(--space-2);
  background:
    linear-gradient(rgb(240 236 225 / 88%), rgb(240 236 225 / 88%)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgb(101 74 11 / 5%) 24px);
  scrollbar-gutter: stable;
}

.comment-message {
  display: grid;
  justify-items: end;
}

.comment-bubble {
  position: relative;
  max-width: 88%;
  margin: 0 8px 0 0;
  padding: 10px 13px;
  border-radius: 15px 3px 15px 15px;
  color: #173126;
  background: #d8efc8;
  box-shadow: 0 2px 7px rgb(20 50 35 / 12%);
  font-size: 0.94rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-bubble::after {
  position: absolute;
  top: 0;
  right: -7px;
  width: 11px;
  height: 14px;
  background: #d8efc8;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: "";
}

.comment-message-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 8px 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.comment-message-action {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.comment-message-action:hover,
.comment-message-action:focus-visible {
  color: var(--green);
  background: #edf5e8;
  outline: 1px solid #a9c49d;
}

.comment-message-action.is-delete {
  color: #9b6f61;
}

.comment-message-action.is-delete:hover,
.comment-message-action.is-delete:focus-visible {
  color: #a83e19;
  background: #fff4ef;
  outline: 1px solid #e6b8a7;
}

.comment-message-action svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.comment-view-actions {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.comment-view-actions button {
  min-height: 48px;
  padding: 0 var(--space-2);
  border-radius: var(--space-1);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.comment-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.comment-dialog-header h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
}

.comment-eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.comment-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

.comment-label {
  display: grid;
  gap: var(--space-1);
  font-size: 0.82rem;
  font-weight: 900;
}

.comment-label textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: var(--space-2);
  border: 2px solid var(--line);
  border-radius: var(--space-2);
  outline: 0;
  color: var(--ink);
  background: #f7f3ea;
  font-size: 16px;
  line-height: 1.7;
}

.comment-label textarea:focus {
  border-color: var(--accent-dark);
  background: #fff;
}

.comment-dialog-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.comment-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.comment-dialog-actions button {
  min-height: 48px;
  padding: 0 var(--space-2);
  border-radius: var(--space-1);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.comment-cancel {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.comment-save {
  color: #fffdf8;
  border: 1px solid var(--green);
  background: var(--green);
}

.load-sentinel {
  min-height: 48px;
  margin: var(--space-3) 0 0;
  padding: var(--space-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.load-error {
  grid-column: 1 / -1;
  padding: var(--space-4);
  border: 1px solid #e6b8a7;
  border-radius: var(--space-2);
  color: #8a3214;
  background: #fbe5dc;
}

.empty-state {
  max-width: 460px;
  margin: var(--space-5) auto;
  padding: var(--space-4) var(--space-3);
  border: 1px dashed #c8c2b7;
  border-radius: var(--space-3);
  text-align: center;
}

.empty-state span {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #f8edca;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.05rem;
}

.empty-state p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.empty-state button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 800;
}

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

@media (min-width: 640px) {
  .header-inner {
    min-height: 288px;
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .golden-figure {
    right: var(--space-3);
    bottom: calc(var(--space-5) * -1);
    width: 377px;
  }

  .book-list {
    padding: var(--space-3);
    border-width: var(--space-3);
  }

  .shelf-row {
    padding-right: var(--space-3);
    padding-left: var(--space-3);
  }

  .shelf-books {
    min-height: 305px;
  }

  .shelf-board {
    margin-right: calc(var(--space-3) * -1);
    margin-left: calc(var(--space-3) * -1);
  }
}

@media (min-width: 480px) {
  .book-category {
    display: inline-block;
  }
}

@media (min-width: 780px) {
  .header-inner {
    grid-template-columns: 61.8% 38.2%;
  }

  .golden-figure {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: min(100%, 377px);
  }

  .search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.618fr) minmax(310px, 1fr);
    gap: var(--space-1) var(--space-2);
  }

  .search-box {
    grid-column: 1;
    grid-row: 1;
  }

  .filter-row {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .controls {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

@media (min-width: 980px) {
  .shelf-books {
    min-height: 330px;
  }

  .book-info {
    min-height: 100px;
    padding: var(--space-2);
  }

  .book-asin {
    display: inline-block;
  }
}

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