:root {
  --bg: #090a0b;
  --panel: #111315;
  --panel-2: #16191c;
  --text: #ece9e2;
  --muted: #aaa59b;
  --line: #2a2e31;
  --gold: #b99657;
  --gold-soft: #d7bd8a;
  --cyan: #7ebac2;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(185, 150, 87, 0.10),
      transparent 28rem
    ),
    radial-gradient(
      circle at 80% 35%,
      rgba(42, 104, 112, 0.10),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 11, 0.82);
  backdrop-filter: blur(20px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.navlinks {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--text);
}

.lang {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
}

.lang:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* Hero */

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 54px;
}

.eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.69rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 4.8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
  color: #c5c0b7;
  max-width: 700px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.2s ease;
  font-size: 0.92rem;
}

.btn.primary {
  background: var(--text);
  color: #0b0c0d;
  border-color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.hero-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #050607;
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 65%,
    rgba(0, 0, 0, 0.54)
  );
}

.caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #ddd6ca;
  font-size: 0.88rem;
}

/* General sections */

.section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 0.94rem;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(
    180deg,
    var(--panel-2),
    var(--panel)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #5f553f;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  filter: saturate(0.88);
}

.card-body {
  padding: 18px;
}

.card-index {
  font-size: 0.69rem;
  color: var(--gold);
  letter-spacing: 0.16em;
}

.card h3 {
  font-size: 1.08rem;
  margin: 7px 0;
}

.card p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 0.68rem;
  color: #bbb5aa;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
}

/* Atlas toolbar */

.atlas-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0;
}

.search {
  width: min(420px, 100%);
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 17px;
  outline: none;
  font-size: 0.9rem;
}

.search:focus {
  border-color: var(--gold);
}

.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.view-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.88rem;
}

.view-switch button.active {
  background: var(--text);
  color: #0b0c0d;
}

/* Atlas map */

.map-wrap {
  position: relative;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at center,
      rgba(185, 150, 87, 0.08),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #111315,
      #0b0c0d
    );
  overflow: hidden;
}

.map-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-line {
  stroke: #64553b;
  stroke-width: 1.2;
  opacity: 0.55;
}

.map-node {
  position: absolute;
  width: 170px;
  transform: translate(-50%, -50%);
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  transition: 0.2s ease;
}

.map-node:hover,
.map-node.active {
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.045);
}

.map-node small {
  display: block;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 0.65rem;
}

.map-node strong {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
}

/* Detail page */

.detail-hero {
  padding: 52px 0 32px;
}

.breadcrumbs {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.detail-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
}

.detail-copy .subtitle {
  color: var(--gold-soft);
  font-size: 1rem;
}

.detail-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0;
}

.sequence span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: #c6c0b5;
  font-size: 0.84rem;
}

.sequence i {
  color: var(--gold);
  font-style: normal;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
}

.info ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: #c1bbb0;
  font-size: 0.88rem;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel);
  font-size: 0.88rem;
}

.related a:hover {
  border-color: var(--gold);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Helpers */

.hidden {
  display: none !important;
}

.no-results {
  color: var(--muted);
  padding: 56px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Tablet */

@media (max-width: 1000px) {
  .hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-wrap {
    min-height: 760px;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 24px), 1500px);
  }

  .nav {
    min-height: 62px;
  }

  .navlinks a {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .grid,
  .split,
  .related {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-head,
  .atlas-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .card {
    min-height: 0;
  }

  .map-wrap {
    min-height: 1050px;
  }

  .map-node {
    width: 138px;
    padding: 9px;
  }
}