/*
 * 窓辺のメモ
 * 個人用の作業ログ。
 */

:root {
  --fg: #23272f;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f766e;
  --bg: #fcfcfb;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 22px 96px;
}

header.site {
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

header.site h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header.site h1 a {
  color: var(--fg);
  text-decoration: none;
}

header.site p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

nav.site {
  margin-top: 12px;
  font-size: 13px;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 18px;
}

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

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 8px;
}

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

ul.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.posts li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

ul.posts li:first-child { padding-top: 0; }

ul.posts time {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

ul.posts .summary {
  margin: 4px 0 0;
  font-size: 14px;
  color: #4b5563;
}

ul.posts strong {
  font-weight: 600;
}

ul.posts a { text-decoration: none; color: inherit; }
ul.posts a:hover strong { color: var(--accent); }

article p { margin: 0 0 20px; }

article p.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

pre {
  background: #f4f4f2;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

pre code { font-size: 13px; }

blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

footer.site {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer.site a { color: var(--muted); }
