:root {
  --bg: #eef3fa;
  --ink: #14233f;
  --muted: #55637c;
  --rule: #d2ddec;
  --accent: #2a64c8;
  --card: #f8fbff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1527;
    --ink: #e4ecf8;
    --muted: #98a7c0;
    --rule: #21314f;
    --accent: #72a6ff;
    --card: #121f39;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font: 400 17px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  /* Only real text fields get a caret or text cursor. */
  user-select: none;
  caret-color: transparent;
  cursor: default;
}
input, textarea, [contenteditable] {
  user-select: text;
  caret-color: auto;
  cursor: text;
}
a { color: inherit; cursor: pointer; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 650 22px/1 "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
  .brand img { filter: invert(0.9) hue-rotate(180deg); }
}
.top nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.top nav a:hover { color: var(--accent); }

.hero { padding: 56px 0 48px; }
.hero h1 {
  font: 650 clamp(40px, 8vw, 64px)/1.05 "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 34em;
  margin: 0;
}

.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.project {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background 0.15s;
}
.project:hover { background: var(--card); }
.project .name {
  font: 500 24px/1.2 "Fraunces", Georgia, serif;
}
.project .kind {
  justify-self: end;
  align-self: center;
  font-size: 13px;
  color: var(--muted);
}
.project .blurb { color: var(--muted); }
.project .go {
  justify-self: end;
  align-self: end;
  font-weight: 500;
  color: var(--accent);
}

.prose p { max-width: 34em; }

footer {
  margin: 72px 0 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
footer b { color: var(--ink); font-weight: 500; }

@media (max-width: 520px) {
  .project { grid-template-columns: 1fr; }
  .project .kind, .project .go { justify-self: start; }
}
