:root {
  --bg: #f4f7ef;
  --card: #ffffff;
  --ink: #1f2a22;
  --muted: #5d6b60;
  --line: #dfe7d8;
  --accent: #2f8f5b;
  --water: #2b8fd6;
  --chip: #eaf4ea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a15;
    --card: #18241d;
    --ink: #e7efe8;
    --muted: #9fb0a4;
    --line: #2a3a30;
    --accent: #6fd39a;
    --water: #6cc0ff;
    --chip: #1f3127;
  }
}
:root[data-theme="dark"] {
  --bg: #111a15;
  --card: #18241d;
  --ink: #e7efe8;
  --muted: #9fb0a4;
  --line: #2a3a30;
  --accent: #6fd39a;
  --water: #6cc0ff;
  --chip: #1f3127;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }

header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
header img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
header .name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
header .tag { color: var(--muted); font-size: 14px; }

nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
nav a {
  padding: 6px 14px; border-radius: 999px; background: var(--chip);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
nav a[aria-current="page"] { background: var(--accent); color: #fff; }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.02em; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p, li { color: var(--ink); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--water); }

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

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

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

.contact {
  display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
footer { margin-top: 48px; color: var(--muted); font-size: 13px; }
