:root {
  --bg: #f6fafa;
  --surface: #ffffff;
  --text: #14201f;
  --muted: #5b6b6a;
  --border: #dde7e6;
  --accent: #00807f;
  --accent-soft: #e3f4f3;
  --warn-bg: #fff6e5;
  --warn-text: #7a4b00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1515;
    --surface: #152020;
    --text: #e6efee;
    --muted: #9fb1b0;
    --border: #253433;
    --accent: #3cc8c6;
    --accent-soft: #173130;
    --warn-bg: #2e2412;
    --warn-text: #f3cd8a;
  }
}

* { box-sizing: border-box; }

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

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

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 16px;
}
header.site .brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent); }

main { padding: 48px 0 64px; }

h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lede { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.callout {
  background: var(--warn-bg); color: var(--warn-text);
  border-radius: 12px; padding: 14px 18px; margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; 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; }
.table-scroll { overflow-x: auto; }

.app-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; text-decoration: none; color: inherit;
}
.app-card:hover { border-color: var(--accent); }
.app-card img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app-card strong { display: block; font-size: 18px; }
.app-card span { color: var(--muted); font-size: 15px; }

.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 20px; }

.links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 24px; }
.links a {
  display: block; padding: 14px 16px; border-radius: 12px;
  background: var(--accent-soft); text-decoration: none; font-weight: 600;
}

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  main { padding: 32px 0 48px; }
}
