/* The "Passport" brand, as in App.xaml. */
:root {
  --deep-sea: #0A1414;
  --lagoon: #12302C;
  --surface-2: #17332F;
  --text: #EEF5F3;
  --muted: #9FB3AF;
  --accent: #2ED3B7;
  --sunset: #FF9F5A;
  --on-accent: #0A1414;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 38rem;
}

@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--deep-sea);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, dt, .wordmark, .button { font-family: "Sora", "Segoe UI", system-ui, sans-serif; }

a { color: var(--accent); text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; border-radius: 4px; }

/* Header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.button {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.button:hover { background: #5BE0C9; }
.button.small { padding: 0.55em 1.2em; font-size: 0.9375rem; }

/* Sections share one column width; each sets only its own spacing. */
main > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

.fine { color: var(--muted); font-size: 0.9375rem; margin: 0.75em 0 0; }

/* Hero */
.hero { padding-top: clamp(40px, 8vw, 96px); }

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.4vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 11em;
  margin: 0;
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--muted);
  margin: 1.2em 0 0;
}

.get { margin-top: 2rem; }

.shot {
  margin: clamp(40px, 6vw, 72px) 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-2);
  box-shadow: 0 30px 80px -30px rgba(46, 211, 183, 0.25);
}
.shot img { display: block; width: 100%; height: auto; }

/* Player screenshots: two side by side, stacked on narrow screens. */
.player { padding-top: clamp(72px, 10vw, 128px); }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 2rem;
}
.shots .shot { margin: 0; display: flex; flex-direction: column; }
.shots figcaption {
  flex: 1;
  padding: 0.9rem 1.1rem 1rem;
  background: var(--lagoon);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Features: a definition list in two columns, not cards. */
.features { padding-top: clamp(72px, 10vw, 128px); }

.features dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.25rem 4rem;
  margin: 2rem 0 0;
}
.features dl > div { border-top: 2px solid var(--surface-2); padding-top: 1rem; }
.features dt { font-weight: 600; font-size: 1.15rem; }
.features dd { margin: 0.35em 0 0; color: var(--muted); max-width: var(--measure); }

/* The place names: the page's one loud moment. */
.places { padding-top: clamp(80px, 11vw, 144px); }
.places > p { color: var(--muted); margin: 0; }

.countries {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1em 0.75em;
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  /* Dimmed, but still readable text (4.6:1 on the background). */
  color: #5F8F87;
}
.countries li:nth-child(9n + 4) { color: var(--accent); }

/* Source and download */
.source { padding-top: clamp(80px, 11vw, 144px); }
.source p { max-width: var(--measure); color: var(--muted); margin: 0; }

.again {
  padding-top: clamp(80px, 11vw, 144px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.again .fine { max-width: var(--measure); }
.again b { color: var(--text); font-weight: 600; }

footer {
  border-top: 1px solid var(--surface-2);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  color: var(--muted);
  font-size: 0.875rem;
}
footer p { margin: 0; max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* Credits: the same two-column list as the features. */
.credits { padding-top: clamp(80px, 11vw, 144px); }
.credits > p { max-width: var(--measure); color: var(--muted); margin: 0; }
.credits dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem 4rem;
  margin: 2rem 0 0;
}
.credits dl > div { border-top: 2px solid var(--surface-2); padding-top: 1rem; }
.credits dt { font-weight: 600; font-size: 1.15rem; }
.credits dt a { color: var(--text); text-decoration-color: var(--accent); }
.credits dd { margin: 0.35em 0 0; color: var(--muted); max-width: var(--measure); }
