:root {
  color-scheme: light;
  --text: #222;
  --surface: #fff;
  --border: #ddd;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: system-ui, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.35;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 5vw;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

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

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a,
.site-title {
  display: inline-block;
  padding-block: 0.25rem;
}

.section {
  max-width: 70rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) 5vw;
}

.section p {
  max-width: 65ch;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 5vw;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 40rem) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none !important;
    animation: none !important;
  }
}
