/* Cinder — 站点样式。配色取自 App 自己的 constants/theme.ts */

:root {
  --paper:  #F5F3EC;
  --ink:    #2E3A2B;
  --soft:   #626C5C;
  --faint:  #949C8D;
  --accent: #2C4A2A;
  --line:   rgba(46,58,43,0.14);
  --sunk:   #EDEBE1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #14170F;
    --ink:    #E6E9DE;
    --soft:   #A3AB9A;
    --faint:  #767E6E;
    --accent: #A9C793;
    --line:   rgba(230,233,222,0.16);
    --sunk:   #1B1F16;
  }
}

* { box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  margin: 0;
  padding: 0 24px 88px;
}

.wrap { max-width: 680px; margin: 0 auto; }

header {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.wordmark {
  font-family: Optima, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
}

nav { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 20px; }
nav a {
  font-size: 14px;
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h1 {
  font-family: Optima, Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.updated {
  font-size: 14px;
  color: var(--faint);
  margin: 0 0 40px;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 40px 0 12px;
  line-height: 1.4;
}

h3 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; }

p { margin: 0 0 18px; }

ul { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--faint); }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

strong { font-weight: 600; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  padding: 22px 24px;
  background: var(--sunk);
  border-radius: 6px;
  margin: 0 0 34px;
}
.lede p:last-child { margin-bottom: 0; }

dl.faq { margin: 0; }
dl.faq dt { font-weight: 600; margin: 28px 0 6px; }
dl.faq dd { margin: 0; color: var(--soft); }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  margin: 0 0 22px;
}
th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  padding: 0 14px 8px 0;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th:last-child, td:last-child { padding-right: 0; }

footer {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}
footer a { color: var(--soft); }
