:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #b8b8b8;
  --bg: #fbfaf8;
  --rule: #e7e4df;
  --accent: #2f5d50;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 12vh 1.5rem 6rem;
}

.masthead h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 3.5rem;
}

h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  margin: 2.5rem 0 1.2rem;
}

.projects ul { list-style: none; margin: 0; padding: 0; }

.project a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--accent);
  font-size: 1.3rem;
}

.project .badge {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.project.soon a { color: var(--muted); cursor: default; pointer-events: none; }

.project p {
  color: var(--muted);
  margin: 0.35rem 0 1.6rem;
  font-size: 1rem;
}

.musings .empty { color: var(--faint); font-style: italic; }

footer {
  margin-top: 4rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.masthead .signin {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.login {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.login input {
  flex: 1 1 16rem;
  font: inherit;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
}

.login button {
  font: inherit;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.login-msg {
  color: var(--muted);
  min-height: 1.5em;
  margin-top: 0.8rem;
}
