:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #111111;
  --paper: #f2f2ef;
  --white: #ffffff;
  --gray-1: #c7c7c2;
  --gray-2: #888884;
  --gray-3: #30302e;
  --line: #262624;
  --serif: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--black);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--white);
}

a:focus-visible,
button:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  padding: 8px 12px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-main,
.site-footer {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding-inline: 20px;
  padding-left: max(20px, calc(env(safe-area-inset-left) + 12px));
  padding-right: max(20px, calc(env(safe-area-inset-right) + 12px));
}

.site-header {
  padding-top: 24px;
  padding-top: max(24px, calc(env(safe-area-inset-top) + 12px));
  border-bottom: 1px solid var(--line);
}

.is-thing .site-header {
  padding-top: 14px;
  padding-top: max(14px, calc(env(safe-area-inset-top) + 8px));
}

.is-thing .site-header .profile {
  display: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
}

.handle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 4px;
  color: var(--gray-1);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.profile {
  margin: 20px 0 18px;
  color: var(--gray-1);
  font-family: var(--serif);
  font-size: 0.92rem;
}

.shelf-nav {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
  white-space: nowrap;
}

.shelf-nav::-webkit-scrollbar {
  display: none;
}

.shelf-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 2px;
  color: var(--gray-2);
  font-size: 0.78rem;
  text-decoration: none;
}

.shelf-nav a[aria-current="page"] {
  color: var(--white);
}

.site-main {
  min-height: 62vh;
  padding-block: 56px 96px;
}

.is-thing .site-main {
  padding-top: 24px;
}

.page-intro {
  margin-bottom: 64px;
}

.eyebrow,
.object-number,
.error-code {
  margin: 0 0 12px;
  color: var(--gray-2);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.page-intro h1,
.thing-title h1,
.facts h2,
.related h2,
.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page-intro h1 {
  font-size: clamp(1.8rem, 9vw, 2.8rem);
}

.page-intro > p:last-child {
  max-width: 30rem;
  margin: 22px 0 0;
  color: var(--gray-1);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.thing-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thing-index > li {
  border-top: 1px solid var(--line);
}

.thing-index > li:last-child {
  border-bottom: 1px solid var(--line);
}

.thing-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding-block: 28px;
}

.thing-row__media {
  align-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
}

.thing-row__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thing-row__body h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.thing-row__body h2 a {
  text-decoration: none;
}

.thing-row__excerpt {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--gray-1);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: pre-line;
}

.quiet-count {
  margin: 12px 0 0;
  color: var(--gray-2);
  font-size: 0.75rem;
}

.image-absence {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.empty-state {
  padding: 64px 0;
  border-block: 1px solid var(--line);
  color: var(--gray-1);
  font-family: var(--serif);
}

.empty-state p {
  margin: 0;
}

.thing-detail > .object-number {
  margin-bottom: 12px;
}

.thing-hero {
  display: grid;
  aspect-ratio: 1;
  margin: 0 calc(50% - 50vw) 36px;
  overflow: hidden;
  place-items: center;
  background: var(--paper);
}

.thing-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-absence--hero {
  font-size: 0.8rem;
}

.thing-title h1 {
  font-size: clamp(1.55rem, 7.5vw, 2.35rem);
  line-height: 1.5;
}

.literary-copy {
  margin: 42px 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.7vw, 1.35rem);
  line-height: 2.05;
  letter-spacing: 0.025em;
  white-space: pre-line;
}

.amazon-action {
  margin: 38px 0 44px;
}

.amazon-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.amazon-link:hover {
  background: var(--white);
  color: var(--ink);
}

.amazon-action p {
  margin: 10px 0 0;
  color: var(--gray-1);
  font-size: 0.78rem;
  line-height: 1.7;
}

.amazon-action--unavailable {
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.amazon-action--unavailable p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.8rem;
}

.facts {
  margin-top: 84px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.facts h2,
.related h2 {
  font-size: 1.2rem;
}

.facts dl {
  margin: 30px 0 0;
}

.facts dl > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.8fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts dl > div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--gray-2);
  font-size: 0.8rem;
}

.facts dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.fact-meta {
  display: block;
  margin-top: 5px;
  color: var(--gray-1);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.65;
}

.facts-note {
  margin: 28px 0 0;
  color: var(--gray-1);
  font-size: 0.8rem;
  line-height: 1.8;
}

.facts-note a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block: -10px;
  padding-inline: 2px;
}

.facts__empty {
  margin: 24px 0 0;
  color: var(--gray-2);
  font-family: var(--serif);
  font-size: 0.8rem;
}

.related {
  margin-top: 110px;
}

.related > h2 {
  margin-bottom: 32px;
}

.not-found {
  padding: 14vh 0 18vh;
}

.not-found h1 {
  margin-bottom: 44px;
  font-size: clamp(1.8rem, 9vw, 3rem);
  line-height: 1.75;
}

.not-found > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--gray-1);
  font-size: 0.85rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--gray-1);
  font-size: 0.82rem;
}

.pagination a,
.pagination button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  text-decoration: none;
}

.pagination [aria-disabled="true"] {
  color: var(--gray-2);
}

.pagination__status,
.pagination > span {
  color: var(--gray-2);
  text-align: center;
}

.site-footer {
  padding-top: 34px;
  padding-bottom: 52px;
  padding-bottom: max(52px, calc(env(safe-area-inset-bottom) + 28px));
  border-top: 1px solid var(--line);
  color: var(--gray-1);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0 0 9px;
}

.site-footer .fine-print {
  color: var(--gray-2);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.7;
}

@media (min-width: 480px) {
  .site-header,
  .site-main,
  .site-footer {
    padding-inline: 30px;
    padding-left: max(30px, calc(env(safe-area-inset-left) + 16px));
    padding-right: max(30px, calc(env(safe-area-inset-right) + 16px));
  }

  .thing-row {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 26px;
  }

  .thing-row__excerpt {
    font-size: 0.88rem;
  }

  .thing-hero {
    margin-inline: 0;
  }
}

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