:root {
  --paper: #F1EFE7;
  --ink: #121212;
  --orange: #FF5A1F;
  --acid: #C8FF3D;
  --blue: #2F47FF;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "SimHei", sans-serif;
  --serif: Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + (var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--ink);
  color: var(--paper);
}

.masthead__rail {
  border-bottom: 1px solid rgba(241, 239, 231, 0.28);
}

.masthead__rail-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: rgba(241, 239, 231, 0.7);
}

.masthead__rail-inner p {
  margin: 0;
}

.masthead__rail-mid {
  text-align: center;
}

.masthead__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 22px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.brand__name {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.brand__sub {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(241, 239, 231, 0.7);
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  border-left: 1px solid rgba(241, 239, 231, 0.3);
}

.nav__list a {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav__list a:hover {
  background: var(--acid);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  padding: 8px 14px;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--acid);
  color: var(--ink);
}

.masthead :focus-visible {
  outline-color: var(--acid);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  background: var(--orange);
  border-bottom: 5px solid var(--ink);
}

.hero__lead {
  padding: clamp(38px, 5.5vw, 80px) clamp(24px, 4vw, 60px) clamp(42px, 5.5vw, 78px) max(var(--pad), calc((100vw - var(--wrap)) / 2));
}

.hero__lead-inner {
  max-width: 620px;
  margin-left: auto;
}

.hero__title {
  margin: 0;
  font-weight: 900;
}

.hero__label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 9px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: rotate(-1.2deg);
}

.hero__line {
  display: block;
  font-size: clamp(2.75rem, 6.4vw, 5.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero__intro {
  max-width: 33em;
  margin: 26px 0 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--acid);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--acid);
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 3px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  background: var(--acid);
}

.hero__meta {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.hero__meta span {
  margin-inline: 6px;
  opacity: 0.5;
}

.hero__collage-panel {
  display: flex;
  align-items: center;
  padding: clamp(32px, 4vw, 56px) max(var(--pad), calc((100vw - var(--wrap)) / 2)) clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
  border-left: 5px solid var(--ink);
  background: var(--paper);
}

.collage {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.collage__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 12px;
}

.collage__cover {
  position: absolute;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  object-fit: cover;
  animation: cover-drop 0.62s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.collage__cover--main {
  top: 10%;
  left: 2%;
  width: 60%;
  transform: rotate(-2.5deg);
  z-index: 2;
}

.collage__cover--top {
  top: 0;
  right: 0;
  width: 43%;
  transform: rotate(3.5deg);
  z-index: 3;
  animation-delay: 0.1s;
}

.collage__cover--low {
  right: 5%;
  bottom: 0;
  width: 37%;
  transform: rotate(-5deg);
  z-index: 4;
  animation-delay: 0.2s;
}

.collage__sticker {
  position: absolute;
  top: -8px;
  left: -6px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 3px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.collage__sticker b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.collage__tab {
  position: absolute;
  bottom: 4%;
  left: 0;
  z-index: 5;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.collage__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 3px solid var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.collage__caption span:first-child {
  font-weight: 800;
}

.collage__caption span:last-child {
  font-family: var(--serif);
  color: rgba(18, 18, 18, 0.7);
}

@keyframes cover-drop {
  from {
    opacity: 0;
    translate: 0 -18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
}

.ticker__inner {
  display: flex;
  overflow: hidden;
  padding-block: 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker__inner span {
  padding-inline: 18px;
  border-right: 1px solid rgba(241, 239, 231, 0.28);
}

.ticker__inner span:first-child {
  padding-left: 0;
}

.ticker__inner span:last-child {
  border-right: 0;
  color: var(--acid);
}

/* ---------- Section shell ---------- */

.section {
  padding-block: clamp(46px, 6.5vw, 88px);
  border-top: 4px solid var(--ink);
  scroll-margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(26px, 4vw, 44px);
  padding-bottom: 20px;
  border-bottom: 3px solid var(--ink);
}

.section-head__title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.folio {
  flex: none;
  margin-top: 8px;
  padding: 4px 6px;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 32ch;
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
  text-align: right;
  color: rgba(18, 18, 18, 0.72);
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 1fr;
}

.feature {
  min-width: 0;
  padding-right: clamp(20px, 2.6vw, 36px);
}

.feature + .feature {
  padding-left: clamp(20px, 2.6vw, 36px);
  border-left: 1px solid rgba(18, 18, 18, 0.55);
}

.feature__num {
  display: block;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.feature--lead .feature__num {
  color: var(--orange);
}

.feature--reader .feature__num {
  color: var(--blue);
}

.feature--shelf .feature__num {
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--acid);
}

.feature__tag {
  margin: 20px 0 0;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.feature h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature p:not(.feature__tag) {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(18, 18, 18, 0.78);
}

.feature__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature__genres li {
  padding: 3px 9px;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.feature__figure {
  margin: 18px 0 18px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
}

.feature__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.feature__figure figcaption {
  padding: 6px 8px;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 11.5px;
}

.shelf-list {
  margin: 22px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.shelf-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.35);
  font-size: 13px;
}

.shelf-list span {
  font-weight: 800;
}

/* ---------- Library ---------- */

.library {
  border-top: 3px solid var(--ink);
}

.library__head {
  display: grid;
  grid-template-columns: 56px 88px minmax(0, 1fr) 64px;
  gap: clamp(14px, 2vw, 28px);
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(18, 18, 18, 0.6);
}

.library__head span:last-child {
  text-align: right;
}

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

.library__item {
  display: grid;
  grid-template-columns: 56px 88px minmax(0, 1fr) 64px;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--ink);
}

.library__num {
  align-self: start;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.library__thumb {
  display: block;
  width: 88px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.16s ease;
}

.library__thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.library__item:hover .library__thumb {
  transform: translateY(-2px) rotate(-1deg);
}

.library__main {
  min-width: 0;
}

.library__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.library__title h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tag {
  padding: 1px 7px;
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.library__desc {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(18, 18, 18, 0.76);
}

.library__code {
  align-self: start;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 20px clamp(20px, 2.6vw, 34px) 0;
  border-top: 6px solid var(--ink);
  border-left: 1px solid rgba(18, 18, 18, 0.4);
}

.step:first-child {
  padding-left: 0;
  border-left: 0;
}

.step:nth-child(2) {
  margin-top: 32px;
  border-top-color: var(--blue);
}

.step:nth-child(3) {
  margin-top: 64px;
  border-top-color: var(--orange);
}

.step__num {
  display: block;
  font-size: clamp(3rem, 5.6vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--orange);
}

.step:nth-child(2) .step__num {
  color: var(--blue);
}

.step:nth-child(3) .step__num {
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--acid);
}

.step__tag {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(18, 18, 18, 0.6);
}

.step h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 900;
}

.step p:not(.step__tag) {
  max-width: 30ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(18, 18, 18, 0.78);
}

/* ---------- Editor's note ---------- */

.section--note {
  border-top: 6px solid var(--orange);
  background: var(--ink);
  color: var(--paper);
}

.section--note .section-head {
  border-bottom-color: rgba(241, 239, 231, 0.55);
}

.section--note .folio {
  border-color: var(--paper);
}

.section--note .section-note {
  color: rgba(241, 239, 231, 0.65);
}

.section--note :focus-visible {
  outline-color: var(--acid);
}

.note-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.note-side {
  padding-right: clamp(20px, 3vw, 36px);
  border-right: 1px solid rgba(241, 239, 231, 0.3);
}

.note-side__label {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.14em;
  color: rgba(241, 239, 231, 0.65);
}

.note-stamp {
  display: inline-block;
  margin: 0 0 24px;
  padding: 10px 14px;
  border: 2px solid var(--paper);
  background: var(--acid);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--orange);
}

.note-side__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(241, 239, 231, 0.7);
}

.note-quote {
  margin: 0;
}

.note-quote::before {
  content: "\201C";
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.55;
  color: var(--orange);
}

.note-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.9vw, 2.35rem);
  line-height: 1.62;
  letter-spacing: 0.01em;
}

.note-quote footer {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(241, 239, 231, 0.6);
}

/* ---------- Download tickets ---------- */

.tickets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.ticket {
  position: relative;
  flex: 1 1 260px;
  max-width: 520px;
  min-height: 290px;
  padding: 16px 20px 18px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 9px 9px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ticket:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket:hover {
  transform: translate(2px, 2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.ticket:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.ticket--netdisk {
  background: var(--blue);
  color: var(--paper);
}

.ticket--android {
  background: var(--orange);
  color: var(--ink);
}

.ticket--ios {
  background: var(--acid);
  color: var(--ink);
}

.ticket__stub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.ticket__perf {
  position: relative;
  display: block;
  margin: 14px -20px 16px;
  border-top: 2px dashed currentColor;
  opacity: 0.5;
}

.ticket__perf::before,
.ticket__perf::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.ticket__perf::before {
  left: -10px;
}

.ticket__perf::after {
  right: -10px;
}

.ticket__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket__kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.ticket__name {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ticket__desc {
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.7;
  opacity: 0.85;
}

.ticket__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.download__note {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
  color: rgba(18, 18, 18, 0.65);
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(36px, 5vw, 56px) 0 22px;
  border-top: 6px solid var(--acid);
  background: var(--ink);
  color: var(--paper);
}

.footer :focus-visible {
  outline-color: var(--acid);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(241, 239, 231, 0.3);
}

.footer__brand a {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer__tagline {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(241, 239, 231, 0.65);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.footer__nav a {
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.footer__nav a:hover {
  border-bottom-color: var(--acid);
  color: var(--acid);
}

.footer__meta {
  font-size: 12px;
  text-align: right;
  color: rgba(241, 239, 231, 0.65);
}

.footer__meta p {
  margin: 4px 0 0;
}

.footer__domain {
  display: inline-block;
  border-bottom: 2px solid var(--orange);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(241, 239, 231, 0.55);
}

.footer__bottom p {
  margin: 0;
}

/* ---------- 404 ---------- */

.masthead--slim .masthead__main {
  align-items: center;
  padding-block: 16px;
}

.masthead__error {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(241, 239, 231, 0.4);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.error-page {
  padding-block: clamp(48px, 8vw, 100px);
}

.error-page__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.error-page__folio {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  background: var(--orange);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.error-page h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.error-page__copy > p:not(.error-page__folio) {
  max-width: 30em;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(18, 18, 18, 0.78);
}

.error-page__art {
  position: relative;
  min-height: 360px;
  border: 4px solid var(--ink);
  background: var(--orange);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
}

.error-page__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  transform: translate(-50%, -50%) rotate(-6deg);
}

.error-page__paper {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  transform: rotate(3deg);
}

.error-page__tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 120px;
  height: 30px;
  border: 1px solid var(--ink);
  background: var(--acid);
  transform: translateX(-50%) rotate(-2deg);
}

.footer--slim {
  padding-block: 20px;
  border-top-width: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__lead {
    padding: 44px var(--pad) 40px;
  }

  .hero__lead-inner {
    max-width: none;
  }

  .hero__collage-panel {
    padding: 36px var(--pad) 40px;
    border-top: 5px solid var(--ink);
    border-left: 0;
  }

  .collage {
    max-width: 440px;
  }

  .collage__caption {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 880px) {
  .masthead__main {
    align-items: center;
  }

  .ticker__inner span:nth-child(n + 6) {
    display: none;
  }

  .ticker__inner span:nth-child(5) {
    border-right: 0;
    color: var(--acid);
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    border-top: 1px solid rgba(241, 239, 231, 0.3);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    display: block;
  }

  .nav__list li {
    border-top: 1px solid rgba(241, 239, 231, 0.22);
    border-left: 0;
  }

  .nav__list li:first-child {
    border-top: 0;
  }

  .nav__list a {
    padding: 14px 4px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    padding-right: 0;
  }

  .feature + .feature {
    margin-top: 30px;
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid rgba(18, 18, 18, 0.55);
    border-left: 0;
  }

  .feature__figure {
    max-width: 360px;
  }

  .note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-side {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(241, 239, 231, 0.3);
  }

  .note-side__text {
    max-width: 34em;
  }
}

@media (max-width: 780px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    margin-top: 0;
    padding: 20px 0 28px;
    border-top: 3px solid var(--ink);
    border-left: 0;
  }

  .step:first-child {
    padding-top: 4px;
    border-top: 0;
  }

  .step:nth-child(2),
  .step:nth-child(3) {
    margin-top: 0;
  }

  .step p:not(.step__tag) {
    max-width: 38em;
  }

  .ticket {
    flex-basis: 100%;
    max-width: none;
  }

  .footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer__meta {
    text-align: left;
  }

  .error-page__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-page__art {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .library__head,
  .library__item {
    grid-template-columns: 28px 60px minmax(0, 1fr);
    gap: 12px;
  }

  .library__head span:nth-child(4),
  .library__code {
    display: none;
  }

  .library__thumb {
    width: 60px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .library__title h3 {
    font-size: 1.2rem;
  }

  .library__desc {
    font-size: 12.5px;
  }

  .tag {
    font-size: 10px;
    padding-inline: 6px;
  }
}

@media (max-width: 560px) {
  .masthead__rail-inner {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .masthead__rail-mid {
    display: none;
  }

  .brand__sub {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero__label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero__actions {
    gap: 18px;
  }

  .btn {
    padding: 13px 22px;
  }

  .hero__meta {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  .hero__meta span {
    margin-inline: 3px;
  }

  .collage__cover {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .collage__sticker {
    width: 74px;
    height: 74px;
    font-size: 13px;
  }

  .ticker__inner span:nth-child(n + 4) {
    display: none;
  }

  .ticker__inner span:nth-child(3) {
    border-right: 0;
    color: var(--acid);
  }

  .note-stamp {
    font-size: 13px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .error-page__paper {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}