/* Cover site. Deliberately ordinary: no framework, no external font, nothing
   that would make this domain stand out from any other small personal site. */

:root {
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #656d76;
  --line: #d9dee3;
  --accent: #0b66c3;
  --card: #f6f8fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.9 Tahoma, "Segoe UI", system-ui, sans-serif;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

.top {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: .3px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-inline-start: 18px;
  font-size: 15px;
}
nav a:hover { color: var(--fg); }
nav a.on { color: var(--accent); }

h1 { font-size: 27px; margin: 0 0 14px; line-height: 1.6; }
h3 { font-size: 16px; margin: 0 0 6px; }

p { margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 17px; }

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

code {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  direction: ltr;
  display: inline-block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.notes { list-style: none; padding: 0; margin: 22px 0 0; }
.notes li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes p { margin: 0; color: var(--muted); font-size: 15px; }

footer {
  margin-top: 50px;
  padding: 18px 20px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer p { margin: 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --line: #2a313a;
    --accent: #6cb0f5;
    --card: #161b22;
  }
}
