/* channingway.ai — shared site styles */

@font-face {
  font-family: "Berkeley Mono";
  src: url("/fonts/berkeley-mono/BerkeleyMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("/fonts/berkeley-mono/BerkeleyMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("/fonts/berkeley-mono/BerkeleyMono-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("/fonts/berkeley-mono/BerkeleyMono-Bold-Oblique.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --fg: #111;
  --muted: #555;
  --bg: #ddd9d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ddd;
    --muted: #999;
    --bg: #111;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 1.6;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

/* first h2 on the page gets more breathing room from the intro */
main > h2:first-of-type { margin-top: 2rem; }

p { margin: 0 0 1rem; }

/* utilities (single-concern, composable) */
.gray { color: var(--muted); }
.small { font-size: 0.875rem; }

ul {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 1rem 0;
}

li { margin: 0.5rem 0; }

a { color: inherit; text-decoration: underline; }

/* code spans use site monospace */
code { font-family: inherit; }
