/* ThreeTap — shared styling for threetap.com.
   One stylesheet for every page; the site is small enough that splitting it
   would cost more requests than it saves bytes. */

/* Dark, always. Not a media query: browsers report "light" whenever the OS is
   in light mode and effectively never report "no preference", so gating on
   prefers-color-scheme hands the light palette to most visitors, which is the
   opposite of the intent. The site is dark because the games are dark. */
:root {
  --bg: #100f13;
  --surface: #1a181f;
  --line: #302c39;
  --ink: #f3efe9;
  --muted: #a09889;
  --accent: #e8955f;
  --accent-deep: #f5ab7c;
  --on-accent: #16121a;
  --glow: rgba(232, 149, 95, 0.13);
  --ok: #6cc98d;
  --err: #f0938a;
}

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

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

body {
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 80% 420px at 50% -140px,
    var(--glow),
    transparent 70%
  );
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header ---- */

header.site {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 48px;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--accent);
}

.brand-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.brand-nav a {
  color: var(--muted);
  text-decoration: none;
}

.brand-nav a:hover {
  color: var(--accent);
}

/* ---- hero (home) ---- */

.hero {
  padding: 8px 0 44px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 30em;
}

/* ---- game card ---- */

.game {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.game:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--glow);
}

.game .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.game h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

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

.game-links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.game-links a {
  color: var(--accent);
  text-decoration: none;
}

.game-links a:hover {
  text-decoration: underline;
}

/* ---- legal / prose pages ---- */

.page-title {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}

article h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}

article p,
article li {
  color: var(--ink);
  margin-bottom: 14px;
}

article ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

article li {
  margin-bottom: 8px;
}

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

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 8px 0 20px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---- form ---- */

form {
  margin-top: 8px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming on focus */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover:not(:disabled) {
  background: var(--accent-deep);
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  display: none;
}

.status.ok {
  display: block;
  background: rgba(46, 125, 74, 0.12);
  border: 1px solid rgba(46, 125, 74, 0.4);
  color: var(--ok);
}

.status.err {
  display: block;
  background: rgba(180, 35, 24, 0.12);
  border: 1px solid rgba(180, 35, 24, 0.38);
  color: var(--err);
}

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--accent);
}

footer.site nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
