:root {
  --ink: #171914;
  --paper: #e9e1d0;
  --paper-soft: #d8ceba;
  --paper-dim: #aea38e;
  --line: rgba(23, 25, 20, 0.25);
  --line-dark: rgba(233, 225, 208, 0.22);
  --acid: #d65032;
  --acid-dark: #893926;
  --moss: #67715f;
  --blue: #506c73;
  --gold: #b58d49;
  --display: "Cormorant Garamond", Georgia, serif;
  --display-ko: "Nanum Myeongjo", "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans KR", "Pretendard", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.78;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-wrap: pretty;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(233, 225, 208, 0.2);
  color: var(--paper);
  background: rgba(23, 25, 20, 0.96);
  backdrop-filter: blur(18px);
}

.topbar p {
  margin: 0;
}

.back-link,
.topbar-title,
.preview-label,
.kicker,
.spread-eyebrow,
.index-label,
.map-caption,
.mock-badge,
.source-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.back-link {
  text-decoration: none;
}

.topbar-title {
  color: var(--paper-soft);
  text-align: center;
}

.preview-label {
  color: var(--acid);
  text-align: right;
}

.cover {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: calc(100vh - 54px);
  padding: 6vw 6vw 5vw;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.cover::before,
.cover::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.72;
}

.cover::before {
  right: -8vw;
  bottom: -18vw;
  width: 58vw;
  height: 47vw;
  background: radial-gradient(ellipse at center, rgba(214, 80, 50, 0.86) 0 19%, rgba(137, 57, 38, 0.58) 38%, rgba(23, 25, 20, 0) 72%);
}

.cover::after {
  right: 12vw;
  bottom: -10vw;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(181, 141, 73, 0.42), rgba(23, 25, 20, 0) 66%);
}

.cover-copy,
.cover-side {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 9vh;
  color: var(--acid);
}

h1 {
  margin: 0;
  font-family: var(--display-ko);
  font-size: clamp(66px, 10vw, 150px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.english-title {
  margin: 4vh 0 0;
  color: var(--paper-soft);
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 56px);
  font-style: italic;
  line-height: 0.9;
}

.cover-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 520px;
  padding: 3vw 0 3vw 4vw;
}

.cover-number {
  position: absolute;
  top: -1vw;
  right: 0;
  margin: 0;
  color: rgba(233, 225, 208, 0.08);
  font-family: var(--display);
  font-size: clamp(190px, 27vw, 410px);
  line-height: 0.7;
}

.lead {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display-ko);
  font-weight: 400;
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.cover-note {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 40px 0 0;
  color: var(--paper-soft);
  font-size: 14px;
  line-height: 1.85;
}

.cover-rule {
  position: absolute;
  right: 6vw;
  bottom: 5vw;
  left: 6vw;
  z-index: 1;
  height: 1px;
  background: rgba(233, 225, 208, 0.2);
}

.spread {
  padding: 9vw 6vw;
  border-top: 1px solid var(--line);
}

.spread-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 3vw 7vw;
  margin-bottom: 5vw;
}

.spread-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--acid-dark);
  font-size: 14px;
  letter-spacing: 0.13em;
}

h2 {
  margin: 0;
  font-family: var(--display-ko);
  font-size: clamp(44px, 5vw, 90px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.spread-deck {
  align-self: end;
  max-width: 640px;
  margin: 0;
  color: #43453d;
  font-size: 16px;
  line-height: 1.8;
}

/* I. 순위 역전 — 실제 데이터 슬로프그래프 */
.rank-figure {
  margin: 0;
}

.rank-figure svg {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
}

.rank-figure figcaption {
  max-width: 680px;
  margin: 22px auto 0;
  color: #6a6555;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.rank-figure figcaption span {
  display: block;
  margin-top: 6px;
  color: var(--paper-dim);
  font-size: 11px;
}

.evidence-quote {
  max-width: 720px;
  margin: 6vw auto 0;
  font-family: var(--display-ko);
  font-weight: 400;
  font-size: clamp(22px, 2.7vw, 36px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: center;
  text-indent: 0;
  color: var(--acid-dark);
}

/* I. 전국 — 범죄별 상위 시군구 (실명) */
.spread-national {
  color: var(--paper);
  background: var(--ink);
}

.spread-national .spread-eyebrow {
  color: var(--acid);
}

.spread-national .spread-deck {
  color: var(--paper-soft);
}

.crime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
}

.crime-card {
  padding: 18px 18px 20px;
  background: #1d201b;
}

.crime-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 15px;
}

.crime-head h3 {
  margin: 0;
  font-family: var(--display-ko);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
}

.crime-head span {
  color: var(--paper-dim);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.crime-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.crime-card li {
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 12.5px;
}

.crime-card li:last-child {
  margin-bottom: 0;
}

.crime-card li b {
  font-weight: 500;
  color: #d8cfba;
}

.crime-card li i {
  display: block;
  height: 4px;
  width: var(--w);
  background: var(--c);
}

.crime-card li em {
  font-style: normal;
  text-align: right;
  color: var(--paper-dim);
  font-size: 11px;
}

.crime-note {
  display: flex;
  align-items: center;
}

.crime-note p {
  margin: 0;
  color: #8a8474;
  font-size: 11.5px;
  line-height: 1.75;
}

.atlas-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
}

.atlas-index {
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}

.index-label {
  margin: 0 0 18px;
  color: var(--acid-dark);
}

.layer-controls {
  display: grid;
}

.layer-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 7px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, padding 180ms ease;
}

.layer-button:hover,
.layer-button:focus-visible,
.layer-button.is-active {
  padding-left: 8px;
  color: var(--acid-dark);
}

.layer-button span {
  grid-row: 1 / 3;
  color: var(--paper-dim);
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
}

.layer-button strong {
  font-size: 15px;
}

.layer-button small {
  color: var(--paper-dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.atlas-frame {
  border-top: 1px solid var(--ink);
}

.map-topline,
.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.map-topline {
  align-items: end;
  padding: 10px 0 13px;
}

.map-caption,
.mock-badge {
  margin: 0;
}

.map-caption {
  color: var(--paper-dim);
}

.map-topline h3 {
  margin: 5px 0 0;
  font-family: var(--display-ko);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mock-badge {
  padding: 5px 8px;
  color: var(--paper);
  background: var(--acid-dark);
}

.map-canvas {
  position: relative;
  height: clamp(380px, 66vh, 660px);
  overflow: hidden;
  color: var(--ink);
  background: #efe9da;
}

/* 옅은 실제 도로망(Leaflet light_nolabels) + 그 위 범죄 도판(WMS) */
.plate-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #efe9da;
  z-index: 0;
}

.plate-map .leaflet-tile-pane {
  opacity: 0.95;
  filter: sepia(0.1) contrast(1.05);
}

/* WMS 도판은 옅은 회색 배경 위에 밀도 색이 칠해져 있어 multiply로 합성하면
   배경 회색은 도로를 비추고 색상만 얹힌다 */
.plate-map .plate-overlay {
  mix-blend-mode: multiply;
  filter: saturate(1.2) contrast(1.08);
}

/* 색 척도 범례 */
.plate-legend {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(244, 236, 221, 0.94);
  font-family: var(--sans);
}
.plate-legend .legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #5a5547;
}
.plate-legend .legend-bar {
  display: block;
  width: 132px;
  height: 9px;
  background: linear-gradient(to right, #fff7bc, #fee391, #fec44f, #fe9929, #ec7014, #cc4c02, #99000d);
}
.plate-legend .legend-note {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 400;
  color: #6a6555;
  letter-spacing: 0.02em;
  max-width: 190px;
  line-height: 1.45;
}

/* 동네 클릭 시 실제 건수 팝업 */
.plate-map .place-popup .leaflet-popup-content-wrapper {
  border-radius: 2px;
  background: rgba(244, 236, 221, 0.97);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(23, 25, 20, 0.22);
}
.plate-map .place-popup .leaflet-popup-tip { background: rgba(244, 236, 221, 0.97); }
.place-pop { font-family: var(--sans); min-width: 132px; }
.place-pop strong { display: block; font-size: 14px; font-weight: 700; }
.place-pop .pp-sub {
  display: block;
  margin: 2px 0 8px;
  color: #893926;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.place-pop table { width: 100%; font-size: 12px; border-collapse: collapse; }
.place-pop td { padding: 2px 0; }
.place-pop td:first-child { color: #6a6555; }
.place-pop td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.plate-map .leaflet-control-attribution {
  color: #6a6555;
  background: rgba(233, 225, 208, 0.7);
}

/* 동네 라벨 */
.plate-map .place-label.leaflet-tooltip {
  padding: 2px 7px;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  background: rgba(244, 236, 221, 0.92);
  box-shadow: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plate-map .place-label.leaflet-tooltip::before { display: none; }

/* 시·도 라벨 (전국 줌에서만) */
.plate-map .sido-label.leaflet-tooltip {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #4a443a;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 0 3px rgba(244, 236, 221, 0.95), 0 0 6px rgba(244, 236, 221, 0.85);
}
.plate-map .sido-label.leaflet-tooltip::before { display: none; }

/* 전국 줌일 때 시(점) 라벨 숨김 */
.plate-map.hide-city-labels .place-label { display: none; }

/* 환경·예방 레이어 토글 */
.env-label { margin-top: 22px; }
.env-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.env-button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: #43453d;
  font-family: var(--sans);
  font-size: 11px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.env-button:hover { border-color: var(--ink); }
.env-button.is-active {
  color: var(--paper);
  background: var(--acid-dark);
  border-color: var(--acid-dark);
}

/* 환경·예방 오버레이는 시설 아이콘이라 합성하지 않고 그대로 얹는다 */
.plate-map .plate-env { mix-blend-mode: normal; }

/* IV. 5대 범죄 구성 — 같은 크기 점의 '개수'로 비중, 시간차로 번진다 */
.ink-field {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 2.5vw, 28px);
  padding: 26px 0 8px;
}
.ink-col { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.ink-area {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
}
.ink-area .dot {
  position: absolute;
  filter: blur(3px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 1.5s cubic-bezier(0.22, 0.85, 0.25, 1), opacity 1.3s ease;
}
.ink-field.play .ink-area .dot { opacity: 0.82; transform: translate(-50%, -50%) scale(1); }
.ink-col figcaption { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ink-col figcaption b { font-family: var(--display-ko); font-weight: 700; font-size: 16px; color: var(--paper); }
.ink-col figcaption span { font-family: var(--display-ko); font-size: 14px; color: var(--paper-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .ink-field { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ink-area .dot { transition: none; opacity: 0.82; transform: translate(-50%, -50%) scale(1); }
}
.comparison-quote {
  max-width: 720px;
  margin: 2.6rem auto 0;
  font-family: var(--display-ko);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--acid);
}

/* "전국 보기" 버튼 */
.plate-reset {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper);
  background: var(--acid-dark);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.plate-reset:hover { background: var(--ink); }

/* Leaflet 줌 버튼 톤 */
.plate-map .leaflet-control-zoom a {
  color: var(--ink);
  background: rgba(244, 236, 221, 0.95);
  border-color: var(--line);
}

/* 워터마크·나침반은 지도 클릭을 막지 않는다 */
.map-watermark,
.map-compass { pointer-events: none; }

.plate-map .leaflet-control-attribution {
  padding: 1px 6px;
  color: rgba(233, 225, 208, 0.42);
  background: rgba(23, 25, 20, 0.55);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.plate-map .leaflet-control-attribution a {
  color: rgba(233, 225, 208, 0.62);
}

.condition-markers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-compass,
.map-watermark {
  z-index: 2;
}

.city-base,
.surface-stack,
.surface-layer,
.wms-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.districts path {
  fill: rgba(233, 225, 208, 0.055);
  stroke: rgba(233, 225, 208, 0.16);
  stroke-width: 1;
}

.roads path,
.minor-roads path {
  fill: none;
}

.roads path {
  stroke: rgba(233, 225, 208, 0.34);
  stroke-width: 12;
}

.minor-roads path {
  stroke: rgba(233, 225, 208, 0.12);
  stroke-width: 3;
}

.labels text {
  fill: rgba(233, 225, 208, 0.25);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.surface-layer {
  display: none;
  mix-blend-mode: screen;
}

.surface-layer.is-visible {
  display: block;
}

.surface-layer path {
  fill: rgba(214, 80, 50, 0.78);
  stroke: rgba(244, 174, 130, 0.7);
  stroke-width: 2;
  filter: blur(12px);
}

.surface-layer[data-surface="theft"] path {
  fill: rgba(214, 80, 50, 0.86);
}

.surface-layer[data-surface="violence"] path {
  fill: rgba(181, 141, 73, 0.86);
}

.surface-layer[data-surface="sexual"] path {
  fill: rgba(107, 125, 122, 0.9);
}

.surface-layer[data-surface="robbery"] path {
  fill: rgba(217, 92, 51, 0.92);
}

.wms-main-image {
  object-fit: fill;
}

.map-canvas.has-collected-data .city-base,
.map-canvas.has-collected-data .condition-markers {
  display: none;
}

.condition-markers .marker {
  position: absolute;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(233, 225, 208, 0.72);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(23, 25, 20, 0.84);
  font-size: 9px;
  font-weight: 700;
}

.marker-store {
  border-radius: 0 !important;
}

.marker-bell {
  color: var(--ink) !important;
  background: var(--gold) !important;
}

.map-compass {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  justify-items: center;
  color: rgba(233, 225, 208, 0.78);
  font-family: var(--display);
  font-size: 18px;
}

.map-compass i {
  width: 1px;
  height: 32px;
  background: currentColor;
}

.map-watermark {
  position: absolute;
  right: 18px;
  bottom: 13px;
  margin: 0;
  color: rgba(233, 225, 208, 0.74);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.map-footer {
  padding: 13px 0 0;
  border-bottom: 1px solid var(--ink);
}

.map-footer p {
  max-width: 48%;
  margin: 0 0 13px;
  color: #555748;
  font-size: 11px;
  line-height: 1.75;
}

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

.spread-comparison .spread-eyebrow,
.spread-principle .spread-eyebrow {
  color: var(--acid);
}

.spread-comparison .spread-deck {
  color: var(--paper-soft);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
}

.mini-map {
  display: grid;
  min-width: 0;
  padding: 17px;
  border: 0;
  text-align: left;
  background: #1d201b;
  cursor: pointer;
  transition: background 180ms ease;
}

.mini-map:hover,
.mini-map:focus-visible {
  background: #292c25;
}

.mini-number {
  color: var(--acid);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.mini-title {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.mini-title small {
  display: block;
  color: var(--paper-dim);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.mini-canvas {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(233, 225, 208, 0.18);
  background:
    linear-gradient(90deg, transparent 24%, rgba(233,225,208,.2) 25%, transparent 26%, transparent 66%, rgba(233,225,208,.16) 67%, transparent 68%),
    linear-gradient(0deg, transparent 30%, rgba(233,225,208,.18) 31%, transparent 32%, transparent 72%, rgba(233,225,208,.14) 73%, transparent 74%);
}

.mini-canvas i {
  position: absolute;
  border-radius: 50%;
  filter: blur(11px);
}

.mini-theft i:first-child {
  top: 16%;
  left: 12%;
  width: 57%;
  height: 47%;
  background: rgba(214, 80, 50, 0.9);
}

.mini-theft i:last-child {
  right: 7%;
  bottom: 13%;
  width: 38%;
  height: 34%;
  background: rgba(214, 80, 50, 0.7);
}

.mini-violence i:first-child {
  right: 7%;
  bottom: 15%;
  width: 62%;
  height: 47%;
  background: rgba(181, 141, 73, 0.88);
}

.mini-violence i:last-child {
  top: 12%;
  left: 17%;
  width: 31%;
  height: 31%;
  background: rgba(181, 141, 73, 0.62);
}

.mini-sexual i:first-child {
  top: 17%;
  left: 38%;
  width: 42%;
  height: 49%;
  background: rgba(107, 125, 122, 0.92);
}

.mini-sexual i:last-child {
  bottom: 11%;
  left: 12%;
  width: 33%;
  height: 29%;
  background: rgba(107, 125, 122, 0.62);
}

.mini-robbery i:first-child {
  top: 17%;
  right: 18%;
  width: 26%;
  height: 26%;
  background: rgba(217, 92, 51, 0.94);
}

.mini-robbery i:last-child {
  bottom: 18%;
  left: 22%;
  width: 22%;
  height: 22%;
  background: rgba(217, 92, 51, 0.8);
}

.mini-note {
  margin-top: 14px;
  color: var(--paper-soft);
  font-size: 12px;
}

.comparison-disclaimer {
  max-width: 610px;
  margin: 30px 0 0 auto;
  color: var(--paper-dim);
  font-size: 11px;
  line-height: 1.75;
}

.conditions-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) 1fr;
  gap: 7vw;
  align-items: center;
}

.condition-orbit {
  position: relative;
  aspect-ratio: 1;
  max-width: 570px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.7%, var(--line) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, var(--line) 50%, transparent 50.3%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(23, 25, 20, 0.33);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-outer {
  width: 78%;
  height: 78%;
}

.orbit-inner {
  width: 42%;
  height: 42%;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--acid-dark);
  transform: translate(-50%, -50%);
}

.orbit-core span {
  font-size: 11px;
}

.orbit-core strong {
  font-family: var(--display);
  font-size: 35px;
  line-height: 0.8;
}

.orbit-tag {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
}

.tag-one { top: 11%; left: 46%; }
.tag-two { top: 31%; right: 12%; }
.tag-three { right: 22%; bottom: 16%; }
.tag-four { bottom: 15%; left: 20%; }
.tag-five { top: 31%; left: 11%; }

.condition-list {
  border-top: 1px solid var(--ink);
}

.condition-list article {
  display: grid;
  grid-template-columns: 0.72fr 1.08fr;
  gap: 6px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.condition-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--acid-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.condition-list h3,
.source-grid h3 {
  margin: 0;
  font-family: var(--display-ko);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.condition-list span {
  color: #555748;
  font-size: 13px;
}

.spread-principle {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 5vw;
  color: var(--paper);
  background: var(--acid-dark);
}

.principle-mark {
  font-family: var(--display);
  font-size: clamp(230px, 33vw, 510px);
  line-height: 0.62;
}

.principle-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  max-width: 830px;
  margin-top: 54px;
  color: var(--paper-soft);
  font-size: 14px;
}

.principle-copy p {
  margin: 0;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.source-grid article {
  min-height: 300px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.source-type {
  margin: 0 0 56px;
  color: var(--acid-dark);
}

.source-grid p:not(.source-type) {
  color: #555748;
  font-size: 12px;
}

.source-grid a {
  display: inline-block;
  margin-top: 18px;
  color: var(--acid-dark);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 6vw;
  color: var(--paper-soft);
  background: var(--ink);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.site-footer a {
  margin-left: 14px;
  color: var(--paper-dim);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .cover {
    grid-template-columns: 1fr;
    min-height: 800px;
    padding: 10vw 6vw;
  }

  .cover-side {
    padding: 100px 0 30px;
  }

  .cover-number {
    top: 40px;
  }

  .spread {
    padding: 90px 6vw;
  }

  .spread-header,
  .conditions-layout {
    grid-template-columns: 1fr;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .layer-controls {
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
  }

  .layer-button {
    display: block;
    min-width: 0;
    padding: 10px 7px;
    border: 0;
    background: var(--paper);
  }

  .layer-button:hover,
  .layer-button:focus-visible,
  .layer-button.is-active {
    padding-left: 7px;
    background: var(--paper-soft);
  }

  .layer-button span,
  .layer-button small {
    display: block;
  }

  .layer-button span {
    margin-bottom: 5px;
    font-size: 18px;
  }

  .layer-button strong {
    font-size: 12px;
  }

  .layer-button small {
    display: none;
  }

  .comparison-grid,
  .source-grid,
  .crime-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spread-principle {
    grid-template-columns: 1fr;
  }

  .principle-mark {
    font-size: 270px;
    line-height: 0.42;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar-title {
    display: none;
  }

  h1 {
    font-size: clamp(52px, 15vw, 88px);
  }

  .english-title {
    font-size: 28px;
  }

  h2 {
    font-size: 34px;
  }

  .spread-deck {
    font-size: 14px;
  }

  .rank-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rank-figure svg { min-width: 460px; }

  .ink-field { gap: 14px 10px; }

  .map-topline {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .condition-markers .marker {
    width: 21px;
    height: 21px;
    font-size: 7px;
  }

  .map-compass {
    top: 12px;
    right: 12px;
  }

  .map-watermark {
    right: 8px;
    bottom: 5px;
    font-size: 6px;
  }

  .map-footer {
    display: block;
  }

  .map-footer p {
    max-width: none;
  }

  .comparison-grid,
  .source-grid,
  .crime-grid {
    grid-template-columns: 1fr;
  }

  .mini-map {
    grid-template-columns: 42px 1fr 112px;
    gap: 8px;
    align-items: center;
  }

  .mini-title,
  .mini-note {
    margin: 0;
  }

  .mini-note {
    grid-column: 2;
    grid-row: 2;
  }

  .mini-canvas {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .condition-orbit {
    min-width: 0;
  }

  .orbit-core {
    width: 95px;
    height: 95px;
  }

  .orbit-tag {
    width: 47px;
    height: 47px;
    font-size: 9px;
  }

  .condition-list article {
    grid-template-columns: 1fr;
  }

  .principle-copy {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer p {
    margin-top: 10px;
  }
}
