:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #1f1f1f;
  --muted: #6a665d;
  --link: #175c9f;
  --rule: #ded8cd;
  --focus: #d46b08;
  font-family: Georgia, "Times New Roman", Times, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181817;
    --text: #eeeeea;
    --muted: #aaa398;
    --link: #8ec7ff;
    --rule: #37332e;
    --focus: #ffad66;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
}

main {
  width: min(680px, calc(100% - 40px));
  margin: 56px auto;
}

header {
  margin-bottom: 52px;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.12;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.18rem;
  line-height: 1.25;
}

p {
  margin-bottom: 18px;
}

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

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

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

.site-title {
  color: var(--text);
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

[aria-current="page"] {
  color: var(--text);
}

nav ul,
.links,
.notes {
  padding-left: 0;
  list-style: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 0;
}

section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.intro {
  max-width: 34rem;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

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

.links li {
  margin-bottom: 6px;
}

.note {
  display: grid;
  grid-template-columns: 7.6rem minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  align-items: baseline;
}

time {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  html {
    font-size: 17px;
  }

  main {
    width: min(100% - 28px, 680px);
    margin: 32px auto;
  }

  header {
    margin-bottom: 38px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
