/* cychlorphinetest.com — field-bulletin styling.
   Warm paper, ink, one safety-orange signal colour. */

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --ink: #16181b;
  --ink-2: #4a4d52;
  --rule: #d6cfbf;
  --signal: #c2410c;
  --signal-soft: #f6dccd;
  --ok: #1f6f5c;
  --strip: #fbfaf6;
  --line-c: #9b2c5a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121416;
    --paper-2: #1a1d20;
    --ink: #ece7dc;
    --ink-2: #a4a19a;
    --rule: #2e3236;
    --signal: #f07a3e;
    --signal-soft: #3a2116;
    --ok: #5fc3a4;
    --strip: #22262a;
    --line-c: #e0679a;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  /* faint paper grain */
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; text-decoration-color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

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

/* ---- alert bar ---- */
.alertbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; padding: 9px 16px; text-align: center;
}
.alertbar p { margin: 0; }
.alertbar a { color: inherit; font-weight: 700; }
.alertbar__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---- masthead ---- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.wordmark { font-family: var(--mono); font-size: 15px; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.wordmark__dim { color: var(--ink-2); }
.wordmark__mark { width: 10px; height: 22px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.wordmark__mark::after { content: ""; position: absolute; left: 1px; right: 1px; top: 6px; height: 2px; background: var(--signal); }
.nav { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 719px) { .nav { gap: 14px; font-size: 13px; } }

/* ---- hero ---- */
.hero { padding-top: 56px; padding-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin: 0 0 18px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 9vw, 104px); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 24px; max-width: 12ch;
}
.hero__title em { font-style: italic; color: var(--signal); }
.hero__lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 60ch; color: var(--ink-2); margin: 0 0 44px; }

.hero > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero > :nth-child(2) { animation-delay: .08s; }
.hero > :nth-child(3) { animation-delay: .16s; }
.hero > :nth-child(4) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- strip illustration ---- */
.strip { margin: 0; border-top: 1px solid var(--rule); padding-top: 28px; }
.strip__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .strip__row { grid-template-columns: 1fr 1fr; gap: 24px; } }
.strip__card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; display: grid; gap: 14px; }
.strip__card--danger { border-color: var(--signal); background: var(--signal-soft); }
.strip__label { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.strip__body {
  height: 56px; border-radius: 6px; background: var(--strip);
  border: 1px solid var(--rule); display: flex; align-items: center; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 18px -10px rgba(0,0,0,.25);
}
.strip__pad { width: 28%; height: 100%; background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 6px); opacity: .7; }
.strip__window { flex: 1; height: 60%; margin: 0 18px; border-radius: 4px; border: 1px dashed var(--rule); position: relative; }
.strip__line {
  position: absolute; top: 0; bottom: 0; width: 5px; border-radius: 2px;
  background: var(--line-c); font-size: 0;
  transform-origin: center; animation: develop 1.2s ease-out both; animation-delay: .9s;
}
.strip__line--c { right: 22%; }
.strip__line--t { right: 58%; animation-delay: 1.4s; }
.strip__line--ghost { background: transparent; }
@keyframes develop { from { opacity: 0; transform: scaleY(.3); } }
.strip__verdict { font-weight: 700; font-size: 15px; }
.strip__verdict--pos { color: var(--ok); }
.strip__verdict--miss { color: var(--signal); }
.strip figcaption { font-size: 14px; color: var(--ink-2); margin-top: 16px; max-width: 70ch; }

/* ---- facts ---- */
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-top: 0; padding-bottom: 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 24px 0; display: grid; gap: 4px; border-bottom: 1px solid var(--rule); }
.fact:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .fact { border-bottom: 0; border-right: 1px solid var(--rule); padding: 28px 24px; }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
}
.fact__num { font-family: var(--serif); font-size: 56px; line-height: 1; }
.fact__txt { color: var(--ink-2); font-size: 15px; }
.fact__src { font-family: var(--mono); font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---- chapters ---- */
.body { padding-top: 24px; padding-bottom: 64px; }
.chapter { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) { .chapter { grid-template-columns: 160px 1fr; gap: 32px; } }
.chapter__num { font-family: var(--mono); font-size: 13px; color: var(--signal); margin: 6px 0 0; }
.chapter__content { max-width: 68ch; }
.chapter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 20px; }
.chapter p { margin: 0 0 16px; }

.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { padding: 14px 16px 14px 20px; border-left: 3px solid var(--signal); background: var(--paper-2); border-radius: 0 8px 8px 0; }

.cards { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } .card--static { grid-column: 1 / -1; } }
.card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; background: var(--paper); transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.card__kicker { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--signal); }
.card__title { font-weight: 700; font-size: 18px; }
.card__text { color: var(--ink-2); font-size: 15px; }
.card__go { font-family: var(--mono); font-size: 13px; margin-top: 6px; }
.note { font-size: 14px; color: var(--ink-2); }

.chapter--urgent .chapter__content { max-width: none; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; max-width: 68ch; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--signal); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps li span { display: block; font-weight: 700; font-size: 19px; }

.lines { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lines { grid-template-columns: repeat(3, 1fr); } }
.lines a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; }
.lines a:hover { color: var(--paper); background: var(--signal); }
.lines span { font-size: 13px; opacity: .8; }
.lines strong { font-family: var(--mono); font-size: 20px; font-weight: 500; }

.sources { padding-left: 20px; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.sources a { text-decoration-color: var(--rule); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--ink); padding: 32px 0 48px; font-size: 14px; color: var(--ink-2); }
.footer p { margin: 0 0 8px; max-width: 70ch; }
.footer__small { font-family: var(--mono); font-size: 12px; }

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