:root {
  --paper: #E7E7DF;
  --ink: #262924;
  --muted: #5C5F58;
  --green: #3C4A1F;
  --spark: #1EC81E;
  --line: #CFCFC5;
  --serif: "Fraunces", serif;
  --sans: "Instrument Sans", -apple-system, sans-serif;
  --body: "PT Serif", "Lucida Bright", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 32px 0 0;
}
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 18px;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.wordmark .cn { font-size: 15px; color: var(--muted); margin-left: 6px; }
nav a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  margin-left: 20px; letter-spacing: 0.02em;
}
nav a:hover, nav a[aria-current="page"] { color: var(--green); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--spark); padding-bottom: 2px; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin-bottom: 14px;
}
.eyebrow .cn {
  letter-spacing: 0.3em; margin-left: 8px; font-weight: 400;
  color: var(--muted); text-transform: none;
}

h1 {
  font-family: var(--serif); font-weight: 500; font-size: 40px;
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 20px;
}
h2 {
  font-family: var(--serif); font-weight: 500; font-size: 24px;
  line-height: 1.3; margin-bottom: 10px;
}

.hero { padding: 56px 0 16px; }
.hero p.lede { font-size: 20px; color: var(--ink); max-width: 720px; }
.hero p.sub { font-size: 15px; color: var(--muted); margin-top: 16px; }

main { padding-bottom: 40px; }
section { padding: 36px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

p + p { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

a { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--spark); transition: background 0.15s, border-color 0.15s; }
a:hover { background: rgba(30, 200, 30, 0.14); }
a:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
header a, .feed a.item { border-bottom: none; }

.feed { list-style: none; }
.feed li { border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: none; }
.feed a.item {
  display: grid; grid-template-columns: 92px 64px 1fr;
  gap: 16px; align-items: baseline; padding: 16px 0; color: var(--ink);
}
.feed a.item:hover .title { color: var(--green); }
.feed .date { font-size: 13px; color: var(--muted); }
.feed .tag {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); font-weight: 600;
}
.feed .title { font-size: 18px; line-height: 1.45; }

.series-list { list-style: none; margin-top: 18px; }
.series-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.series-list li:last-child { border-bottom: none; }
.series-list .n {
  font-family: var(--serif); color: var(--muted); font-size: 14px;
  min-width: 18px;
}
.series-list .soon { color: var(--muted); }
.series-list .soon-tag {
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-left: auto; white-space: nowrap;
}

.stamp {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
  border: 1px solid var(--green); border-radius: 3px;
  padding: 4px 10px; margin-bottom: 24px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px; display: flex; justify-content: space-between;
  align-items: baseline; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: var(--muted);
}
footer .links a { margin-right: 18px; }

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  .hero { padding: 56px 0 12px; }
  .feed a.item { grid-template-columns: 78px 1fr; }
  .feed .tag { display: none; }
  nav a { margin-left: 14px; }
}

.about { display: grid; grid-template-columns: 400px 1fr; gap: 36px; align-items: stretch; }
.portrait {
  width: 100%; height: 100%; min-height: 520px; object-fit: cover;
  border-radius: 6px; background: var(--line);
}
.langs { font-size: 13px; letter-spacing: 0.08em; line-height: 2; color: var(--muted); }
@media (max-width: 560px) {
  .about { grid-template-columns: 1fr; }
  .portrait { width: 100%; max-width: 360px; height: auto; }
}

nav a, .eyebrow, .feed .tag, .feed .date, .stamp, .langs, footer, .series-list .soon-tag { font-family: var(--sans); }

/* --- brand presence layer --- */

/* signal-green brand bar across the very top */
body { border-top: 5px solid var(--spark); }

/* text selection in brand green */
::selection { background: var(--spark); color: var(--ink); }

/* green wedge marker before eyebrows, echoing the logo corner */
.eyebrow::before {
  content: ""; display: inline-block; width: 9px; height: 9px;
  background: var(--spark); margin-right: 9px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* logo mark in the header, pure CSS so HTML files stay untouched */
.wordmark::before {
  content: ""; display: inline-block; width: 17px; height: 17px;
  margin-right: 10px; vertical-align: -2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23262924'/%3E%3Ccircle cx='50' cy='50' r='50' fill='%23E6E6DE'/%3E%3Cpath d='M50 0 A50 50 0 0 1 100 50 L100 0 Z' fill='%231EC81E'/%3E%3C/svg%3E");
  background-size: contain;
}

/* series numbers in signal green */
.series-list .n { color: var(--spark); font-weight: 600; }

/* feed hover: green edge slide-in */
.feed a.item { transition: padding-left 0.15s, box-shadow 0.15s; }
.feed a.item:hover { box-shadow: inset 3px 0 0 var(--spark); padding-left: 12px; }
