:root {
  --fg: #111;
  --bg: #fff;
  --muted: #888;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eee;
    --bg: #111;
    --muted: #777;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  font: 16px/1.6 ui-monospace, Menlo, Consolas, monospace;
  color: var(--fg);
  background: var(--bg);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.center {
  text-align: center;
}

h1 { font-size: 1rem; font-weight: normal; }

h2 {
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
  margin-bottom: 1rem;
}

nav { margin: 1rem 0 4rem; }
nav a { margin-right: 1rem; }

section { margin-bottom: 4rem; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

ul { list-style: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

pre {
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.3;
  overflow-x: auto;
}

#photo img {
  width: 100%;
  height: auto;
  display: block;
}
