:root {
  color-scheme: dark;
  --bg: #121011;
  --line: #352a2c;
  --accent: #e05242;
  --cream: #f1e8da;
  --text: #d8cdbd;
  --muted: #b2a496;
}

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

/* Column flex keeps the footer on the bottom edge of a short page. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1, h2, .home-link {
  color: var(--cream);
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--accent); }

.wrap { max-width: 740px; margin: 0 auto; padding: 0 16px; }

/* Home */
.home { display: flex; align-items: center; padding: 72px 0 56px; }
.home .wrap { width: 100%; }
.title { display: flex; align-items: center; gap: 18px; }
/* The PNG is a square; the rounding is ours, close to the iOS icon mask. */
.app-icon { width: 112px; height: 112px; border-radius: 25px; flex: none; }
.home h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.byline { color: var(--muted); margin-top: 6px; }

/* Apple's badge rules: shown unmodified, at least 40px tall, with clear
   space of a quarter of its height on every side (11px at 44px). */
.badge-link { display: inline-block; margin: 31px 0 11px; }
.badge { display: block; height: 44px; width: auto; }

/* Legal pages */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.home-link { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.1rem; }
.home-link img { width: 36px; height: 36px; border-radius: 8px; }
.lang { color: var(--muted); font-size: 0.95rem; }

.prose { padding: 40px 0 56px; }
.prose h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.prose h2 { font-size: 1.15rem; margin-top: 28px; }
.prose p { margin-top: 10px; }
.prose .meta { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--cream); }

@media (max-width: 480px) {
  .home { padding-top: 48px; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .title { gap: 14px; }
}
