/* Static pages (about, contact, privacy, terms): the hub's "Lantern Grove"
   palette from src/shell/menu/theme.ts, with the self-hosted fonts. */
@font-face {
  font-family: 'Bitter';
  src: url('/fonts/Bitter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Karla';
  src: url('/fonts/Karla.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0d1712;
  --surface: #16241c;
  --line: #2c3d33;
  --cream: #f3ecd9;
  --soft: #b3c2b0;
  --muted: #a9b8a6;
  --amber: #f2a33c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--soft);
  font: 17px/1.65 Karla, 'Trebuchet MS', Verdana, sans-serif;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font: 700 19px Bitter, Georgia, serif;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.play {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--amber);
  color: #1b1206;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

h1,
h2 {
  color: var(--cream);
  font-family: Bitter, Georgia, serif;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 36px 0 6px;
  font-size: 34px;
}

h2 {
  margin: 36px 0 8px;
  font-size: 22px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--cream);
}

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

.summary {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: var(--surface);
}

.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}

.games {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.games a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
}

.games strong {
  display: block;
  font: 700 18px Bitter, Georgia, serif;
}

.games span {
  color: var(--muted);
  font-size: 15px;
}

footer.bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
}

footer.bottom a {
  color: var(--soft);
}

/* Get the app (app.html) */
.app-hero {
  text-align: center;
}

.app-hero h1 {
  margin-top: 28px;
}

.app-icon {
  display: block;
  margin: 36px auto 0;
  border-radius: 22px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 12px 26px 12px 20px;
  border-radius: 14px;
  background: var(--cream);
  color: #101a14;
  font: 700 22px/1.1 Karla, 'Trebuchet MS', Verdana, sans-serif;
  text-align: left;
  text-decoration: none;
}

.store-button small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-button:hover,
.store-button:focus-visible {
  background: var(--amber);
}
