/* DailyDiff site — black & white editorial, one touch of gold. */
:root {
  --ink: #111;
  --muted: #666;
  --hairline: #e6e6e6;
  --paper: #fff;
  --gold: #c8a24b;
  --maxw: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Language visibility (data-lang set on <html>) */
[data-lang="en"] .lang-zh { display: none; }
[data-lang="zh"] .lang-en { display: none; }

/* Header */
header.site {
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot { color: var(--gold); }

.langtoggle button {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 6px;
}
.langtoggle button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* Content */
main .wrap { padding-top: 40px; padding-bottom: 64px; }

h1 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 6px;
}
h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 21px;
  margin: 34px 0 10px;
}
.updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.rule { height: 2px; width: 44px; background: var(--gold); border: 0; margin: 18px 0 28px; }

p, li { color: #222; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold); }
ul, ol { padding-left: 20px; }
li { margin: 6px 0; }
em { font-style: italic; color: var(--muted); }

.note {
  background: #faf8f2;
  border: 1px solid #efe7d2;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #5a5022;
  margin: 24px 0;
}

/* Landing hero */
.hero { text-align: center; padding: 96px 0 80px; }
.hero .logo {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 700; font-size: 40px; margin: 0 0 4px;
}
.hero .logo .dot { color: var(--gold); }
.hero .tag { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.hero .cta { color: var(--muted); font-size: 14px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 28px;
}
footer.site a { color: var(--muted); }
footer.site nav a { margin-left: 16px; }
footer.site nav a:first-child { margin-left: 0; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; }
  footer.site nav a { margin-left: 0; margin-right: 16px; }
}
