@import url('https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica:ital@0;1&display=swap');

:root {
  --bg: #fff;
  --ink: #000;
  --muted: #666;
  --strong: #333;
  --line: #ccc;
  --link: #333;
  --max: 700px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --ink: #e8e8e8;
    --muted: #999;
    --strong: #d4d4d4;
    --line: #444;
    --link: #ddd;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IM Fell DW Pica", "Apple Garamond", Baskerville,
    "Libre Baskerville", "Droid Serif", "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.55;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

a:hover { border-bottom-color: var(--link); }

header.site {
  padding: 24px 0 0;
}

header.site .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand {
  font-variant: small-caps;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: none; /* also clears the global `a` border-bottom */
  padding: 5px 0;
}

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

nav.site {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

nav.site a {
  font-variant: small-caps;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 5px 14px;
}

nav.site a:hover { border-color: var(--ink); }

main.wrap {
  padding-top: 36px;
  padding-bottom: 96px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  font-variant: small-caps;
  line-height: 1.2;
  margin: 0 0 24px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant: small-caps;
  margin: 1.8em 0 0.5em;
}

p { margin: 0 0 1em; }

/* gwern indents successive paragraphs rather than spacing them */
p + p {
  margin-top: -1em;
  text-indent: 2em;
}

.label {
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.lede strong { color: var(--strong); }

/* overrides the p + p indent/negative-margin rule above */
.contact {
  color: var(--muted);
  text-align: center;
  text-indent: 0;
  margin-top: 2.5em;
}

.contact a { color: inherit; }

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