/* playsafetytrap.com: one small stylesheet, system fonts only (no font files, no requests to anyone else).
   Colors are taken from the game's icon: steel-blue wall, slate floor, crash-test-dummy yellow. */

:root {
  --steel: #1c5069;
  --steel-hi: #2a6a88;
  --steel-deep: #0f2c3b;
  --night: #0b1a23;
  --dummy: #feb901;
  --ink: #17222b;
  --muted: #55636e;
  --paper: #f6f4ee;
  --card: #fff;
  --line: #dcd8cc;
  --link: #0f5f8a;
  --heavy: "Arial Black", "Segoe UI Black", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

/* the yellow-and-black band of a safety sign */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--dummy) 0 14px, #1a1a1a 14px 28px);
}

/* ---------- home ---------- */

body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: radial-gradient(ellipse at 50% 28%, var(--steel-hi) 0%, var(--steel) 45%, var(--steel-deep) 100%);
  background-color: var(--steel-deep);
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 20px 52px;
}
.hero-icon {
  width: 192px;
  height: 192px;
  border-radius: 22%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
}
.hero h1 {
  font: 900 clamp(40px, 11vw, 76px)/1.05 var(--heavy);
  color: var(--dummy);
  margin: 28px 0 8px;
  text-shadow: 0 4px 0 #1a1a1a, 0 10px 22px rgba(0, 0, 0, .35);
}
.kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #cfe3ee;
}
.pitch {
  margin: 10px 0 28px;
  max-width: 24em;
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}
/* a label, not a button: there is no store link yet */
.soon {
  margin: 0;
  padding: 10px 20px;
  border: 2px dashed var(--dummy);
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  font-weight: 700;
}

/* ---------- the terms and 404 pages ---------- */

.doc-head {
  padding: 14px 16px;
  background: linear-gradient(160deg, var(--steel-hi), var(--steel) 55%, var(--steel-deep));
}
.doc-head a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dummy);
  text-decoration: none;
  font: 900 22px/1 var(--heavy);
  text-shadow: 0 2px 0 #1a1a1a;
}
.doc-head img {
  width: 48px;
  height: 48px;
  border-radius: 22%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.doc { max-width: 720px; margin: 0 auto; padding: 28px 18px 56px; }
.doc h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.15; margin: 6px 0 6px; }
.doc h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 6px; color: var(--steel); }
.doc .date { margin-top: 0; color: var(--muted); }
.doc li { margin: 5px 0; }
.doc .summary {
  margin: 22px 0;
  padding: 6px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--dummy);
  border-radius: 10px;
}
.doc .summary h2 { margin-top: 12px; }
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  background: var(--dummy);
  color: #1a1a1a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  body.doc-page { background: #0e1a21; color: #e6edf1; }
  .doc a { color: #8ccaf0; }
  .doc a.button { color: #1a1a1a; }
  .doc h2 { color: #7cc0e0; }
  .doc .date { color: #9aabb6; }
  .doc .summary { background: #15252e; border-color: #22363f; border-left-color: var(--dummy); }
}

/* ---------- footer (every page) ---------- */

footer {
  padding: 26px 16px 34px;
  background: var(--night);
  color: #c9d6de;
  text-align: center;
  font-size: 15px;
}
footer p { margin: 4px 0; }
footer a { color: var(--dummy); }
footer .small { font-size: 13px; opacity: .75; }
