/* lonfeng.com — one stylesheet, no build step. */

:root {
  --bg:      #fffdfa;
  --ink:     #16130f;
  --muted:   #6b645c;
  --rule:    #e6e0d7;
  --panel:   #f7f3ec;
  --accent:  #8a5636;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #100f0d;
    --ink:    #eae6e0;
    --muted:  #968e85;
    --rule:   #272320;
    --panel:  #191715;
    --accent: #cf9d78;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- masthead ---- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem 0 0;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
}

.mark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover,
.masthead nav a[aria-current="page"] { color: var(--ink); }

/* ---- type ---- */

h1, h2, h3 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.6rem);
  line-height: 1.15;
  margin: 3.5rem 0 1.5rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.0625rem;
  font-family: inherit;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 1.25rem; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 600; }

/* ---- sections ---- */

section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule);
}

section:first-of-type { border-top: 0; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

ul { padding-left: 1.1rem; margin: 0 0 1.25rem; }
li { margin-bottom: 0.5rem; }

.plain { list-style: none; padding-left: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 0.75rem;
}

.facts { margin: 0; }
.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.facts div:first-child { border-top: 0; }
.facts dt { flex: 0 0 11rem; color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; flex: 1 1 14rem; }

.stack > * + * { margin-top: 1.75rem; }

/* ---- footer ---- */

.colophon {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  padding: 2rem 0 4rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.colophon p { max-width: 38rem; margin: 0 0 0.75rem; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
