:root {
  --fg: #1a1a1a;
  --muted: #666;
  --bg: #fff;
  --accent: #0b6bcb;
  --rule: #e5e5e5;
  --notice-bg: #fff8e6;
  --notice-rule: #f0dfae;
  --notice-bar: #d19a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --bg: #151515;
    --accent: #6fb2ff;
    --rule: #2e2e2e;
    --notice-bg: #2a2415;
    --notice-rule: #4a3f22;
    --notice-bar: #c79a2a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  max-width: 38rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

header {
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

header .name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

nav { margin-top: .5rem; }

nav a {
  margin-right: 1rem;
  font-size: .95rem;
  text-decoration: none;
}

nav a:hover { text-decoration: underline; }

h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 2rem 0 .5rem;
}

p { margin: 0 0 1rem; }

.muted { color: var(--muted); }

.notice {
  margin: 0 0 2rem;
  padding: .9rem 1rem;
  border: 1px solid var(--notice-rule);
  border-left: 3px solid var(--notice-bar);
  border-radius: 3px;
  background: var(--notice-bg);
  font-size: .95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.grid figure {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
}

.grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 30rem) {
  .grid { grid-template-columns: 1fr; }
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--muted);
}

footer p { margin: 0 0 .25rem; }
