:root {
  --bg: #F5F2EC;
  --surface: #FFFFFF;
  --accent: #6B6258;
  --tint: rgba(107, 98, 88, .12);
  --text: #29231D;
  --muted: #7E7468;
  --sep: #E2DCD1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F;
    --surface: #211D17;
    --accent: #C9BFB2;
    --tint: rgba(201, 191, 178, .14);
    --text: #F1ECE4;
    --muted: #A1978A;
    --sep: #353026;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

.bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.lang { display: inline-flex; border: 1px solid var(--sep); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang a { padding: 6px 14px; min-width: 44px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--tint); color: var(--accent); }

header { text-align: center; margin-bottom: 24px; }
.mark {
  width: 64px; height: 64px; border-radius: 18px; background: var(--tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  font-size: 28px; font-weight: 700;
}
h1 { font-size: 24px; margin: 0 0 4px; font-weight: 700; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.updated { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 20px; }

.card { background: var(--surface); border: 1px solid var(--sep); border-radius: 18px; padding: 24px 24px 8px; }
.card + .card { margin-top: 12px; }
h2 { font-size: 17px; margin: 26px 0 8px; color: var(--accent); font-weight: 600; }
.card > h2:first-child { margin-top: 0; }
p, li { font-size: 15px; }
p { margin: 0 0 16px; }
ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }

.links { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.links a {
  display: block; background: var(--surface); border: 1px solid var(--sep); border-radius: 14px;
  padding: 16px; color: var(--accent); text-decoration: none; font-size: 16px; font-weight: 600; text-align: center;
}
.links a:hover { border-color: var(--accent); }
.links a small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

.button {
  display: inline-block; background: var(--accent); color: var(--surface); text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 14px; margin-bottom: 16px;
}

details { border-top: 1px solid var(--sep); padding: 14px 0; }
details:first-of-type { border-top: 0; padding-top: 0; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { text-align: center; margin-top: 28px; font-size: 13px; color: var(--muted); }
footer a { color: var(--accent); text-decoration: none; }
