:root {
    color-scheme: dark;
    --bg: #121212;
    --text: #e6e4e0;
    --muted: #a3a09b;
    --faint: #7d7a75;
    --rule: #2a2927;
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --hover: #ffffff;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      color-scheme: light;
      --bg: #faf9f7;
      --text: #1c1b1a;
      --muted: #6b6864;
      --faint: #8a8781;
      --rule: #e4e1dc;
      --hover: #000000;
    }
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #faf9f7;
    --text: #1c1b1a;
    --muted: #6b6864;
    --faint: #8a8781;
    --rule: #e4e1dc;
    --hover: #000000;
  }
  html { background: var(--bg); }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
    padding-inline: 20px;
    padding-block: 28px 80px;
    -webkit-font-smoothing: antialiased;
  }
  main { max-width: 520px; margin: 0 auto; }
  a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
  a:hover { color: var(--hover); }
  a:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

  .name {
    display: inline-block;
    font-size: 28px; font-weight: 700; letter-spacing: -0.01em;
    text-decoration: none; margin: 0 0 40px; line-height: 1.2;
  }
  .page p { margin: 0 0 16px; text-wrap: pretty; }
  hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

  .label {
    font-family: var(--sans); font-size: 14px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px;
  }
  .small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
  .small a { color: var(--muted); }
  .small a:hover { color: var(--text); }
  .nav-group { display: flex; flex-direction: column; gap: 24px; }

  .posts { list-style: none; margin: 0; padding: 0; }
  .posts li { border-bottom: 1px solid var(--rule); }
  .posts a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; text-decoration: none;
  }
  .posts a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
  .posts .d {
    font-family: var(--sans); font-size: 13px; color: var(--muted);
    white-space: nowrap; font-variant-numeric: tabular-nums;
  }

  .back { font-family: var(--sans); font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 28px; }
  .meta { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 8px; }
  h1 { font-size: 26px; line-height: 1.3; margin: 0 0 28px; text-wrap: balance; }
  h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 32px 0 8px; }

  .timeline { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
  .timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; }
  .timeline .y {
    font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted);
    font-variant-numeric: tabular-nums; padding-top: 4px;
  }

  .post-nav {
    display: flex; justify-content: space-between; gap: 24px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule);
  }
  .post-nav a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
  .post-nav a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
  .post-nav .next { margin-left: auto; text-align: right; }
  .post-nav .k { font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .post-nav .t { font-size: 16px; line-height: 1.4; }
  footer { margin-top: 56px; }
  @media (max-width: 420px) {
    body { font-size: 17px; }
    .posts a { flex-direction: column; gap: 2px; }
  }
