:root {
  --background: #fdfdfc;
  --foreground: #242421;
  --muted: #72726d;
  --line: #e6e6e2;
  --surface: #f5f5f2;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page {
  width: min(644px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 56px;
}
h1,
h2,
p {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}
h1,
h2 {
  font-weight: 500;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 124px;
}
header p {
  color: var(--muted);
  line-height: 1.25;
}
a {
  color: inherit;
  text-decoration: none;
}
header a {
  display: inline-block;
}
.muted,
.description {
  color: var(--muted);
}
main section + section {
  margin-top: 124px;
}
section > p {
  margin-top: 24px;
}
.entries {
  list-style: none;
  padding: 0;
  margin: 18px 0 -12px;
}
.entry {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  margin: 4px -16px;
  border-radius: 6px;
}
a.entry:hover,
.entry:focus-visible {
  background: var(--surface);
}
.text-link {
  text-decoration: underline;
  text-decoration-color: #c6c6bf;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-color: currentColor;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button:hover {
  color: var(--foreground);
}
html[data-theme="dark"] {
  --background: #191918;
  --foreground: #eeeee9;
  --muted: #a1a19b;
  --line: #373733;
  --surface: #222220;
  color-scheme: dark;
}
@media (max-width: 639px) {
  .page {
    padding-top: 56px;
    padding-bottom: 32px;
  }
  header {
    margin-bottom: 84px;
  }
  main section + section {
    margin-top: 72px;
  }
  .entries {
    margin-top: 20px;
  }
  .entry {
    padding: 6px 12px;
    margin: 12px -12px;
  }
}

[data-theme-toggle] {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}
[data-theme-toggle]:hover {
  background: var(--surface);
}
.theme-sun,
html[data-theme="dark"] .theme-moon {
  display: none;
}
html[data-theme="dark"] .theme-sun {
  display: block;
}
