/* map project — shared styles */

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&display=swap');

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

:root {
  --black: #000000;
  --white: #e8e8e4;
  --dim: #666660;
  --serif: 'IM Fell English', Georgia, serif;
}

html {
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--dim);
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--white);
}


/* ── index page ─────────────────────────────── */

.index-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}

.index-page header {
  margin-bottom: 64px;
}

.index-page h1 {
  font-size: 3rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.index-page .description {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 800px;
}

.index-page .description p + p {
  margin-top: 1em;
}

.index-page .enter-link {
  display: inline-block;
  margin-top: 56px;
  font-size: 1rem;
  font-style: italic;
}

.index-page footer {
  margin-top: auto;
  padding-top: 80px;
  font-size: 0.85rem;
  color: var(--dim);
}


/* ── map pages ───────────────────────────────── */

.map-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--black);
}

.map-page .video-wrap {
  width: 100%;
  background: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0 0;
}

.map-page video {
  display: block;
  width: 1920px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.map-page .content {
  width: 100%;
  max-width: 680px;
  padding: 28px 32px 60px;
}

.map-page .notes {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 58ch;
}

.map-page .notes p + p {
  margin-top: 1em;
}

.map-page nav {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.95rem;
  font-style: italic;
}

.map-page nav a {
  text-decoration: none;
  color: var(--dim);
  transition: color 0.2s;
}

.map-page nav a:hover {
  color: var(--white);
}

.map-page nav .nav-prev::before { content: '← '; }
.map-page nav .nav-next::after  { content: ' →'; }

.map-page nav .nav-spacer {
  visibility: hidden;
  pointer-events: none;
}
