/* Russell's Apps — shared styles.
   Palette lifted from Color Dock itself: warm cream, glazed-ceramic, terracotta.
   Plain CSS on purpose: no build step, no framework, nothing to break or maintain. */

:root{
  --bg1:#fff6ea; --bg2:#ffe9d2;
  --ink:#4a3a24; --dim:#8a7355;
  --accent:#e2622b; --accent-dark:#b8471a;
  --card:#fffdf7; --line:#ecd9ba;
  --max:1040px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; color:var(--ink);
  background:linear-gradient(170deg,var(--bg1),var(--bg2) 60%,var(--bg1));
  background-attachment:fixed;
  font:17px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
img{ max-width:100%; display:block; }
a{ color:var(--accent-dark); }

.wrap{ width:100%; max-width:var(--max); margin:0 auto; padding:0 22px; }

/* ---- header ---- */
header.site{ padding:22px 0; }
header.site .wrap{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; color:inherit; font-weight:800; }
.brand img{ width:38px; height:38px; border-radius:9px; }
.brand span{ font-size:18px; letter-spacing:-.2px; }
nav.site{ margin-left:auto; display:flex; gap:20px; }
nav.site a{ text-decoration:none; color:var(--dim); font-weight:700; font-size:15px; }
nav.site a:hover{ color:var(--accent-dark); }

/* ---- hero ---- */
.hero{ padding:44px 0 12px; }
.hero h1{
  font-size:clamp(30px,5.2vw,50px); line-height:1.12; margin:0 0 16px;
  letter-spacing:-.6px; font-weight:800;
}
.hero h1 em{ font-style:normal; color:var(--accent); }
.lede{ font-size:clamp(17px,2.1vw,20px); color:var(--dim); max-width:34em; margin:0; }

/* ---- game card ---- */
.games{ display:grid; gap:26px; padding:34px 0 10px; }
.game{
  background:var(--card); border:1px solid var(--line); border-radius:20px;
  padding:26px; display:grid; gap:22px; align-items:center;
  grid-template-columns:120px 1fr; box-shadow:0 10px 30px rgba(90,60,25,.07);
}
.game img.icon{ width:120px; height:120px; border-radius:26px; box-shadow:0 6px 18px rgba(90,60,25,.18); }
.game h2{ margin:0 0 6px; font-size:24px; letter-spacing:-.3px; }
.game p{ margin:0 0 14px; color:var(--dim); }
.pill{
  display:inline-block; font-size:13px; font-weight:800; letter-spacing:.3px;
  background:#f6e6c8; color:#8a6520; border-radius:999px; padding:5px 12px; margin-bottom:10px;
}
.btn{
  display:inline-block; text-decoration:none; font-weight:800; font-size:16px;
  background:linear-gradient(180deg,#ffa159,var(--accent)); color:#fff;
  border:none; border-radius:14px; padding:12px 22px;
  box-shadow:0 4px 0 var(--accent-dark);
}
.btn:active{ transform:translateY(3px); box-shadow:0 1px 0 var(--accent-dark); }
.btn.ghost{ background:none; color:var(--accent-dark); box-shadow:none; border:2px solid var(--line); }

/* ---- gallery ---- */
.shots{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; padding:14px 0 8px; }
.shots figure{ margin:0; }
.shots img{ border-radius:14px; box-shadow:0 8px 22px rgba(90,60,25,.16); }
.shots figcaption{ font-size:14px; color:var(--dim); padding-top:8px; font-weight:600; }

/* ---- generic sections ---- */
section{ padding:30px 0; }
h2.sec{ font-size:26px; letter-spacing:-.3px; margin:0 0 14px; }
.two{ display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:center; }
.feature{ background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px; }
.feature h3{ margin:0 0 6px; font-size:19px; }
.feature p{ margin:0; color:var(--dim); font-size:16px; }
.grid3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }

/* ---- long-form (privacy / support) ---- */
.doc{ background:var(--card); border:1px solid var(--line); border-radius:20px; padding:34px; margin:8px 0 40px; }
.doc h1{ font-size:32px; margin:0 0 6px; letter-spacing:-.4px; }
.doc .updated{ color:var(--dim); font-size:15px; margin:0 0 26px; }
.doc h2{ font-size:21px; margin:32px 0 10px; letter-spacing:-.2px; }
.doc h3{ font-size:17px; margin:22px 0 6px; }
.doc p,.doc li{ color:#54432c; }
.doc ul{ padding-left:22px; }
.doc li{ margin:6px 0; }
.doc table{ border-collapse:collapse; width:100%; margin:14px 0; font-size:15px; }
.doc th,.doc td{ border:1px solid var(--line); padding:9px 11px; text-align:left; vertical-align:top; }
.doc th{ background:#faeeda; }
.doc code{ background:#f6ecdb; padding:1px 6px; border-radius:5px; font-size:14px; }
.callout{ background:#f8eedd; border-left:4px solid var(--accent); border-radius:0 12px 12px 0; padding:16px 18px; margin:18px 0; }
.callout p{ margin:0; }

/* ---- footer ---- */
footer.site{ border-top:1px solid var(--line); margin-top:30px; padding:26px 0 46px; color:var(--dim); font-size:15px; }
footer.site .wrap{ display:flex; gap:20px; flex-wrap:wrap; align-items:center; }
footer.site a{ color:var(--dim); text-decoration:none; font-weight:600; }
footer.site a:hover{ color:var(--accent-dark); }
footer.site .spacer{ margin-left:auto; }

@media (max-width:720px){
  .game{ grid-template-columns:1fr; text-align:center; justify-items:center; }
  .two{ grid-template-columns:1fr; }
  .doc{ padding:24px 20px; }
  nav.site{ width:100%; margin-left:0; justify-content:center; }
}

/* The site is light-only by design: this audience reads better on warm light, and a
   half-considered dark mode is worse than none. Stated so nobody "fixes" it later. */

/* The world map is portrait (roughly 9:16). Left to fill a half-width column it becomes a
   tower next to the paragraph beside it, so cap its height and centre it instead. */
img.map{
  max-height:440px; width:auto; margin:0 auto;
  border-radius:18px; box-shadow:0 10px 28px rgba(90,60,25,.18);
}
@media (max-width:720px){ img.map{ max-height:340px; } }
