/* =================================================================
   KYLE CALZARETTA — Executive Intelligence Console
   Dark · precision grid · one amber signal · grotesk + mono
   ================================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* surfaces — cool near-black */
  --bg: #0a0b0d;
  --bg-1: #0f1115;
  --bg-2: #14171c;
  --bg-deep: #070809;

  /* lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  /* text — cool soft white */
  --text: #e9ebee;
  --text-2: #9ba1a9;
  --text-3: #61676f;

  /* signal — warm amber */
  --accent: #f4b740;
  --accent-hi: #ffcd63;
  --accent-dim: rgba(244, 183, 64, 0.14);
  --accent-line: rgba(244, 183, 64, 0.4);
  --accent-glow: rgba(244, 183, 64, 0.22);

  /* type */
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* metrics */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--accent);
  color: #0a0b0d;
}

/* ---------- ATMOSPHERE / TEXTURE ---------- */
.texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* precision grid */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 0%,
    transparent 75%
  );
  opacity: 0.5;
}
body::before {
  /* amber ember glow, top */
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 70vh;
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow),
    transparent 62%
  );
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  filter: blur(20px);
}
body::after {
  /* fine grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.rail,
.colophon {
  position: relative;
  z-index: 2;
}

/* ---------- SHARED ---------- */
.mono {
  font-family: var(--mono);
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- TOP RAIL ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.rail.is-stuck {
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.rail__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rail__glyph {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 3px 6px;
  line-height: 1;
}
.rail__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.rail__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}
.rail__nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.rail__nav a:hover {
  color: var(--text);
}
.rail__cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 7px 14px;
}
.rail__cta:hover {
  background: var(--accent-dim);
}
@media (max-width: 640px) {
  .rail__name {
    display: none;
  }
  .rail__nav a:not(.rail__cta) {
    display: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn span {
  transition: transform 0.3s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--solid {
  background: var(--accent);
  color: #0a0b0d;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--solid:hover {
  box-shadow: 0 14px 40px -12px var(--accent-glow);
}
.btn--solid:hover span {
  transform: translateX(4px);
}
.btn--ghost {
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--line-3);
  background: var(--bg-1);
}

/* ===============================================================
   HERO
   =============================================================== */
.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(140px, 22vh, 220px) var(--pad) clamp(60px, 10vh, 110px);
}
.dossier {
  font-family: var(--mono);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.dossier__sep {
  color: var(--accent);
}
.dossier__k {
  white-space: nowrap;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(46px, 11vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin-bottom: clamp(34px, 6vh, 56px);
}
.hero__title .line {
  display: block;
}
.line--accent {
  color: var(--accent);
  position: relative;
}
.cursor {
  display: inline-block;
  width: 0.46em;
  height: 0.82em;
  margin-left: 0.08em;
  background: var(--accent);
  transform: translateY(0.04em);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.hero__body {
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.hero__lede {
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.55;
  color: var(--text-2);
}
.hero__lede strong {
  color: var(--text);
  font-weight: 600;
}
.hero__edge {
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--text);
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.hero__edge strong {
  font-weight: 700;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

/* metric readout */
/* category readout — positioning over old-role numbers */
.readout {
  margin-top: clamp(54px, 9vh, 86px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.readout__cell {
  padding: 22px clamp(14px, 2vw, 26px) 24px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.readout__cell dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.readout__cell dd {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--text);
}
.readout__cell--key dd {
  color: var(--accent);
}
@media (max-width: 720px) {
  .readout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* demoted proof line — credibility, not headline */
.proofline {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.04em;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  line-height: 1.6;
}
.proofline__label {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 8px;
}
.proofline__div {
  color: var(--accent);
}

/* ===============================================================
   SECTIONS (shared)
   =============================================================== */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(70px, 12vh, 130px) var(--pad);
  border-top: 1px solid var(--line);
}
.sec-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(46px, 7vh, 74px);
}
.sec-head__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.sec-head__title {
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.sec-head__note {
  font-size: clamp(15px, 1.9vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
}
.muted {
  color: var(--text-3);
}

/* ---------- 01 · STORY / SPINE ---------- */
.spine {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.spine__node {
  position: relative;
  padding: 30px 22px 8px 0;
  border-top: 1px solid var(--line-2);
}
.spine__node::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-3);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.spine__node--now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-dim),
    0 0 18px var(--accent-glow);
}
.spine__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.spine__node h3 {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}
.spine__node--now h3 {
  color: var(--accent);
}
.spine__node p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
@media (max-width: 900px) {
  .spine {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 18px;
  }
  .spine__node {
    padding-right: 14px;
  }
}
@media (max-width: 480px) {
  .spine {
    grid-template-columns: 1fr;
  }
}

/* ---------- 02 · WHAT I BUILD / CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  position: relative;
  background: var(--bg-1);
  padding: clamp(28px, 4vw, 44px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  background: var(--bg-2);
}
.card:hover::after {
  transform: scaleY(1);
}
.card__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: auto;
}
.card h3 {
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 30px 0 12px;
}
.card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 03 · SELECTED SYSTEMS (machine room) ---------- */
.section--systems {
  max-width: none;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding-inline: 0;
  position: relative;
}
.section--systems::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 40%,
    #000,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 40%,
    #000,
    transparent 80%
  );
  opacity: 0.6;
  pointer-events: none;
}
.section--systems > * {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.sec-head--dark {
  padding-inline: var(--pad);
}

.systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sys {
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.sys:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow:
    0 24px 50px -28px rgba(0, 0, 0, 0.9),
    0 0 0 1px var(--accent-line);
}
.sys__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.sys__id {
  color: var(--text-3);
}
.sys__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}
.sys__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.sys h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.sys > p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.sys__spec {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.systems__foot {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
}
@media (max-width: 1024px) {
  .systems {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .systems {
    grid-template-columns: 1fr;
  }
}

/* ---------- 04 · NOTES ---------- */
.notes {
  list-style: none;
  border-top: 1px solid var(--line);
}
.note {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.3s var(--ease),
    padding 0.3s var(--ease);
}
.note:hover {
  background: var(--bg-1);
  padding-inline: 18px;
}
.note__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.note h3 {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.note__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.note--soon {
  opacity: 0.78;
}
.note__link {
  display: contents;
}
.note--live {
  cursor: pointer;
}
.note--live h3 {
  transition: color 0.3s var(--ease);
}
.note--live:hover h3 {
  color: var(--accent);
}
@media (max-width: 720px) {
  .note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- 05 · CONTACT ---------- */
.section--contact {
  border-top: 1px solid var(--line);
}
.contact__inner {
  max-width: 860px;
}
.contact__id {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0 6px;
}
.contact__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 26%;
  padding: 2px;
  background: var(--bg);
  border: 1px solid var(--accent-line);
  filter: grayscale(0.62) contrast(1.04);
  transition: filter 0.5s var(--ease);
}
.contact__id:hover .contact__avatar {
  filter: grayscale(0) contrast(1);
}
.contact__idmeta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact__idname {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.contact__idloc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.contact__title {
  font-weight: 800;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 20px;
}
.contact__note {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: clamp(36px, 6vh, 56px);
}
.contact__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.contact__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background 0.3s var(--ease);
}
.contact__link:hover {
  background: var(--bg-1);
}
.contact__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.contact__v {
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.contact__link:hover .contact__v {
  color: var(--accent);
}
@media (max-width: 720px) {
  .contact__links {
    grid-template-columns: 1fr;
  }
}

/* ---------- COLOPHON ---------- */
.colophon {
  border-top: 1px solid var(--line-2);
  background: var(--bg-deep);
  padding: clamp(40px, 6vh, 64px) 0 clamp(50px, 7vh, 80px);
}
.colophon__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  gap: 26px;
}
.colophon__entity {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 680px;
}
.colophon__entity strong {
  color: var(--text);
  font-weight: 700;
}
.colophon__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* ===============================================================
   MOTION — reveal on scroll / load
   =============================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor,
  .sys__status::before {
    animation: none;
  }
  .btn:hover,
  .sys:hover {
    transform: none;
  }
}

/* ===============================================================
   PRINT / PDF EXPORT — clean light document
   Fixes Safari "Export as PDF" (force-reveal + light theme).
   ===============================================================  */
@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #15171a !important;
  }

  /* never let an animated/hidden element drop out of the PDF */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* strip the atmosphere + interactive chrome */
  .texture,
  .rail,
  .cursor,
  .hero__actions,
  .section--systems::before,
  .sys__status::before {
    display: none !important;
  }
  body::before,
  body::after {
    display: none !important;
    content: none !important;
  }

  /* flatten every surface to paper */
  main,
  .hero,
  .section,
  .section--systems,
  .section--systems > *,
  .colophon,
  .colophon__grid,
  .card,
  .cards,
  .sys,
  .note,
  .readout__cell,
  .contact__link {
    background: #ffffff !important;
    box-shadow: none !important;
    color: #15171a !important;
  }

  /* tighten the long screen rhythm for paper */
  .hero {
    padding: 0 0 18px !important;
  }
  .section {
    padding: 18px 0 !important;
    border-top: 1px solid #e6e6e6 !important;
    max-width: none !important;
  }
  .section--systems {
    padding: 18px 0 !important;
    border-color: #e6e6e6 !important;
  }

  /* headings + body in ink */
  .rail__name,
  .hero__title,
  .hero__edge,
  .sec-head__title,
  .contact__title,
  .card h3,
  .sys h3,
  .note h3,
  .readout__cell dd,
  .colophon__entity strong {
    color: #15171a !important;
  }
  .hero__lede,
  .sec-head__note,
  .card p,
  .sys > p,
  .contact__note,
  .colophon__entity,
  .proofline {
    color: #444a52 !important;
  }

  /* keep the amber signal as a legible dark gold on white */
  .line--accent,
  .sec-head__idx,
  .card__idx,
  .spine__idx,
  .sys__status,
  .note__cat,
  .dossier__sep,
  .readout__cell--key dd,
  .proofline__div,
  .systems__foot {
    color: #9a6b00 !important;
  }
  .hero__edge {
    border-left-color: #9a6b00 !important;
  }
  .readout__cell dt,
  .proofline__label,
  .dossier,
  .sys__id,
  .sys__spec,
  .note__meta,
  .contact__k,
  .colophon__meta {
    color: #6a7077 !important;
  }

  /* lines to light gray */
  .readout,
  .readout__cell,
  .contact__links,
  .contact__link,
  .spine__node,
  .sys,
  .note,
  .notes,
  .sys__spec,
  .colophon {
    border-color: #e0e0e0 !important;
  }
  .spine__node--now::before {
    background: #9a6b00 !important;
    border-color: #9a6b00 !important;
    box-shadow: none !important;
  }
  .sys {
    border: 1px solid #e0e0e0 !important;
  }

  a {
    color: #15171a !important;
    text-decoration: none !important;
  }

  /* avoid awkward page breaks through blocks */
  .hero,
  .sec-head,
  .spine,
  .cards,
  .systems,
  .card,
  .sys,
  .note,
  .contact__inner {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  /* force background/color fidelity where a browser honors it */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
