/* Colors and fonts. Change --accent to recolor every link. */
:root {
  --bg: #fcfbf9;
  --text: #1f2328;
  --muted: #59636e;
  --rule: #e7e4df;
  --accent: #1f5f8b;
  --accent-hover: #15445f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --text: #e6e6e3;
    --muted: #a3a9b0;
    --rule: #2a2e33;
    --accent: #7fb4e0;
    --accent-hover: #a9cdec;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 1.25rem 3rem;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.15s, text-decoration-color 0.15s;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Intro */

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.bio {
  margin: 1.5rem 0 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

/* Sections */

section {
  margin-top: 4rem;
}

h2 {
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entries,
.updates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entries li + li {
  margin-top: 1.75rem;
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.entry-head a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: transparent;
}

.entry-head a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.entries p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

.year,
.updates time {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.updates li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
}

.updates li + li {
  margin-top: 0.75rem;
}

footer {
  margin-top: 4.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  .updates li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
