/* Voyage design system for the web. Colors mirror ios/voyage/ColorPalette.swift
   (AppColors); fonts are the apps' own, from shared/data/fonts. */

@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Warm (light) */
  --bg-top: #FAF5ED;        /* backgroundLightTop */
  --bg-bottom: #F2E8DE;     /* backgroundLightBottom */
  --card: rgba(255, 255, 255, 0.6);
  --track: #E6E0D9;         /* trackLight */
  --text: #33261A;          /* textPrimaryLight */
  --text-secondary: #66594D; /* textSecondaryLight */
  --accent: #D98C59;        /* buttonColor, terracotta */

  /* Globe */
  --visited: #F2F013;
  --wishlist: #9966CC;
  --border: #1A1A1F;

  --display: "Newsreader", Georgia, serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  /* Night */
  :root {
    --bg-top: #1A1A1F;      /* pageBgDark */
    --bg-bottom: #121217;
    --card: #26262E;        /* between cardDarkSecondary and cardDark */
    --track: #40404D;       /* trackDark */
    --text: #F5F5F7;
    --text-secondary: #B3B3BF; /* textSecondaryDark */
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(var(--bg-top), var(--bg-bottom)) fixed;
  background-color: var(--bg-top);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.site-header, .site-footer { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 24px var(--display); text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.site-header nav a { font-weight: 500; text-decoration: none; }
.site-footer { justify-content: center; color: var(--text-secondary); font-size: 14px; border-top: 1px solid var(--track); margin-top: 64px; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 20px; }
.lede { font-size: 20px; color: var(--text-secondary); max-width: 34em; margin: 0 0 32px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.stores img { display: block; }
.play-badge { margin: -11px; } /* Google's badge ships with built-in padding */

.globe { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.25)); }
.globe .surface { isolation: isolate; }
.globe .relief { mix-blend-mode: hard-light; }
.globe .visited { fill: var(--visited); }
.globe .wishlist { fill: var(--wishlist); }
.globe .borders { fill: none; stroke: var(--border); stroke-width: 0.5; stroke-linejoin: round; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 48px 0 0; }
.features article { background: var(--card); border: 1px solid var(--track); border-radius: 20px; padding: 28px; }
.features h2 { font-size: 28px; margin: 0 0 8px; }
.features p { margin: 0; color: var(--text-secondary); }

/* Privacy and other text pages */
.prose, .narrow { max-width: 680px; margin: 0 auto; padding: 32px 0 0; }
.prose h1, .narrow h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 24px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 22px; margin: 28px 0 8px; }
.prose li + li { margin-top: 6px; }
.prose code { font-size: 0.9em; background: var(--card); padding: 1px 5px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--track); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .hero-globe { max-width: 420px; margin: 0 auto; order: -1; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main, .site-header, .site-footer { padding-left: 16px; padding-right: 16px; }
  .lede { font-size: 18px; }
}
