/* leontraveller.com — Design A "Archive"
   One column, quiet typography, pine-green accent. Plain CSS, no build step. */

:root {
  --paper: #ffffff;
  --ink: #1b1f1d;
  --ink-soft: #38413c;
  --muted: #6a736e;
  --rule: #e4e8e5;
  --accent: #2f5d46;
  --tint: #f1f5f2;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131715;
    --ink: #e5eae6;
    --ink-soft: #c3cbc6;
    --muted: #8e9993;
    --rule: #26302b;
    --accent: #7fbf9c;
    --tint: #1a211d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-top: 28px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .02em; text-decoration: none; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 8px; letter-spacing: .04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Page */
main.wrap { padding-top: 44px; padding-bottom: 64px; }
h1 { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.25; margin: 0 0 10px; text-wrap: balance; }
.intro { color: var(--muted); margin: 0 0 28px; }

/* Twitter list */
.tools { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 8px; }
.tools input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 4px 0; outline: none; }
.tools input::placeholder { color: var(--muted); }
.tools input::-webkit-search-cancel-button { cursor: pointer; }
.tools output { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.year { display: flex; justify-content: space-between; margin: 0; padding: 28px 0 6px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; color: var(--accent); }
.entry { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.entry time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry .title { font-size: 16px; line-height: 1.55; text-decoration: none; }
.entry a.title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry .cat { all: unset; cursor: pointer; font-size: 12px; color: var(--muted); white-space: nowrap; }
.entry .cat:hover { color: var(--accent); }
.parts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.parts a { font-size: 14px; color: var(--accent); text-decoration: none; }
.parts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.parts .num { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 8px; }
.parts .more { font-size: 13px; color: var(--muted); font-style: italic; }
.empty { color: var(--muted); padding: 24px 0; }

/* Plants */
.plants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 28px; }
.plants figure { margin: 0; }
.plants a { display: block; overflow: hidden; background: var(--tint); }
.plants img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.plants a:hover img { transform: scale(1.03); }
.plants figcaption { font-family: var(--serif); font-size: 14.5px; margin-top: 8px; line-height: 1.4; }
.plants figcaption span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Articles (Books) */
.post { border-top: 1px solid var(--rule); padding-top: 24px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post h2 { font-family: var(--serif); font-size: 24px; line-height: 1.35; margin: 4px 0 16px; text-wrap: balance; }
.post p, .post li { color: var(--ink-soft); line-height: 1.9; }
.post figure { margin: 8px 0 20px; }
.post figure img { width: 160px; }
.post blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.post blockquote p { margin: 0 0 14px; }
.post ol { padding-left: 1.4em; }
.section-title { display: flex; justify-content: space-between; margin: 48px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; color: var(--accent); }

/* About */
.about p { font-size: 17px; line-height: 1.9; max-width: 60ch; }
.about .note { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.about a { color: var(--accent); }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .site-header .wrap { padding-top: 18px; }
  .site-nav { width: 100%; gap: 4px 18px; }
  main.wrap { padding-top: 28px; }
  h1 { font-size: 26px; }
  .entry { grid-template-columns: 48px minmax(0, 1fr); }
  .entry .cat { display: none; }
  .plants { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
