:root {
  color-scheme: light;
  --cream: #f8f4e9;
  --cream-deep: #eee7d6;
  --ink: #18181a;
  --coral: #ff7465;
  --yellow: #f4d56a;
  --sage: #6fa47b;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 24, 26, .035) 1px, transparent 1px),
    linear-gradient(rgba(24, 24, 26, .035) 1px, transparent 1px),
    var(--cream);
  background-size: 24px 24px;
  font-family: ui-monospace, "Cascadia Mono", "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration-thickness: 2px; }
a:hover, a:focus-visible { background: var(--yellow); }

.shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 24px 0 64px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }

main {
  padding: clamp(24px, 5vw, 48px);
  border: 3px solid var(--ink);
  background: var(--cream-deep);
  box-shadow: 8px 8px 0 var(--ink);
}

h1, h2 { line-height: 1.15; letter-spacing: -.03em; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 8vw, 3.6rem); }
h2 { margin: 36px 0 8px; font-size: 1.25rem; }
p, li { max-width: 68ch; }
.updated { margin: 0 0 32px; font-weight: 700; }
.notice { padding: 16px; border: 2px solid var(--ink); background: var(--yellow); }
footer { padding-top: 32px; text-align: center; font-size: .875rem; }

@media (max-width: 520px) {
  .topbar { align-items: flex-start; }
  .topbar nav { flex-direction: column; gap: 6px; text-align: right; }
  main { padding: 24px 18px; box-shadow: 5px 5px 0 var(--ink); }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: background-color 120ms ease-out; }
}
