/* roamover.app — one stylesheet for every page.
   No web fonts, no inline styles and no third-party anything: the pages are
   served under `style-src 'self'` / `default-src 'none'` (nginx.conf), and
   the colours are the app's own Material 3 scheme from its deep-orange seed
   (app/lib/core/app_theme.dart), so the site and the app look like one
   product in light and dark. */

:root {
  color-scheme: light dark;
  --bg: #fff8f6;
  --surface: #fceae5;
  --surface-strong: #f5ddd6;
  --text: #231917;
  --muted: #53433f;
  --primary: #8f4c38;
  --on-primary: #ffffff;
  --outline: #d8c2bc;
  --radius: 20px;
  --bezel: #201a19;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a110f;
    --surface: #271d1b;
    --surface-strong: #322825;
    --text: #f1dfda;
    --muted: #d8c2bc;
    --primary: #ffb5a0;
    --on-primary: #561f0f;
    --outline: #53433f;
    --bezel: #0d0908;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--outline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 3.5rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--primary);
}

/* Buttons */

.play-button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.play-button:hover {
  filter: brightness(1.08);
}

.small {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Home: hero */

.hero {
  padding: 3rem 0 2rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-shot {
  margin: 0;
  justify-self: center;
}

.hero-shot img,
.shots img {
  display: block;
  width: 17rem;
  border-radius: 28px;
  border: 8px solid var(--bezel);
  outline: 1px solid var(--outline);
  box-shadow: 0 20px 45px rgb(0 0 0 / 0.18);
}

@media (min-width: 52rem) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero-shot img {
    width: 19rem;
  }
}

/* Home: features */

.features {
  padding: 3rem 0;
  background: var(--surface);
}

.features h2,
.download h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature-grid article {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--primary);
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

/* Home: screenshots */

.gallery {
  padding: 3.5rem 0;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.shots figure {
  margin: 0;
  max-width: 17rem;
  text-align: center;
}

.shots figcaption {
  margin-top: 1rem;
  color: var(--muted);
}

/* Home: download */

.download {
  padding: 3rem 0 3.5rem;
  background: var(--surface-strong);
  text-align: center;
}

/* Legal and other text pages */

.page {
  padding: 2.5rem 1rem 4rem;
}

.legal {
  max-width: 70ch;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.5rem;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 2rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: inherit;
}

.site-footer p {
  margin: 1rem 0 0;
}

@media (max-width: 30rem) {
  .site-header nav {
    gap: 0.9rem;
    font-size: 0.95rem;
  }

  .brand img {
    height: 2.5rem;
  }
}
