:root {
  --bg: #fbfaf7;
  --fg: #26231f;
  --muted: #77716a;
  --line: #e6e1d8;
  --accent: #2f6f62;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --fg: #e9e5de;
    --muted: #9c958b;
    --line: #34312c;
    --accent: #7cc0b0;
  }
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

header.site a.name {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

header.site nav a:hover, a:hover { color: var(--accent); }

a { color: var(--accent); }

h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 0.4rem; }
h2 { font-size: 1.15rem; margin: 2.6rem 0 0.8rem; }

.en { color: var(--muted); font-size: 0.9rem; }

ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { display: flex; gap: 1.2rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
ul.posts time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6.2rem; font-size: 0.9rem; }

article time { color: var(--muted); font-size: 0.9rem; }

pre {
  background: rgba(127, 127, 127, 0.1);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; }

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
