:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --line: #ECEBE7;
  --text: #16161A;
  --text-2: #5E5E66;
  --blue: #2552F5;
  --highlight: #FFD43B;
  --tip: #FFF6CC;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --surface: #1C1C1F;
    --line: #2B2B30;
    --text: #F2F2F0;
    --text-2: #A8A8B0;
    --blue: #7C99FF;
    --tip: #2E2A12;
  }
}

* { 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;
}

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-left: 16px;
}

nav a:hover { color: var(--blue); }

main { padding: 40px 0 56px; }

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

h1 mark, .mark {
  background: linear-gradient(transparent 55%, var(--highlight) 55%);
  color: inherit;
  padding: 0 2px;
}

h2 {
  font-size: 21px;
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}

h3 { font-size: 17px; margin: 24px 0 4px; }

p, li { color: var(--text); }
.muted { color: var(--text-2); font-size: 14px; }

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

ul { padding-left: 22px; }
li { margin: 4px 0; }

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

.tip {
  background: var(--tip);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.tip p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 15px;
  margin: 16px 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

th { font-size: 13px; color: var(--text-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.table-scroll { overflow-x: auto; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}

details p { margin-top: 0; }

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 20px;
}

@media (prefers-color-scheme: dark) {
  .button { color: #131316; }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--text-2);
  font-size: 14px;
}

footer.site a { color: var(--text-2); }

@media (max-width: 520px) {
  h1 { font-size: 27px; }
  nav a { margin-left: 12px; }
}
