:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #5b6570;
  --rule: #e3e6ea;
  --link: #0b57d0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181b;
    --text: #e4e7eb;
    --muted: #9aa4af;
    --rule: #2c3036;
    --link: #8ab4f8;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 3rem;
}

.name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
}

/* content */

h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
}

p {
  margin: 0 0 1rem;
}

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

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

.entries > li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.entries > li:last-child {
  border-bottom: 1px solid var(--rule);
}

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

.entry-title {
  font-weight: 600;
}

.entry-date {
  flex: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.entries p {
  margin: 0.25rem 0 0;
}

.tech {
  color: var(--muted);
  font-size: 0.9rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.plain {
  margin: 0;
  padding-left: 1.25rem;
}

.plain li + li {
  margin-top: 0.25rem;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

dd {
  margin: 0;
  color: var(--muted);
}

/* footer */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer .copy {
  margin-left: auto;
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .page {
    padding-top: 2rem;
  }
  .site-footer .copy {
    margin-left: 0;
    width: 100%;
  }
}

.more {
  margin-top: 1rem;
}
