:root {
  --text: #1f1f1f;
  --muted: #8a8a8a;
  --rule: #ececec;
  --accent: #3a7bd5;
  --bg: #fafafa;
}

* { box-sizing: border-box; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-wrap: break-word;
  max-width: 34rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 8rem;
  color: var(--text);
  background: var(--bg);
}

p { margin: 0 0 1.1em; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

a.underline {
  text-decoration: underline;
  text-decoration-color: rgba(58, 123, 213, .35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h1 { font-size: 1.15rem; margin: 0 0 0.75em; }
h2 { font-size: 1.15rem; margin: 0 0 0.75em; }
h3, h4, h5, h6 { font-size: 1rem; margin: 0 0 0.5em; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

#logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

#logo:hover { color: var(--accent); }

nav { display: flex; gap: 1.25rem; }

a.menu {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

a.menu:hover,
a.menu.active { color: var(--text); }

.entry p strong {
  font-weight: 600;
  color: var(--text);
}

.entry p + p { margin-top: 0; }

small, .caption { color: var(--muted); font-weight: 400; }

.social {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.social a {
  color: var(--muted);
  font-weight: 500;
  transition: color .15s ease;
}

.social a:hover { color: var(--accent); }

blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

img { vertical-align: middle; max-width: 100%; height: auto; border-radius: 4px; }

::selection { background: rgba(58, 123, 213, .18); }

@media (max-width: 480px) {
  body {
    font-size: 16px;
    padding: 2.5rem 1.25rem 5rem;
  }
  header { gap: 1rem; margin-bottom: 1.5rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #8a8a8a;
    --rule: #2a2a2a;
    --accent: #6ea8e0;
    --bg: #141414;
  }
  a.underline { text-decoration-color: rgba(110, 168, 224, .4); }
}
