:root {
  --text: #122033;
  --muted: #4a5563;
  --bg: #f7f8fa;
  --border: #e2e6eb;
  --navy: #0b1f44;
  --link: #0b57d0;
  --link-visited: #5b3cc4;
  --focus: #0b57d0;
  --max: 40rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  padding: 0.4rem 0.75rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
}

header,
main,
footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

header {
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-name:hover,
.site-name:focus-visible {
  text-decoration: underline;
}

.site-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
}

main {
  flex: 1;
  padding-bottom: 3rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 650;
  color: var(--navy);
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--navy);
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

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

a:focus-visible,
.site-name:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.meta {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

footer {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0 0 0.35rem;
}

footer a {
  color: var(--muted);
}

@media (min-width: 640px) {
  html {
    font-size: 18px;
  }

  h1 {
    font-size: 2rem;
  }
}
