:root {
  color-scheme: light;
  --bg: #fafaf8;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --border: #e4e2dc;
  --accent: #a6392f;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  position: relative;
  font-family: "Georgia", "Apple SD Gothic Neo", serif;
  background: var(--bg);
  color: var(--fg);
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

header.site {
  border-bottom: 3px solid var(--fg);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

header.site h1 { margin: 0 0 1.5rem; font-size: 2.2rem; }

button.reload {
  position: absolute;
  top: 2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}
button.reload:active { background: var(--border); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  margin-bottom: 0.5rem;
}
.card h2 { margin: 0; font-size: 1.3rem; line-height: 1.4; }
.card h2 .num { color: var(--muted); margin-right: 0.4rem; font-variant-numeric: tabular-nums; }
.card h2 a { color: var(--fg); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.tag {
  display: inline-block;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  color: var(--muted);
}

article h1 { font-size: 2rem; margin-bottom: 0.2rem; }
article .meta { color: var(--muted); font-size: 1rem; margin-bottom: 1.5rem; }
article section { margin-bottom: 2rem; }
article ul { padding-left: 1.2rem; }

a.back {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--bg);
  background: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}
article + a.back { margin-top: 1.5rem; }
