/* Reality Forge company site. Warm ink + ember, editorial serif headlines, system fonts only
   (no web fonts, no scripts, no third-party requests). */
:root {
  color-scheme: dark;
  --ink: #111014;
  --surface: #18161c;
  --surface-alt: #1d1a22;
  --line: #2c2832;
  --paper: #f3efe8;
  --muted: #b0a99f;
  --ember: #ff7a3d;
  --ember-soft: #ffb38a;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1120px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; min-width: 320px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--ember-soft); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(17, 16, 20, 0.94); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.01em; }
.brand-mark { width: 12px; height: 12px; background: var(--ember); transform: rotate(45deg); }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 10px 0; }
nav a:hover { color: var(--paper); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 16px; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; text-wrap: pretty; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.lede a { color: var(--paper); }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-block; padding: 12px 20px; min-height: 44px; border-radius: 8px; background: var(--ember); color: #1a0d05; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--ember-soft); color: #1a0d05; }
.button-quiet { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--surface-alt); color: var(--paper); }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: ' \2192'; }

/* Hero: copy left, fact sheet right */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 56px; align-items: end; }
.facts { border-top: 2px solid var(--ember); background: var(--surface); padding: 8px 22px; }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: none; }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 0.95rem; }

/* Bands */
.band { padding: 80px 0; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--surface); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.list-title { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 6px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.checklist li strong { color: var(--paper); }
.checklist li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; background: var(--ember); transform: rotate(45deg); }

/* Principles: numbered, two columns, typographic (no icon tiles) */
.principles { list-style: none; counter-reset: p; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.principles li { counter-increment: p; padding: 24px 0 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); color: var(--ember); font-size: 0.9rem; padding-top: 4px; }
.principles h3, .principles p { grid-column: 2; }
.principles p { color: var(--muted); }

/* Team, contact */
.person { border-top: 2px solid var(--ember); padding-top: 18px; }
.person h3 { margin-bottom: 4px; }
.role { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-soft); }
.contact h2 { margin-bottom: 8px; }
.contact p { color: var(--muted); }

.page { padding: 72px 0 96px; }
.page h2 { margin-top: 36px; font-size: 1.5rem; }
.page p { color: var(--muted); }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid, .two-col, .principles { grid-template-columns: 1fr; gap: 40px; }
  .principles { column-gap: 0; gap: 0; }
  nav { gap: 16px; }
  .band { padding: 56px 0; }
}
@media (max-width: 520px) {
  nav a[href="/#approach"] { display: none; }
}
