/* One style sheet for every page of the site. */

:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #6b6a66;
  --line: #e4e1da;
  --accent: #b4441f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --fg: #ecebe7;
    --muted: #9c9a94;
    --line: #2d2c2a;
    --accent: #e7794f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

.top, main, .bottom {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top { padding-top: 2rem; }

.brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.18em;
}

main { flex: 1; padding-top: 12vh; padding-bottom: 4rem; }

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.lead { margin: 0; font-size: 1.25rem; color: var(--muted); max-width: 36rem; }

.contact { margin-top: 4rem; }
.contact p { margin: 0; font-size: 1.125rem; }

.bottom {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  /* A rule as wide as the text, not the padding. */
  background: linear-gradient(var(--line), var(--line)) 1.5rem 0 / calc(100% - 3rem) 1px no-repeat;
  font-size: 0.875rem;
  color: var(--muted);
}

.bottom p { margin: 0.15rem 0; }
