:root {
  --ink: #111c23;
  --paper: #f4f0e7;
  --paper-deep: #e5dfd2;
  --lime: #d7ff4f;
  --coral: #ff6f59;
  --mist: #a9b9b7;
  --line: rgba(17, 28, 35, 0.22);
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip:focus {
  transform: translateY(0);
}

.masthead {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 14px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
}

.identity {
  width: 224px;
  text-decoration: none;
}

.edition {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.masthead nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.masthead nav a {
  font-size: 13px;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.cover {
  min-height: 720px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: clamp(22px, 4vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: clamp(52px, 8vw, 116px) clamp(20px, 5vw, 82px);
  background:
    linear-gradient(90deg, transparent 0 66%, rgba(255,255,255,.16) 66% 66.1%, transparent 66.1%),
    var(--paper);
}

.cover-index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #526067;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.cover-index i {
  width: 1px;
  flex: .84;
  margin: 18px 0;
  background: var(--line);
}

.kicker,
.section-code,
.route-meta,
.note-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 7px;
  margin-right: 11px;
  background: var(--coral);
}

.cover h1 {
  max-width: 820px;
  margin: 20px 0 18px;
  font-family: var(--display);
  font-size: clamp(78px, 10.5vw, 176px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.075em;
}

.cover-deck {
  max-width: 720px;
  margin: 0 0 34px;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.36;
}

.cover-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.cover-link span {
  font-size: 24px;
}

.map-card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  min-height: 410px;
  border: 1px solid rgba(215, 255, 79, .45);
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 73%, rgba(215,255,79,.15) 0 3%, transparent 3.5%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.06) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.06) 47px 48px),
    var(--ink);
  color: white;
  transform: rotate(2deg);
  box-shadow: 22px 22px 0 var(--coral);
}

.map-card::after {
  content: "SAMSUN / 55";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--mist);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.north {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--display);
}

.map-line {
  position: absolute;
  height: 3px;
  transform-origin: left center;
  background: var(--lime);
}

.line-a {
  top: 67%;
  left: 13%;
  width: 78%;
  transform: rotate(-18deg);
}

.line-b {
  top: 38%;
  left: 20%;
  width: 58%;
  transform: rotate(35deg);
  background: var(--coral);
}

.map-dot {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid currentColor;
  background: var(--ink);
  color: white;
  font-size: 10px;
  letter-spacing: .08em;
}

.dot-a { left: 9%; bottom: 18%; color: var(--lime); }
.dot-b { left: 35%; bottom: 31%; }
.dot-c { right: 21%; top: 35%; color: var(--coral); }
.dot-d { right: 5%; top: 16%; }

.briefing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--lime);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.briefing p {
  margin: 0;
  padding: 24px clamp(18px, 3vw, 44px);
  border-right: 1px solid var(--ink);
  font-size: 13px;
}

.briefing p:last-child {
  border-right: 0;
}

.briefing span {
  display: block;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 26px;
}

.briefing strong {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-file,
.reading-room,
.privacy-panel,
.question-file {
  padding: clamp(74px, 9vw, 142px) clamp(20px, 7vw, 116px);
}

.file-heading {
  display: grid;
  grid-template-columns: 130px minmax(280px, .9fr) minmax(260px, .65fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 62px;
}

.file-heading h2,
.reading-intro h2,
.privacy-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(43px, 5.3vw, 80px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}

.file-heading > p:last-child {
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--coral);
}

.route-board {
  max-width: 1120px;
  margin-left: auto;
}

.route-board article {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 22px;
  min-height: 190px;
}

.route-stop {
  position: relative;
  display: flex;
  justify-content: center;
}

.route-stop span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--display);
  font-size: 24px;
}

.route-stop i {
  position: absolute;
  top: 56px;
  bottom: -1px;
  width: 2px;
  background: var(--ink);
}

.route-board h3 {
  margin: 9px 0 12px;
  font-family: var(--display);
  font-size: clamp(29px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.route-board article:nth-child(even) .route-stop span {
  background: var(--coral);
}

.route-board article:nth-child(3) .route-stop span {
  background: var(--lime);
}

.route-board article > div:last-child > p:last-child {
  max-width: 780px;
  margin: 0;
}

.reading-room {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(360px, 1fr) minmax(220px, .45fr);
  gap: clamp(34px, 5vw, 80px);
  background: var(--paper-deep);
}

.reading-intro h2 {
  margin: 16px 0 24px;
}

.reading-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reading;
}

.reading-list li {
  position: relative;
  padding: 20px 0 22px 78px;
  border-top: 1px solid var(--ink);
  counter-increment: reading;
}

.reading-list li::before {
  content: "0" counter(reading);
  position: absolute;
  top: 21px;
  left: 0;
  font-family: var(--display);
  font-size: 30px;
}

.reading-list span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reading-list p {
  margin: 4px 0 0;
}

.editor-note {
  align-self: end;
  padding: 28px;
  background: var(--coral);
  transform: rotate(-1.5deg);
}

.editor-note p:last-child {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.35;
}

.outer-districts {
  padding: clamp(74px, 9vw, 142px) clamp(20px, 7vw, 116px);
  background: var(--ink);
  color: var(--paper);
}

.inverse {
  grid-template-columns: 130px 1fr;
}

.district-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(244,240,231,.4);
  border-left: 1px solid rgba(244,240,231,.4);
}

.district-ledger article {
  min-height: 230px;
  padding: clamp(24px, 4vw, 54px);
  border-right: 1px solid rgba(244,240,231,.4);
  border-bottom: 1px solid rgba(244,240,231,.4);
}

.district-ledger p {
  margin: 0;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.district-ledger h3 {
  margin: 18px 0 34px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.district-ledger span {
  color: var(--mist);
  font-size: 13px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(330px, .8fr);
  gap: clamp(44px, 9vw, 140px);
  background: var(--lime);
}

.privacy-panel h2 {
  margin-top: 16px;
}

.privacy-copy {
  padding-top: 32px;
}

.privacy-copy p {
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.question-grid article {
  min-height: 300px;
  padding: clamp(26px, 4vw, 50px);
  background: var(--paper);
}

.question-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
}

.question-grid h3 {
  margin: 24px 0 16px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.14;
}

.question-grid p {
  max-width: 590px;
  margin: 0;
}

.closing {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) auto;
  gap: 46px;
  align-items: end;
  padding: 52px clamp(20px, 5vw, 82px);
  background: var(--ink);
  color: var(--paper);
}

.closing > p {
  margin: 0;
  color: var(--mist);
  font-size: 12px;
}

.closing .folio {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

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

  .edition {
    display: none;
  }

  .cover {
    grid-template-columns: 36px 1fr;
  }

  .map-card {
    grid-column: 2;
    width: min(100%, 520px);
    margin-top: 30px;
  }

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

  .briefing p:nth-child(2) {
    border-right: 0;
  }

  .briefing p:nth-child(-n+2) {
    border-bottom: 1px solid var(--ink);
  }

  .file-heading,
  .reading-room,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .file-heading {
    gap: 18px;
  }

  .file-heading > p:last-child {
    max-width: 620px;
  }

  .editor-note {
    max-width: 520px;
  }

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

  .closing .folio {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .masthead {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px 18px;
  }

  .identity {
    width: 190px;
  }

  .masthead nav {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .masthead nav a {
    white-space: nowrap;
  }

  .cover {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 58px 20px 76px;
  }

  .cover-index {
    display: none;
  }

  .cover h1 {
    font-size: clamp(68px, 23vw, 108px);
    line-height: .82;
  }

  .cover-deck {
    font-size: 20px;
  }

  .map-card {
    grid-column: 1;
    min-height: 390px;
    width: calc(100% - 18px);
    box-shadow: 15px 15px 0 var(--coral);
  }

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

  .briefing p,
  .briefing p:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .briefing p:last-child {
    border-bottom: 0;
  }

  .route-file,
  .reading-room,
  .outer-districts,
  .privacy-panel,
  .question-file {
    padding: 70px 20px;
  }

  .route-board article {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    min-height: 240px;
  }

  .route-stop span {
    width: 48px;
    height: 48px;
  }

  .route-stop i {
    top: 48px;
  }

  .reading-list li {
    padding-left: 62px;
  }

  .district-ledger,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .question-grid article {
    min-height: 0;
  }

  .closing {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 20px;
  }

  .closing .folio {
    grid-column: auto;
  }
}

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