/* gitidaho.com: the Reversi app's home, support and legal pages. Palette matches the app. */

:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --text: #1c1917;
  --muted: #6b6259;
  --line: #ded7cc;
  --felt: #1d7a4c;
  --felt-dark: #14603b;
  --accent: #b45309;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --surface: #1e1b17;
    --text: #f4f1ea;
    --muted: #b3a99c;
    --line: #37322b;
    --accent: #f0a04b;
  }
}

* { box-sizing: border-box; }

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

header.site {
  background: linear-gradient(180deg, var(--felt), var(--felt-dark));
  color: #fffdf8;
  padding: 14px 20px;
}

header.site nav {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

header.site a { color: #fffdf8; text-decoration: none; font-weight: 600; }
header.site a:hover { text-decoration: underline; }
header.site .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 19px; font-weight: 800; }
header.site .brand img { width: 32px; height: 32px; border-radius: 8px; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, ul, table { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.updated { color: var(--muted); margin-bottom: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }

.hero { text-align: center; padding-top: 12px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.hero h1 { font-size: 44px; margin-top: 18px; }
.hero .tagline { font-size: 20px; color: var(--muted); margin-bottom: 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 28px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
footer.site a { color: var(--muted); }
