/* CrewChiefSteve — career archive (paper mode)
   Shared brand system with crewchiefsteve.ai: one system, two modes.
   .ai is the dark garage (ink); .com is the light archive (paper).
   Tokens per the July 2026 reimagining brief §2.2/§2.3. */

:root {
  --ink: #0e0f11;
  --paper: #f5f3ee;
  --orange: #f26a1b;
  --trace-green: #8be04a;
  --steel: #8a8f98;
  --cage-white: #e8e6e1;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: rgba(242, 106, 27, 0.3);
}

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

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

a {
  color: var(--ink);
  text-decoration-color: rgba(242, 106, 27, 0.6);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--orange);
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header — pinned cross-link to the company site (§2.4). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(14, 15, 17, 0.12);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark span {
  color: var(--orange);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--orange);
}

.header-crosslink {
  width: 100%;
  padding: 0.35rem 0 0.6rem;
  border-top: 1px solid rgba(14, 15, 17, 0.08);
}

/* Mono is for facts: dates, numbers, captions, the cross-link (§2.3). */
.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
}

.mono a {
  color: var(--ink);
}

.mono .arrow {
  color: var(--orange);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Cover */
.cover {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(14, 15, 17, 0.12);
}

.cover h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.cover .lede {
  max-width: 44rem;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: #3a3d42;
}

.cover .stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.cover .stats div {
  font-family: var(--font-mono);
}

.cover .stats .n {
  display: block;
  font-size: 1.6rem;
  color: var(--orange);
}

.cover .stats .l {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Chapters — chronological; order carries information (§4.2). */
.chapter {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(14, 15, 17, 0.12);
}

.chapter .marker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.chapter h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
}

.chapter .body {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 56rem) {
  .chapter .body {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.chapter .prose p + p {
  margin-top: 1rem;
}

.chapter .prose .fact {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.chapter figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-top: 0.5rem;
}

.chapter figure img {
  border: 1px solid rgba(14, 15, 17, 0.15);
}

.chapter figure + figure {
  margin-top: 1.5rem;
}

/* Editor's note — visible draft marker; must be resolved before publish. */
.editors-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  border-left: 3px solid var(--orange);
  padding: 0.5rem 0 0.5rem 1rem;
  margin-top: 1rem;
}

/* Photo archive index */
.archive {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(14, 15, 17, 0.12);
}

.archive h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
}

.archive ul {
  list-style: none;
  display: grid;
  gap: 0.5rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  margin-top: 2rem;
}

.archive a {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer — shared markup with crewchiefsteve.ai (§2.1). */
.site-footer {
  padding: 2.5rem 0 3rem;
}

.site-footer p + p {
  margin-top: 0.75rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer .links a {
  color: var(--steel);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--ink);
}

.site-footer .fine {
  font-size: 0.75rem;
  color: var(--steel);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
