:root {
  color-scheme: light dark;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #e6e5e0;
  --accent: #2f5bea;
  --tag: #f1f0eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1b1b1a;
    --text: #ecebe6;
    --muted: #9b9a94;
    --line: #2d2d2a;
    --accent: #8aa6ff;
    --tag: #262624;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-weight: 650; color: var(--text); }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--text); }

main { padding: 56px 0 80px; }

h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }
.prose { max-width: 640px; margin-top: 28px; }
.prose p { margin: 0 0 16px; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.button:hover { text-decoration: none; border-color: var(--muted); }
.button.primary { background: var(--text); border-color: var(--text); color: var(--bg); }

section { margin-top: 56px; }
section:first-child { margin-top: 0; }
h2 { font-size: 22px; margin: 0 0 6px; }
.note { color: var(--muted); margin: 0 0 20px; max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
}
a.card:hover { text-decoration: none; border-color: var(--muted); }
.card h3 { font-size: 18px; margin: 0; }
.card p { flex: 1; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.domain { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); overflow-wrap: anywhere; }
div.card .domain { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--tag); color: var(--muted); font-size: 12px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 24px; padding-bottom: 40px; }

@media (max-width: 560px) {
  main { padding-top: 36px; }
  h1 { font-size: 32px; }
  .lead { font-size: 18px; }
}
