/* =========================================================================
   xuyangliu.com — plain text on a white page (after jquiambao.com / Blot).
   Black text, underlined links, one narrow column. Content is trilingual
   (中文 / EN / FR): .lang blocks are shown per html[data-lang], see lang.js.
   ========================================================================= */

* { box-sizing: border-box; }

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

body {
  margin: 0 auto;
  max-width: 36em;
  padding: 3rem 1.25rem 5rem;
  background: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1 {
  font-size: 1.35em;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1em;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: #555555; }

ul {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

li { margin: 0 0 0.4em; }

time, .date {
  color: #777777;
  font-variant-numeric: tabular-nums;
  margin-right: 0.75em;
}

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2.5rem 0;
}

footer {
  margin-top: 3.5rem;
  color: #777777;
  font-size: 0.9em;
}

footer a { color: inherit; }

/* --- language switch ----------------------------------------------------- */

.lang-switch {
  text-align: right;
  font-size: 0.85em;
  color: #777777;
  margin: 0 0 2rem;
}

.lang-switch a {
  color: #777777;
  text-decoration: none;
}

.lang-switch a:hover { color: #111111; text-decoration: underline; }

html[data-lang="en"] .lang-switch a[data-lang="en"],
html[data-lang="zh"] .lang-switch a[data-lang="zh"],
html[data-lang="fr"] .lang-switch a[data-lang="fr"] {
  color: #111111;
  font-weight: 600;
}

/* only the active language's .lang blocks are visible */
html[data-lang="en"] .lang:not(.en),
html[data-lang="zh"] .lang:not(.zh),
html[data-lang="fr"] .lang:not(.fr) { display: none; }
