:root {
  --teal: #155e66;
  --teal-soft: #e3eff0;
  --yellow: #f0cd5d;
  --ink: #1d2a2c;
  --muted: #5a6a6d;
  --page: #f4f5f7;
  --card: #ffffff;
  --line: #dde4e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #7fc4cb;
    --teal-soft: #1c3336;
    --ink: #e8eeef;
    --muted: #a3b2b5;
    --page: #111719;
    --card: #1a2224;
    --line: #2c383b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

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

header.site {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header.site .wrap { display: flex; align-items: center; gap: 12px; }
header.site a.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px;
}
header.site img { width: 40px; height: 40px; border-radius: 10px; }
header.site nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; }

main { padding: 32px 0 48px; }

h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; color: var(--teal); }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); font-size: 15px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 120px; height: 120px; border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.hero p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 12px auto 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

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

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

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer.site a { margin-right: 14px; }

.notfound { text-align: center; padding-top: 64px; }
.notfound img { border-radius: 22px; }
.card > :first-child { margin-top: 0; }

@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin-bottom: 12px; background: var(--card); }
  table.stack td { border: 0; padding: 6px 0; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
