/* ============================================================
   w3b3g. Scammers' Worst Nightmare
   hand-built static site. no frameworks, no icons, no gradients.
   set in Anton (display) + IBM Plex Mono (everything else).
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("fonts/Anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("fonts/IBMPlexMono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* tokens */
:root {
  --bg:      #0d0d0e;
  --bg-2:    #111113;
  --line:    #232327;
  --line-2:  #2d2d32;
  --ink:     #e8e4d8;   /* bone, warm bone */
  --ink-dim: #8b887e;   /* muted bone */
  --ink-faint: #55534c;
  --accent:  #ff4b1c;   /* evidence marker */
  --font-d:  "Anton", "Arial Narrow", sans-serif;
  --font-m:  "Plex", "Menlo", monospace;
  --rail: 232px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-2) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-m);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #140600; }

a { color: inherit; }

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

/* layout */
.wrap {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

/* left rail */
.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 20px 26px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  display: block;
  border: 1px solid var(--line-2);
}
.brand-name {
  font-family: var(--font-d);
  font-size: 27px;
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0;
}
.brand-name .dot { color: var(--accent); }

.rail-status {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rail-status .live {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  margin-right: 7px;
}

.rail-nav {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.rail-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  padding: 6px 8px;
  display: flex;
  gap: 10px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rail-nav a .idx { color: var(--ink-faint); }
.rail-nav a:hover { color: var(--ink); }
.rail-nav a.active {
  color: var(--ink);
  border-left-color: var(--accent);
}
.rail-nav a.active .idx { color: var(--accent); }

.rail-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rail-foot a { color: var(--ink-dim); text-decoration: none; }
.rail-foot a:hover { color: var(--accent); }

/* content */
.content {
  padding: 0 clamp(22px, 4vw, 64px) 60px;
  min-width: 0;
}
section { padding-top: clamp(64px, 9vh, 110px); }

/* section heads */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.sec-head .num {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--accent);
}
.sec-head h2 {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: 0.4px;
  margin: 0;
  text-transform: uppercase;
}
.sec-head .tag {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* hero */
.hero { padding-top: clamp(40px, 7vh, 84px); }

.hero-kicker {
  font-family: var(--font-d);
  font-size: clamp(7.5px, 2.3vw, 17px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 30px 0;
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(58px, 10.2vw, 158px);
  line-height: 0.94;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  max-width: 11em;
}
.hero-title .row { display: block; }
.hero-title .hl {
  display: block;
  width: max-content;
  background: var(--accent);
  color: #140600;
  line-height: 1;
  padding: 0.04em 0.1em 0.07em 0.09em;
  margin: 0.04em 0 0 0;
}
.hero-title .ex { color: var(--accent); }

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(34px, 5vw, 60px);
  align-items: start;
}

.hero-lede p {
  margin: 0 0 14px 0;
  font-size: 15.5px;
  color: var(--ink);
  max-width: 56ch;
}
.hero-lede p strong { color: var(--accent); font-weight: 600; }
.hero-lede .muted { color: var(--ink-dim); font-size: 13.5px; }

.hero-facts {
  border-left: 1px solid var(--line-2);
  padding-left: clamp(18px, 2.4vw, 34px);
  font-size: 12.5px;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-facts .hf-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}
.hero-facts .hf-row b { color: var(--ink); font-weight: 500; text-align: right; }
.hero-facts a { color: var(--ink-dim); }
.hero-facts a:hover { color: var(--accent); }

/* record */
.record-table {
  border-top: 1px solid var(--line-2);
}
.rt-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(18px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.rt-row .rt-label {
  font-size: clamp(12px, 1.2vw, 14.5px);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.rt-row .rt-label b { color: var(--ink); font-weight: 600; }
.rt-row .rt-num {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.9;
  white-space: nowrap;
  text-align: right;
}
.rt-row .rt-num small {
  font-size: 0.42em;
  color: var(--accent);
  vertical-align: top;
  margin-left: 6px;
}
.rt-row .rt-note {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: 34ch;
}
.record-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  font-size: 11.5px;
}
.record-foot .rf-link { color: var(--ink-dim); }
.record-foot .rf-link:hover { color: var(--accent); }

/* ledger */
.ledger-note {
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 72ch;
  margin: 0 0 26px 0;
}
.ledger-note b { color: var(--ink); font-weight: 600; }

.ledger-chapter + .ledger-chapter { margin-top: clamp(40px, 6vw, 64px); }

.chapter-head { margin-bottom: 14px; }
.chapter-title {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  text-transform: uppercase;
  margin: 0 0 4px 0;
}
.chapter-title .dim { color: var(--ink-faint); font-size: 0.65em; }
.chapter-sub { margin: 0; font-size: 12px; color: var(--ink-faint); }

.ledger-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 8px 0;
}
.ledger-search {
  width: 100%;
  max-width: 460px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--font-m);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 0;
}
.ledger-search::placeholder { color: var(--ink-faint); }
.ledger-search:focus { border-color: var(--accent); outline: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: none;
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.chip b { color: var(--ink-faint); font-weight: 400; }
.chip:hover { border-color: var(--ink-dim); color: var(--ink); }
.chip.on {
  border-color: var(--accent);
  color: var(--ink);
}
.chip.on b { color: var(--accent); font-weight: 600; }

.ledger-hint {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.8px;
  margin: 10px 0 6px 0;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
  max-height: min(56vh, 640px);
  overflow-y: auto;
}
.lr {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s ease;
}
.lr:hover, .lr:focus-visible { background: var(--bg-2); }
.lr.copied .ld { color: var(--accent); }
.lr .ln { color: var(--ink-faint); font-size: 11px; text-align: right; }
.lr .ld { overflow-wrap: anywhere; }
.lr .lm {
  font-size: 10px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.lr[hidden] { display: none; }

.ledger-file {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* method */
.m-step {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 30px);
  padding: clamp(16px, 2.4vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}
.m-step:first-of-type { border-top: 1px solid var(--line-2); }
.m-step .m-no {
  font-family: var(--font-d);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.m-step h3 {
  margin: 2px 0 6px 0;
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.m-step p { margin: 0; font-size: 13px; color: var(--ink-dim); max-width: 76ch; }

.callout {
  margin-top: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line-2);
  padding: clamp(18px, 2.6vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-2);
}
.callout p { margin: 0; font-size: 13.5px; color: var(--ink-dim); max-width: 68ch; }
.callout p b { color: var(--ink); font-weight: 600; }
.callout .big-link {
  font-family: var(--font-d);
  text-transform: uppercase;
  font-size: clamp(16px, 1.8vw, 22px);
  text-decoration: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 18px;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.callout .big-link:hover { background: var(--accent); color: #140600; }

/* work */
.assignments { border-top: 1px solid var(--line-2); }
.as-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: clamp(14px, 3vw, 36px);
  padding: clamp(16px, 2.2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.as-row .as-name { font-family: var(--font-d); font-size: clamp(19px, 2.2vw, 27px); text-transform: uppercase; margin: 0; }
.as-row .as-name a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.as-row .as-name a:hover { color: var(--accent); border-color: var(--accent); }
.as-row .as-role { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
.as-row p { margin: 0; font-size: 13px; color: var(--ink-dim); max-width: 64ch; }
.as-row .as-status {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.as-row .as-status.live { border-color: rgba(255, 75, 28, 0.6); color: var(--accent); }

/* contact */
.contact-big {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 60px);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 6px 0;
  max-width: 14em;
}
.contact-sub { font-size: 13px; color: var(--ink-dim); max-width: 60ch; margin: 0 0 30px 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.contact-links a {
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line-2);
  padding: 12px 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-2);
  transition: border-color 0.12s ease, color 0.12s ease;
}
.contact-links a .arrow { color: var(--accent); }
.contact-links a:hover { border-color: var(--accent); color: var(--ink); }

/* footer */
footer {
  border-top: 1px solid var(--line-2);
  margin-top: clamp(60px, 9vw, 110px);
  padding-top: 20px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #140600;
  font-size: 12.5px;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (max-width: 1020px) {
  .wrap { grid-template-columns: 1fr; }
  .rail {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
  }
  .rail-status { display: none; }
  .rail-nav {
    margin-top: 0;
    margin-left: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }
  .rail-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 4px 8px; }
  .rail-nav a.active { border-bottom-color: var(--accent); border-left: 0; }
  .rail-foot { display: none; }
  .content { padding-top: 10px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-facts { border-left: 0; padding-left: 0; }
  .rt-row { grid-template-columns: 1fr auto; }
  .rt-row .rt-note { grid-column: 1 / -1; }
  .as-row { grid-template-columns: 1fr; }
  .as-row .as-status { justify-self: start; }
  .callout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lr { grid-template-columns: 40px minmax(0, 1fr); }
  .lr .lm { display: none; }
  .rail-nav { margin-left: 0; }
  .m-step { grid-template-columns: 52px minmax(0, 1fr); }
  .sec-head { flex-wrap: wrap; row-gap: 4px; }
  .sec-head .tag { max-width: 100%; font-size: 9.5px; }
}

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