:root {
  --ink: #151412;
  --muted: #69645d;
  --paper: #f8f5ef;
  --paper-strong: #fffdfa;
  --line: rgba(30, 27, 24, 0.13);
  --blue: #9fb5bf;
  --blue-dark: #415963;
  --red: #b94a3f;
  --green: #727b58;
  --shadow: 0 20px 70px rgba(31, 28, 23, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 20, 18, 0.045) 1px, transparent 1px) 0 0 /
      88px 88px,
    linear-gradient(180deg, #f6f2ea 0%, #fbfaf7 48%, #eef3f4 100%);
  font-family:
    ui-serif, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia,
    serif;
  font-size: 16px;
  line-height: 1.7;
}

.archive-page {
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(185, 74, 63, 0.12),
      transparent 28%
    ),
    radial-gradient(circle at 10% 80%, rgba(65, 89, 99, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(21, 20, 18, 0.045) 1px, transparent 1px) 0 0 /
      88px 88px,
    linear-gradient(180deg, #f6f2ea 0%, #fbfaf7 48%, #eef3f4 100%);
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  color: #fffdfa;
  background: rgba(19, 18, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fffdfa;
  background: var(--red);
  border-radius: 50%;
  font:
    700 15px/1 ui-sans-serif,
    system-ui,
    sans-serif;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 253, 250, 0.65);
  font:
    500 11px/1.1 ui-sans-serif,
    system-ui,
    sans-serif;
}

.top-nav {
  display: flex;
  gap: 4px;
  font:
    600 13px/1 ui-sans-serif,
    system-ui,
    sans-serif;
}

.top-nav a {
  padding: 12px 13px;
  border-radius: 999px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: 150px clamp(22px, 6vw, 82px) 82px;
  overflow: hidden;
  color: #fffdfa;
  isolation: isolate;
}

.archive-hero {
  width: min(1180px, calc(100% - 44px));
  min-height: 86svh;
  margin: 0 auto;
  padding: 150px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.5fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
}

.archive-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.55;
}

.archive-copy h1 {
  color: var(--ink);
  font-size: clamp(90px, 17vw, 230px);
  line-height: 0.78;
}

.featured-collection {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-collection img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.featured-collection span,
.featured-collection small {
  color: var(--muted);
  font:
    800 12px/1.35 ui-sans-serif,
    system-ui,
    sans-serif;
}

.featured-collection strong {
  font-size: 24px;
  line-height: 1.2;
}

.collections {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.collection-card {
  display: grid;
  align-content: start;
  min-height: 360px;
  padding: 18px;
  background: rgba(255, 253, 250, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 6px;
}

.collection-card span {
  color: var(--red);
  font:
    800 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
}

.collection-card h3 {
  margin-top: 12px;
}

.collection-card p {
  margin: 0;
  color: var(--muted);
}

.collection-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 80px;
  color: var(--blue-dark);
}

.collection-card.is-ready:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 74, 63, 0.32);
  background: #fffdfa;
}

.archive-method {
  padding-top: 52px;
}

.archive-comments {
  padding-top: 48px;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(13, 13, 12, 0.84) 0%,
      rgba(13, 13, 12, 0.42) 58%,
      rgba(13, 13, 12, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(13, 13, 12, 0.26) 0%,
      rgba(13, 13, 12, 0.78) 100%
    );
}

.hero-content {
  align-self: end;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font:
    800 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c3bd;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 253, 250, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font:
    800 14px/1 ui-sans-serif,
    system-ui,
    sans-serif;
}

.primary-action {
  color: var(--ink);
  background: #fffdfa;
}

.secondary-action {
  color: #fffdfa;
  border: 1px solid rgba(255, 253, 250, 0.32);
}

.primary-action svg,
.secondary-action svg {
  width: 18px;
  height: 18px;
}

.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 58px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: min(340px, calc(100% - 44px));
  height: max-content;
  padding: 12px;
  background: rgba(255, 253, 250, 0.12);
  border: 1px solid rgba(255, 253, 250, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.hero-card img {
  width: 82px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.hero-card span,
.hero-card p {
  color: rgba(255, 253, 250, 0.68);
  font:
    600 12px/1.4 ui-sans-serif,
    system-ui,
    sans-serif;
}

.hero-card strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.2;
}

.hero-card p {
  margin: 0;
}

.section-grid,
.split-story,
.essay-section,
.characters,
.notebook,
.comments {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 6vw, 88px);
  padding: 96px 0 72px;
}

.section-kicker p:not(.eyebrow),
.comments-intro p,
.essay-heading p,
.story-copy p {
  color: var(--muted);
  font-size: 18px;
}

.facts-panel {
  padding: 28px;
  background: rgba(255, 253, 250, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.facts {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
}

.facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:first-child {
  padding-top: 0;
}

dt {
  color: var(--muted);
  font:
    800 13px/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
}

dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.meter {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font:
    800 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
}

.meter div {
  height: 8px;
  overflow: hidden;
  background: #e2dfd5;
  border-radius: 999px;
}

.meter b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dark), var(--red));
  border-radius: inherit;
}

.split-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding: 56px 0 106px;
}

.story-copy {
  padding: 28px 0;
}

.still-stack {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: 16px;
  align-items: end;
}

figure {
  margin: 0;
}

.still-stack figure {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(31, 28, 23, 0.13);
}

.still-stack figure:first-child {
  transform: translateY(30px);
}

.still-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

figcaption {
  padding: 15px 16px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.essay-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 84px clamp(0px, 3vw, 42px);
  background: #151412;
  border-radius: 8px;
  color: #fffdfa;
  box-shadow: var(--shadow);
}

.essay-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

.essay-heading p:not(.eyebrow) {
  color: rgba(255, 253, 250, 0.62);
}

.essay {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.9;
}

.essay p:first-child {
  margin-top: 0;
}

blockquote {
  margin: 44px 0;
  padding: 26px 30px;
  color: #fffdfa;
  background: rgba(255, 253, 250, 0.08);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}

.characters {
  padding: 104px 0 56px;
}

.compact {
  max-width: 720px;
  margin-bottom: 28px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.character-grid article {
  min-height: 268px;
  padding: 26px;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.character-grid svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.character-grid p {
  margin: 0;
  color: var(--muted);
}

.notebook {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: 72px 0 96px;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.note-item:hover,
.note-item.is-active {
  border-color: rgba(185, 74, 63, 0.36);
  background: #fffdfa;
}

.note-item svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.note-item span {
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
}

.comments {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 5vw, 70px);
  padding: 78px 0 108px;
}

.comments-shell {
  min-height: 260px;
  padding: 22px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.comments-placeholder {
  display: grid;
  place-items: center;
  min-height: 216px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(
    180deg,
    rgba(159, 181, 191, 0.18),
    rgba(185, 74, 63, 0.08)
  );
  border: 1px dashed rgba(65, 89, 99, 0.26);
  border-radius: 8px;
}

.comments-placeholder svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.comments-placeholder strong {
  color: var(--ink);
  font-size: 18px;
}

.comments-placeholder span {
  max-width: 410px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(22px, 6vw, 82px) 40px;
  color: var(--muted);
  font:
    700 13px/1.4 ui-sans-serif,
    system-ui,
    sans-serif;
}

.site-footer a {
  color: var(--red);
}

@media (max-width: 900px) {
  .site-header {
    inset: 10px 10px auto;
    border-radius: 24px;
  }

  .top-nav {
    gap: 0;
  }

  .top-nav a {
    padding: 11px 8px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding: 118px 18px 26px;
  }

  .archive-hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
    min-height: auto;
    padding: 118px 0 54px;
  }

  .featured-collection {
    max-width: 420px;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: start;
    justify-self: start;
    margin-top: 34px;
  }

  .section-grid,
  .split-story,
  .essay-section,
  .notebook,
  .comments,
  .collections {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
  }

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

  .collection-card {
    min-height: auto;
  }

  .section-grid {
    padding-top: 70px;
  }

  .facts-panel {
    padding: 20px;
  }

  .facts div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .still-stack {
    grid-template-columns: 1fr;
  }

  .still-stack figure:first-child {
    transform: none;
  }

  .essay-section {
    padding: 42px 20px;
  }

  .essay-heading {
    position: static;
  }

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

  .character-grid article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: stretch;
    padding: 8px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand strong {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .top-nav {
    flex: 1;
    justify-content: space-between;
  }

  .top-nav a {
    display: grid;
    min-width: 42px;
    place-items: center;
    padding-inline: 6px;
    font-size: 12px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-action,
  .secondary-action {
    padding-inline: 12px;
  }

  .hero-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .hero-card img {
    width: 70px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .essay {
    font-size: 18px;
  }

  blockquote {
    padding: 22px;
    font-size: 24px;
  }

  .site-footer {
    display: grid;
    padding-inline: 18px;
  }
}
