/* scaffold.css — tokens, reset, fonts, base typography */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/display.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/body.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* core color tokens — graphite-chalk family */
  --graphite: #2b2b2e;
  --graphite-soft: #3a3a40;
  --graphite-deep: #232327;
  --chalk: #ececee;
  --chalk-dim: #d8d8db;
  --text: #1a1a1c;
  --text-muted: #56565c;
  --rule: #c9c9cd;
  --highlight: #b87333;
  --highlight-soft: #c77b45;

  /* technical vars — free naming */
  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1180px;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow-1: 0 1px 2px rgba(35, 35, 39, 0.08);
  --shadow-2: 0 12px 30px rgba(35, 35, 39, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hdr-h: 70px;
}

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }

a { color: var(--highlight); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

.skip-to-main {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 60;
  background: var(--graphite-deep);
  color: var(--chalk);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-to-main:focus { top: 12px; text-decoration: none; }

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