/* PlayDate website: black background, white text and buttons, gray secondary text. */
:root {
  --bg: #000000;
  --surface: #18181b;
  --border: #27272a;
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #ffffff;
  --on-accent: #000000;
  --todo-bg: #3f2d00;
  --todo-text: #ffd666;
  --max: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 40px; height: 32px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }

/* Home */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img { width: 240px; max-width: 70%; height: auto; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.1; margin: 28px 0 12px; font-weight: 650; }
.hero p { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.badge { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; color: var(--muted); font-size: 15px; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 18px; padding: 13px 26px; font-weight: 600; text-decoration: none; }
.button:hover { color: var(--on-accent); opacity: 0.85; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Documents (policy, terms, help pages) */
.doc { padding-top: 40px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #e4e4e7; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; margin: 0 0 8px; font-size: 15px; }
.toc ol { margin: 6px 0; }
.toc a { color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.callout.urgent { border-color: #f43f5e; }

/* Placeholders still to fill in before launch */
.todo { background: var(--todo-bg); color: var(--todo-text); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.draft-banner { background: var(--todo-bg); color: var(--todo-text); text-align: center; font-size: 14px; padding: 8px 16px; }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
  table { font-size: 14px; }
  th { white-space: normal; }
  th, td { padding: 8px 6px; }
  th:first-child, td:first-child { padding-left: 0; }
}
