/* Shared by every page: tokens, base, header, buttons, footer. */

:root {
  --paper: #eceef0;
  --paper-raised: #f6f7f8;
  --ink: #1b232b;
  --graphite: #5c6670;
  --rule: #c5cbd1;
  --signal: #f26000;
  --signal-ink: #ffffff;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b21;
    --paper-raised: #1c242c;
    --ink: #e3e7eb;
    --graphite: #9aa4ae;
    --rule: #2f3943;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Wide, heavy Archivo is the display voice */
.display {
  font-stretch: 110%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0;
}

.section { padding: clamp(4rem, 10vw, 7.5rem) 0; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 34em;
  margin: 0;
}

.muted { color: var(--graphite); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.monogram {
  font-stretch: 110%;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: transparent; color: var(--ink); }

.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: var(--paper); }

.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--graphite);
}
