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

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype-variations"),
       url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111315;
  --muted: #2d333d;
  --soft: #4a5160;
  --link: #0b4f78;
  --link-hover: #053955;
  --rule: #d9dde2;
  --paper: #ffffff;
  --wash: #f6f7f4;
  --accent: #9a7321;
}

html {
  background: var(--wash);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  width: min(100% - 2rem, 820px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.75rem) 0 2rem;
  background: var(--paper);
}

header,
main,
footer {
  width: min(100%, 710px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

header {
  padding-bottom: clamp(1.5rem, 3.5vw, 2.15rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(100%, 285px);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

main {
  font-size: 1.125rem;
}

section {
  margin: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

p {
  max-width: 39.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 400;
}

.lede {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 3vw, 1.62rem);
  line-height: 1.35;
  font-weight: 500;
}

em {
  color: var(--ink);
  font-style: italic;
}

a {
  color: var(--link);
  font-weight: 650;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 0.2rem;
}

hr {
  width: 100%;
  height: 1px;
  margin: clamp(2rem, 5vw, 3.25rem) 0;
  border: 0;
  background: var(--rule);
}

ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

footer {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
  text-align: center;
}

@media (max-width: 520px) {
  body {
    width: 100%;
    padding-top: 1.5rem;
  }

  .brand {
    width: min(100%, 230px);
  }

  main {
    font-size: 1rem;
  }

  p {
    max-width: 38rem;
  }
}
