:root {
  --base: #ffffff;
  --contrast: #000000;
  --primary: #9dff20;
  --secondary: #345c00;
  --tertiary: #f6f6f6;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --content-size: 650px;
  --wide-size: 1200px;
  --space-30: clamp(1.5rem, 5vw, 2rem);
  --space-40: clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem);
  --space-50: clamp(2.5rem, 8vw, 4.5rem);
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--base);
  color: var(--contrast);
  font-family: var(--font-system);
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
  line-height: 1.6;
}

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

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

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

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--tertiary);
  color: var(--contrast);
  text-decoration: none;
  transform: translateY(-200%);
}

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

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-30);
  width: min(100%, var(--wide-size));
  margin: 0 auto;
  padding: var(--space-50) var(--gutter) var(--space-40);
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.227), 1rem);
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.content {
  width: min(100%, var(--content-size));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1 {
  margin: 1.25rem 0 var(--space-40);
  font-weight: 400;
  font-size: clamp(2.032rem, 2.032rem + ((1vw - 0.2rem) * 2.896), 3.625rem);
  line-height: 1.2;
}

p {
  margin-block: 0.1rem 0;
}

.content a {
  color: var(--secondary);
}

.spacer {
  height: 50px;
}

hr {
  width: 100px;
  margin: 0;
  border: 0;
  border-top: 2px solid currentColor;
}

.site-footer {
  width: min(100%, var(--content-size));
  margin: var(--space-50) auto 0;
  padding: var(--space-30) var(--gutter) var(--space-50);
  border-top: 1px solid #dcdcdc;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.227), 1rem);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
