:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --red: #cc0000;
  --paper: #fff;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  background: var(--red);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  gap: 2rem;
}

::selection {
  background: var(--paper);
  color: var(--red);
}

.page,
.footer {
  width: min(100%, 24rem);
  margin-left: auto;
  text-align: right;
}

.name {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.about {
  margin: 2rem 0 0;
}

.about p {
  margin: 0;
}

.about p + p {
  margin-top: 1.5rem;
}

.page-links {
  margin-top: 2rem;
}

.page-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-links ul + ul {
  margin-top: 1.5rem;
}

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

.footer {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

.back-home,
.page-links a.is-current {
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.page-links[data-remember-link="ready"] a:not(.is-current) {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
