:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --ink: #2c2b27;
  --muted: #6f6d66;
  --faint: #8a867c;
  --moss: #3f4a3d;
  --rule: color-mix(in oklab, var(--ink) 12%, transparent);
  --serif: "Newsreader", "Source Han Serif SC", "Songti SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow:
    0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent),
    0 1px 2px -1px color-mix(in oklab, var(--ink) 6%, transparent),
    0 8px 24px -16px color-mix(in oklab, var(--ink) 18%, transparent);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 500;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.wrap { max-width: 42rem; margin: 0 auto; }
header, main, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
header { padding-top: 1.5rem; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}
.brand { font-family: var(--serif); font-size: 1.125rem; }
.links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem; font-size: 0.875rem; color: var(--muted); }
.links a { padding: 0.5rem 0.75rem; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
main { padding-top: 2.5rem; padding-bottom: 6rem; }
footer { padding-bottom: 2.5rem; }
.foot {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--faint);
}
.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.hero { display: flex; align-items: end; gap: 1rem; margin-top: 2rem; }
.avatar {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  box-shadow: var(--shadow); outline: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  outline-offset: -1px;
}
.kicker { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--faint); margin: 0; }
.lede { margin-top: 1.5rem; max-width: 36rem; font-size: 1.05rem; color: var(--muted); }
.list { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); }
.list li:last-child { border-bottom: 0; }
.row { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1rem 0; }
.row h2, .row .title { font-family: var(--serif); font-size: 1.125rem; margin: 0; font-weight: 500; }
time { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose { margin-top: 2.5rem; font-size: 1.05rem; line-height: 1.7; }
.prose p { margin: 0 0 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.muted { color: var(--muted); }
.block { margin-top: 2.5rem; }
.block h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.meta { margin-top: 2.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.875rem; }
.meta div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.meta div:last-child { border-bottom: 0; }
.cv-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}
.cv-item:last-child { border-bottom: 0; }
.cv-when {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.cv-item h3 { font-size: 1.125rem; margin: 0; font-weight: 500; }
.cv-item .org { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--muted); }
.cv-item .note { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); }
.cv-item.is-todo, .cv-item.is-todo h3 { color: var(--faint); }
.bullets { margin: 1rem 0 0; padding-left: 1.25rem; font-size: 1.05rem; }
.bullets li { margin: 0.35rem 0; }
.bullets li::marker { color: var(--faint); }
.guide pre, .guide code {
  font-family: var(--mono);
  font-size: 0.8rem;
}
.guide pre {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
  white-space: pre-wrap;
}
.guide h2 { margin-top: 2.25rem; }
.guide .callout {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  header, main, footer { padding-left: 2rem; padding-right: 2rem; }
  .cv-item {
    grid-template-columns: 7.5rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .cv-when { padding-top: 0.3rem; }
}
@media print {
  header, footer, .links { display: none !important; }
  body { background: white; }
  main { padding: 0; }
}
