@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/6NU58FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChjeveQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU58FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChjeveQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cY9CfjOCX1hbuyalUrK439vCjohC.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cY9AfjOCX1hbuyalUrK4397yjA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #15110e;
  --bg-deep: #0c0a08;
  --ink: #ebe4d3;
  --ink-mid: #c9c0ad;
  --ink-light: #9c8f7d;
  --patina: #7a6e5e;
  --accent: #c66a4d;
  --accent-soft: rgba(198, 106, 77, 0.08);
  --rule: rgba(235, 228, 211, 0.14);
  --rule-strong: rgba(235, 228, 211, 0.24);
  --panel: rgba(18, 14, 11, 0.9);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.28);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --read: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  background-image: radial-gradient(120% 80% at 50% -10%, #1d1813 0%, var(--bg) 55%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--read);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.masthead {
  padding: 8vh 0 7vh;
  border-bottom: 1px solid var(--rule);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.8rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--patina);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.kicker,
.geo-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--patina);
}

.kicker {
  margin-bottom: 1.4rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.standfirst {
  margin-top: 1.6rem;
  max-width: 48ch;
  color: var(--ink-mid);
  font-size: 1.15rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.stat {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: rgba(12, 10, 8, 0.32);
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.stories-layout {
  display: grid;
  gap: 36px;
  padding: 6vh 0 0;
}

.geo-panel {
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(28, 23, 19, 0.96), rgba(12, 10, 8, 0.96));
  box-shadow: var(--shadow-soft);
}

.geo-title {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.geo-intro {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--ink-mid);
  font-size: 1rem;
}

.map-stage {
  position: relative;
  margin-top: 1.6rem;
  aspect-ratio: 1000 / 520;
  border: 1px solid rgba(235, 228, 211, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 45% 38%, rgba(198, 106, 77, 0.08), transparent 54%);
}

.map-base,
.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-grid-line {
  stroke: rgba(235, 228, 211, 0.08);
  stroke-width: 1;
}

.map-land-shape {
  fill: rgba(235, 228, 211, 0.07);
  stroke: rgba(235, 228, 211, 0.14);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.map-route {
  fill: none;
  stroke: rgba(198, 106, 77, 0.92);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 7 6;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(198, 106, 77, 0.28));
  transition: opacity 180ms ease;
}

.map-route.is-visible {
  opacity: 1;
}

.map-pins {
  position: absolute;
  inset: 0;
}

.country-pin,
.istanbul-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}

.country-pin {
  width: var(--pin-size);
  height: var(--pin-size);
  border: 1px solid rgba(235, 228, 211, 0.26);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(235, 228, 211, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.country-pin::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 999px;
  background: currentColor;
}

.country-pin:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.country-pin.is-active {
  z-index: 3;
  color: #fff5ed;
  background: rgba(198, 106, 77, 0.42);
  border-color: rgba(198, 106, 77, 0.88);
  box-shadow: 0 0 0 6px rgba(198, 106, 77, 0.12);
  transform: translate(-50%, -50%) scale(1.12);
}

.country-pin.is-selected {
  box-shadow: 0 0 0 10px rgba(198, 106, 77, 0.12);
}

.country-pin:focus-visible {
  z-index: 4;
  outline: none;
  box-shadow: 0 0 0 4px var(--bg-deep), 0 0 0 7px rgba(235, 228, 211, 0.34);
}

.istanbul-marker {
  z-index: 4;
  pointer-events: none;
}

.istanbul-marker::before,
.istanbul-marker::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.istanbul-marker::before {
  width: 12px;
  height: 12px;
  background: var(--ink);
  border: 2px solid var(--bg-deep);
}

.istanbul-marker::after {
  width: 34px;
  height: 34px;
  background: rgba(235, 228, 211, 0.05);
  border: 1px solid rgba(235, 228, 211, 0.16);
  animation: istanbulPulse 3.6s ease-in-out infinite;
}

.istanbul-label {
  position: absolute;
  left: 14px;
  top: -17px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.geo-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
}

.geo-status {
  max-width: 30ch;
  color: var(--ink-mid);
  font-size: 0.98rem;
}

.geo-reset {
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.geo-reset:disabled {
  opacity: 0.45;
  cursor: default;
}

.geo-reset:not(:disabled):hover,
.geo-reset:not(:disabled):focus-visible {
  border-color: rgba(198, 106, 77, 0.52);
  color: var(--accent);
  outline: none;
}

.country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.3rem;
  list-style: none;
}

.country-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.country-chip:hover {
  transform: translateY(-1px);
  border-color: var(--rule-strong);
}

.country-chip.is-active {
  border-color: rgba(198, 106, 77, 0.55);
  background: rgba(198, 106, 77, 0.08);
}

.country-chip.is-selected {
  box-shadow: inset 0 0 0 1px rgba(198, 106, 77, 0.32);
}

.country-chip:focus-visible {
  outline: none;
  border-color: rgba(235, 228, 211, 0.34);
  box-shadow: 0 0 0 4px rgba(235, 228, 211, 0.12);
}

.country-chip-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.country-chip-count {
  min-width: 2.25rem;
  height: 1.8rem;
  padding: 0 0.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(235, 228, 211, 0.1);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
}

.geo-note {
  margin-top: 1.1rem;
  color: var(--patina);
  font-size: 0.93rem;
  line-height: 1.5;
}

.timeline {
  position: relative;
  padding: 0 0 14vh;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.35rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--rule-strong), transparent);
}

.year {
  margin: 4.5rem 0 2rem 40px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  color: var(--ink-light);
}

.year:first-child {
  margin-top: 0;
}

.story {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin: 0 0 4.5rem;
}

.when {
  position: relative;
  padding-top: 0.2rem;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: opacity 180ms ease, color 180ms ease;
}

.dot {
  position: absolute;
  left: -29px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  transition: box-shadow 180ms ease;
}

.content {
  min-width: 0;
  padding: 1.05rem 1.1rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story:hover .content {
  transform: translateY(-1px);
  border-color: rgba(235, 228, 211, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.story.is-country-active .content {
  border-color: rgba(198, 106, 77, 0.42);
  background: rgba(198, 106, 77, 0.08);
}

.story.is-country-active .when {
  color: #e58a68;
}

.story.is-country-active .dot {
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 10px rgba(198, 106, 77, 0.12);
}

.story.is-country-dimmed .content,
.story.is-country-dimmed .when {
  opacity: 0.46;
}

.media {
  margin: 0 0 1.2rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--bg-deep);
}

.media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

.meta {
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.name {
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent);
}

.text {
  color: var(--ink);
  font-size: 1.08rem;
}

.review {
  margin-top: 1.4rem;
  padding: 1rem 1.3rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}

.review p {
  color: var(--ink-mid);
  font-style: italic;
  font-size: 1.02rem;
}

.review cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.glink {
  display: inline-block;
  margin-top: 0.45rem;
  border-bottom: 1px solid transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.glink:hover {
  border-bottom-color: var(--accent);
}

.orig {
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.orig summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--patina);
}

.orig summary:hover {
  color: var(--ink-light);
}

.orig p {
  margin-top: 0.8rem;
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

.page-footer {
  border-top: 1px solid var(--rule);
  padding: 5vh 0 8vh;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--patina);
  text-align: center;
}

@keyframes istanbulPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.4;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
  }
}

@media (min-width: 981px) {
  .stories-layout {
    grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
    align-items: start;
    gap: 40px;
  }

  .timeline {
    order: 1;
    padding-top: 0.35rem;
  }

  .geo-rail {
    order: 2;
  }

  .geo-panel {
    position: sticky;
    top: 26px;
  }
}

@media (max-width: 980px) {
  .wrap {
    max-width: 920px;
  }

  .stories-layout {
    gap: 32px;
  }

  .geo-panel {
    padding: 20px 18px 20px;
  }

  .geo-title {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geo-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .wrap {
    padding: 0 18px;
  }

  .masthead {
    padding-top: 6.5vh;
  }

  .stories-layout {
    padding-top: 5vh;
  }

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

  .story {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 3.5rem;
  }

  .when {
    margin-bottom: 0.8rem;
    padding-top: 0;
  }

  .dot,
  .timeline::before {
    display: none;
  }

  .year {
    margin-left: 0;
  }

  .geo-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .content {
    padding: 0.95rem 0.95rem 1.2rem;
    border-radius: 18px;
  }
}

@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;
  }
}
