:root {
  --bg: #FFFDF9;
  --bg-soft: #FCF3E8;
  --card: #FFFFFF;
  --text: #1C1B17;
  --muted: #766F64;
  --border: #EFE6D8;
  --teal: #0F766E;
  --teal-light: #14B8A6;
  --amber: #F59E0B;
  --terracotta: #EA580C;
  --rose: #E11D48;
  --lime: #65A30D;
  --grad: linear-gradient(120deg, var(--teal), var(--amber));
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Nav — matches the landing page so the whole site feels like one product */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 0;
  margin-bottom: 12px;
  background: rgba(255,253,249,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: opacity .15s ease;
}
.brand:hover {
  color: var(--text);
  opacity: 0.75;
}
.brand img.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.play-badge:hover {
  color: var(--text);
  border-color: var(--teal);
  background: var(--bg-soft);
}
.play-badge img { display: block; width: 18px; height: 18px; flex-shrink: 0; }

nav.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 32px;
}
nav.pages a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
nav.pages a:hover {
  color: var(--teal);
  border-color: var(--teal-light);
}
nav.pages a.active {
  color: #fff;
  background: var(--teal);
  border-color: transparent;
}

h1 { font-size: clamp(22px, 6vw, 28px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
h2 {
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  margin-top: 32px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
p, li { color: #3A362E; font-size: 15px; }
a { color: var(--teal); font-weight: 600; }
a:hover { color: var(--teal-light); }
code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.table-scroll table { margin-top: 0; border: none; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; position: sticky; top: 0; background: var(--card); }
tbody tr:hover { background: var(--bg-soft); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 20px 40px -30px rgba(28,27,23,0.15);
}
footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--teal); }

@media (max-width: 380px) {
  .brand { font-size: 13.5px; }
  .brand img.logo { width: 24px; height: 24px; }
  .play-badge { padding: 6px 11px 6px 8px; font-size: 12.5px; }
}
