/*
  One page, one stylesheet, no build.

  The font is declared with a WEIGHT RANGE because Archivo on Google Fonts is a variable
  font — a single file covers 100 to 900, so asking for two files would download the same
  bytes twice. `font-display: swap` means the text is readable before the font arrives,
  which on a page that is entirely text is the whole game.
*/
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #131313;
  --muted: #5c5c57;
  --line: #e4e2dc;
  --ground: #fbfbf9;
  /* The one warm note, shared with MyScoutPage's clay. Links only. */
  --accent: #8f2f0a;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
}

/* Sentence case throughout — no text-transform anywhere in this file, by choice. */
h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

section,
.intro {
  margin-top: 2.75rem;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.products li + li {
  margin-top: 1.75rem;
}

.products h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.products p {
  margin: 0;
  color: var(--muted);
}

footer {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  color: var(--muted);
  font-size: 0.9375rem;
}

/*
  The rule is drawn by a pseudo-element inset to the padding, not by a border on the
  footer itself. A border is painted at the border box, so once the footer became a
  sibling of `main` with its own horizontal padding, a border-top ran 3rem wider than
  the text above it. This tracks the content width instead.
*/
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  border-top: 1px solid var(--line);
}

footer address {
  font-style: normal;
  line-height: 1.55;
}

.contact {
  margin: 1rem 0 0;
}

@media (max-width: 30rem) {
  main {
    padding: 2.5rem 1.25rem 0;
  }

  footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  footer::before {
    left: 1.25rem;
    right: 1.25rem;
  }
}
