:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --ink: #1c1712;
  --muted: #5c5348;
  --rule: #d9cbb0;
  --gold: #8a7340;
  --soft: #fffaf2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "PMingLiU", serif;
  line-height: 1.75;
}

a { color: inherit; }

.sheet {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.brand {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand a {
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.brand strong {
  display: block;
  letter-spacing: 0.28em;
  font-weight: 600;
  font-size: 0.95rem;
}

.brand span {
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.68rem;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.langs a { color: var(--muted); text-decoration: none; }
.langs a[aria-current="true"] {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

h1 {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0.2rem 0 0.6rem;
}

.summary, .updated { color: var(--muted); margin: 0 0 0.4rem; }

.updated { font-size: 0.82rem; letter-spacing: 0.04em; }

.index {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.index a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.index strong { display: block; font-weight: 600; }
.index small { color: var(--muted); }

article { margin-top: 1.6rem; }
article h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
article p { margin: 0 0 0.75rem; }

.back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}
