:root {
  --ink: #17151f;
  --muted: #64606d;
  --paper: #fffaf0;
  --paper-2: #fffef8;
  --line: rgba(23, 21, 31, 0.16);
  --coral: #ff5b45;
  --blue: #185cff;
  --lime: #b9ff43;
  --yellow: #ffd84d;
  --violet: #7657ff;
  --cyan: #64d7ff;
  --green: #3ecf8e;
  --shadow: 0 26px 70px rgba(23, 21, 31, 0.22);
  --radius: 8px;
  --reader-h: min(86dvh, 840px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #f9f4dc 0%, #dff4ec 48%, #dfe8ff 100%);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.desk-shell {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

.desk-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 91, 69, 0.22), transparent 24%),
    radial-gradient(circle at 83% 22%, rgba(24, 92, 255, 0.18), transparent 26%),
    linear-gradient(132deg, transparent 0 32%, rgba(23, 21, 31, 0.08) 32% 33%, transparent 33% 63%, rgba(255, 216, 77, 0.22) 63% 64%, transparent 64%);
  pointer-events: none;
}

.desk-tool,
.close-reader,
.page-controls button {
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--yellow);
}

.desk-tool {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.desk-tool svg,
.page-controls svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.desk-surface {
  position: relative;
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 40px);
}

.desk-intro {
  position: absolute;
  left: clamp(18px, 5vw, 70px);
  top: clamp(24px, 7vh, 72px);
  width: min(430px, 48vw);
  pointer-events: none;
}

.desk-intro p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.desk-intro h1 {
  margin: 0;
  font-size: clamp(2.9rem, 8vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.desk-intro span {
  display: block;
  max-width: 360px;
  margin-top: 14px;
  color: #383340;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 750;
  line-height: 1.6;
}

.desk-note {
  position: absolute;
  left: clamp(18px, 5vw, 70px);
  right: auto;
  bottom: clamp(18px, 5vh, 54px);
  width: min(330px, 31vw);
  padding: 18px;
  background: rgba(255, 250, 240, 0.9);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(24, 92, 255, 0.82);
  transform: rotate(2deg);
}

.desk-note strong,
.desk-note span {
  display: block;
}

.desk-note strong {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.desk-note span {
  color: #4e4854;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.binder-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.load-error {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.95);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--coral);
  transform: translate(-50%, -50%) rotate(-1deg);
}

.load-error strong {
  font-size: 1.1rem;
}

.load-error span {
  color: #4e4854;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.5;
}

.binder-card {
  --accent: var(--coral);
  --accent-2: var(--blue);
  position: absolute;
  width: clamp(220px, 20vw, 320px);
  aspect-ratio: 210 / 297;
  padding: 18px 15px 16px 24px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.96));
  border: 2px solid var(--ink);
  border-radius: 8px 8px 12px 12px;
  box-shadow: 10px 10px 0 var(--accent), var(--shadow);
  cursor: pointer;
  transform: rotate(var(--r));
  transition: transform 280ms ease, opacity 220ms ease, filter 220ms ease;
}

.binder-card:hover {
  transform: rotate(var(--r)) translateY(-10px) scale(1.03);
}

.binder-card[aria-disabled="true"] {
  cursor: default;
  filter: saturate(0.82);
}

.binder-card[aria-disabled="true"]:hover {
  transform: rotate(var(--r));
}

.binder-card.is-selected {
  opacity: 0;
  transform: translate(34vw, -12vh) rotate(0deg) scale(1.15);
  pointer-events: none;
}

.tone-flower {
  --accent: var(--coral);
  --accent-2: var(--blue);
}

.tone-rain {
  --accent: var(--blue);
  --accent-2: #2c5063;
}

.binder-a {
  --r: -7deg;
  left: min(46vw, 610px);
  top: clamp(112px, 17vh, 180px);
}

.binder-b {
  --r: 6deg;
  right: clamp(92px, 12vw, 190px);
  top: clamp(228px, 34vh, 330px);
}

.binder-ring {
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 6px;
  background: repeating-linear-gradient(180deg, transparent 0 28px, rgba(23, 21, 31, 0.86) 28px 38px, transparent 38px 64px);
}

.binder-status,
.binder-date,
.binder-title,
.binder-subtitle,
.binder-meta {
  position: relative;
  z-index: 2;
  display: block;
}

.binder-status {
  width: max-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 950;
}

.binder-date {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.cover-art {
  position: absolute;
  inset: 84px 15px 104px 28px;
  overflow: hidden;
  border: 1.5px solid rgba(23, 21, 31, 0.9);
  border-radius: 7px;
  background: #cceeff;
}

.cover-sky,
.cover-land,
.cover-route {
  position: absolute;
  inset: 0;
}

.cover-sky {
  background:
    linear-gradient(145deg, transparent 46%, #fff 47% 55%, transparent 56%),
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.78) 43% 48%, transparent 49%),
    linear-gradient(180deg, #bdeeff, #faffd7);
}

.cover-land {
  top: 50%;
  background:
    radial-gradient(ellipse at 25% 18%, var(--accent) 0 7px, transparent 8px),
    radial-gradient(ellipse at 66% 33%, var(--accent-2) 0 6px, transparent 7px),
    linear-gradient(170deg, var(--lime) 0 38%, #f4ff9a 39% 68%, var(--yellow) 69%);
}

.cover-route {
  top: 43%;
  left: 42%;
  width: 24%;
  background: #17151f;
  border-radius: 50% 50% 0 0;
  transform: perspective(90px) rotateX(14deg);
}

.cover-route::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 10px;
  width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, #fff 0 18px, transparent 18px 32px);
  border-radius: 3px;
}

.binder-title {
  margin-top: clamp(166px, 15vw, 214px);
  font-size: clamp(1.65rem, 2.7vw, 2.7rem);
  font-weight: 950;
  line-height: 0.95;
}

.binder-title b {
  display: block;
}

.binder-subtitle {
  margin-top: 10px;
  color: #403a47;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.binder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.binder-meta em {
  padding: 4px 6px;
  background: #fff;
  border: 1px solid rgba(23, 21, 31, 0.18);
  border-radius: 5px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.reader-stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.reader-stage.is-open {
  pointer-events: auto;
  opacity: 1;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 21, 31, 0.3);
  backdrop-filter: blur(6px);
}

.binder-reader {
  --accent: var(--coral);
  --accent-2: var(--blue);
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(calc(var(--reader-h) * 0.707), calc(100vw - 34px));
  height: var(--reader-h);
  max-height: calc(100dvh - 40px);
  padding: 16px 18px 16px 30px;
  background:
    linear-gradient(90deg, rgba(23, 21, 31, 0.08) 0 24px, transparent 24px),
    linear-gradient(180deg, #fffefa, #fff7e9);
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: 18px 18px 0 var(--accent), 0 30px 100px rgba(23, 21, 31, 0.38);
  transform: translateY(18px) scale(0.92);
  transition: transform 300ms ease;
}

.reader-stage.is-open .binder-reader {
  transform: translateY(0) scale(1);
}

.reader-spine {
  position: absolute;
  left: 9px;
  top: 28px;
  bottom: 28px;
  display: grid;
  align-content: space-around;
  width: 14px;
}

.reader-spine span {
  width: 10px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: #fff;
}

.reader-cover {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 21, 31, 0.14);
}

.reader-cover p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
}

.reader-cover h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vh, 2.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.close-reader {
  flex: 0 0 auto;
  padding: 7px 9px;
  font-size: 0.76rem;
  font-weight: 950;
}

.reader-tabs {
  display: flex;
  gap: 7px;
  margin: 12px -7px 10px 0;
  padding-right: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.reader-tabs button {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 8px 8px 9px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 7px 7px 0 0;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(23, 21, 31, 0.12);
}

.reader-tabs button.is-active {
  background: var(--accent);
  color: #fff;
}

.reader-tabs span,
.reader-tabs strong {
  display: block;
}

.reader-tabs span {
  font-size: 0.84rem;
  font-weight: 950;
}

.reader-tabs strong {
  max-width: 96px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.62rem;
  line-height: 1.2;
}

.paper-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 15px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 21, 31, 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}

.page-kicker {
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 950;
}

.paper-page h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3.1vh, 1.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-scroll {
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  padding-bottom: 34px;
  scroll-padding-bottom: 34px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.stat-strip span {
  min-height: 44px;
  padding: 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.mini-timeline,
.route-list,
.compare-list,
.info-cards {
  display: grid;
  gap: 8px;
}

.mini-timeline article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 21, 31, 0.1);
}

.mini-timeline article:last-child {
  border-bottom: 0;
}

.mini-timeline time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.25;
}

.timeline-body {
  min-width: 0;
}

.mini-timeline h4,
.info-cards h4 {
  margin: 0 0 3px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.mini-timeline p,
.info-cards p,
.page-note p {
  margin: 0;
  color: #4b4652;
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.48;
}

.timeline-details {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 14px;
  color: #514a59;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.42;
}

.timeline-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.47em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent-2);
}

.journey-meta {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.journey-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.journey-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 6px;
  min-height: 40px;
  padding: 6px 8px;
  color: var(--ink);
  text-align: left;
  background: #fffdf7;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 rgba(23, 21, 31, 0.13);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.journey-action:hover {
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 rgba(23, 21, 31, 0.16);
}

.journey-action span {
  display: grid;
  grid-row: span 2;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 950;
}

.journey-action b,
.journey-action em {
  min-width: 0;
}

.journey-action b {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-action em {
  color: #5a5260;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

.journey-action.action-poi {
  background: #fff3c2;
}

.journey-action.action-nav {
  background: #dff0ff;
}

.journey-action.action-nav span {
  background: var(--accent-2);
}

.journey-meta-row {
  display: grid;
  gap: 4px;
}

.journey-meta-label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--accent-2);
  font-size: 0.67rem;
  font-weight: 950;
}

.journey-meta-label span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 99px;
  font-size: 0.58rem;
  line-height: 1;
}

.journey-tags,
.route-points {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.journey-tag,
.route-point {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(23, 21, 31, 0.62);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
}

.journey-tag span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: rgba(23, 21, 31, 0.9);
  font-size: 0.58rem;
}

.tag-food {
  background: #ffe4a3;
}

.tag-fuel {
  background: #dff4ff;
}

.tag-photo {
  background: #efe6ff;
}

.tag-rest {
  background: #e5ffd6;
}

.tag-stay {
  background: #fff0f4;
}

.tag-warning {
  background: #ffe1d6;
}

.route-point {
  background: #fff;
}

.route-point span {
  display: grid;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: rgba(23, 21, 31, 0.88);
  font-size: 0.58rem;
  line-height: 1;
}

.route-point b {
  font: inherit;
}

.route-point small {
  flex: 0 0 auto;
  padding: 2px 4px;
  color: #fff;
  background: rgba(23, 21, 31, 0.72);
  border-radius: 4px;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
}

.route-point.is-key {
  background: var(--lime);
  box-shadow: 2px 2px 0 rgba(23, 21, 31, 0.2);
}

.route-point.is-normal {
  background: #eef3ff;
  color: #3f4655;
}

.route-start span,
.route-end span {
  background: var(--coral);
}

.route-photo span {
  background: var(--violet);
}

.route-stay span {
  background: var(--blue);
}

.route-road span,
.route-transfer span {
  background: #506070;
}

.route-town span,
.route-village span {
  background: var(--green);
}

.route-rest span {
  background: #7b6a2a;
}

.route-arrow {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 950;
}

.sticky-modal {
  position: absolute;
  top: clamp(160px, 25vh, 215px);
  right: clamp(18px, 4vw, 44px);
  z-index: 12;
  width: min(340px, calc(100% - 74px));
  max-height: min(420px, calc(100% - 220px));
  padding: 20px 16px 16px;
  overflow: auto;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 42%),
    #fff1a8;
  border: 2px solid var(--ink);
  border-radius: 5px 13px 7px 10px;
  box-shadow: 10px 12px 0 rgba(23, 21, 31, 0.18), 0 18px 42px rgba(23, 21, 31, 0.24);
  transform: rotate(-1.6deg);
}

.sticky-modal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 108px;
  height: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(23, 21, 31, 0.16);
  transform: translateX(-50%) rotate(3deg);
}

.sticky-modal[hidden] {
  display: none;
}

.sticky-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  background: #fffaf0;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 rgba(23, 21, 31, 0.18);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1;
}

.sticky-modal p {
  width: calc(100% - 36px);
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.25;
}

.sticky-modal h4 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.08;
}

.sticky-modal .journey-meta-row {
  gap: 8px;
}

.sticky-modal .journey-meta-label {
  display: none;
}

.journey-guide {
  margin: 0;
  color: #433d4a;
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.45;
}

.journey-guide-list {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.journey-guide-list li {
  position: relative;
  padding-left: 12px;
  color: #4b4454;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.35;
}

.journey-guide-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
}

.sticky-modal .journey-tags,
.sticky-modal .route-points {
  gap: 7px;
}

.sticky-modal .journey-tag,
.sticky-modal .route-point {
  font-size: 0.76rem;
}

.route-list article,
.compare-list article,
.info-cards article,
.page-note {
  padding: 9px;
  background: #fffaf0;
  border: 1px solid rgba(23, 21, 31, 0.13);
  border-radius: 6px;
}

.route-list b,
.route-list span,
.route-list em,
.compare-list strong,
.compare-list span {
  display: block;
}

.route-list b,
.compare-list strong,
.page-note strong {
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 950;
}

.route-list span {
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.3;
}

.route-list em,
.compare-list span {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.42;
}

.check-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 10px 9px 30px;
  background: #fffaf0;
  border: 1px solid rgba(23, 21, 31, 0.13);
  border-radius: 6px;
  color: #403b46;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  background: var(--lime);
}

.page-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
}

.page-controls button {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
}

.page-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.page-controls span {
  justify-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
  }

  .desk-shell {
    min-height: 100dvh;
  }

  .desk-surface {
    min-height: 100dvh;
    padding-bottom: 220px;
    overflow: hidden;
  }

  .desk-intro {
    position: relative;
    left: auto;
    top: auto;
    width: min(480px, 100%);
    margin: 18px 0 22px;
  }

  .desk-note {
    left: 18px;
    right: auto;
    bottom: 18px;
    width: min(330px, calc(100vw - 36px));
  }

  .binder-field {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
  }

  .binder-card {
    position: relative;
    inset: auto;
    width: min(100%, 320px);
    justify-self: center;
  }

  .binder-card,
  .binder-card:hover,
  .binder-card[aria-disabled="true"]:hover {
    transform: rotate(var(--r));
  }

  .reader-stage {
    inset: 0;
    align-items: start;
    overflow: hidden;
  }
}

@media (max-width: 680px) {
  .desk-surface {
    min-height: 100dvh;
    padding: 14px;
    padding-bottom: 184px;
  }

  .desk-intro h1 {
    font-size: clamp(2.4rem, 16vw, 4.1rem);
  }

  .binder-field {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .binder-card {
    width: min(100%, 310px);
    min-width: 0;
    padding: 14px 10px 12px 20px;
    box-shadow: 6px 6px 0 var(--accent), 0 14px 36px rgba(23, 21, 31, 0.16);
  }

  .binder-card,
  .binder-card:hover,
  .binder-card[aria-disabled="true"]:hover {
    transform: none;
  }

  .cover-art {
    inset: 74px 10px 86px 22px;
  }

  .binder-title {
    margin-top: 132px;
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .binder-subtitle {
    display: none;
  }

  .binder-meta em {
    font-size: 0.58rem;
  }

  .desk-note {
    transform: none;
  }

  .reader-stage {
    inset: 0;
    padding: 10px;
  }

  .binder-reader {
    width: min(calc(100vw - 34px), calc((100dvh - 32px) * 0.707));
    height: min(88dvh, 760px);
    max-height: calc(100dvh - 20px);
    padding: 13px 12px 13px 25px;
    box-shadow: 8px 8px 0 var(--accent), 0 20px 60px rgba(23, 21, 31, 0.42);
  }

  .reader-cover {
    gap: 8px;
  }

  .reader-cover p {
    font-size: 0.66rem;
  }

  .reader-cover h2 {
    font-size: 1.32rem;
  }

  .reader-tabs {
    margin-top: 9px;
    margin-bottom: 8px;
  }

  .paper-page {
    padding: 12px;
  }

  .paper-page h3 {
    font-size: 1.22rem;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .mini-timeline article {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  body {
    overflow: visible;
    background: #fff;
  }

  .desk-surface,
  .reader-backdrop,
  .close-reader,
  .reader-tabs,
  .page-controls {
    display: none !important;
  }

  .reader-stage {
    position: static;
    display: block;
    opacity: 1;
  }

  .binder-reader {
    width: 100%;
    height: auto;
    max-height: none;
    box-shadow: none;
  }
}
