@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/spacegrotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/spacegrotesk-700.woff2') format('woff2'); }

/* joshuaaah.com color bible -- canonical tokens, copied verbatim (memory/feedback_joshuaaah_color_bible.md) */
:root {
  --jx-bg: #FFFFFF;
  --jx-surface: #F7F6FA;
  --jx-surface-alt: #ECEAF1;
  --jx-black: #000000;
  --jx-black-soft: #0D0D10;
  --jx-primary: #1A0633;
  --jx-primary-hover: #2E1152;
  --jx-primary-deep: #0F0320;
  --jx-silver: #C4CED4;
  --jx-accent: #0D9488;
  --jx-accent-hover: #14B8A6;
  --jx-accent-text: #0F766E;
  --jx-text: #121117;
  --jx-text-secondary: #6B6974;
  --jx-text-on-dark: #F2F1F5;
  --jx-border: #D8D5E0;
  --jx-success: #16A34A;
  --jx-warning: #D97706;
  --jx-spotlight: #F97316;
  --jx-spotlight-hover: #FB923C;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-sans: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --nav-height: 60px;
}
/* Split Second sides: A = teal, B = orange (both bible accents) */
:root {
  --ss-a: var(--jx-accent);
  --ss-a-bg: #E6F4F2;
  --ss-b: var(--jx-spotlight);
  --ss-b-bg: #FFF1E6;
  --ss-b-text: #B4510B;
  --ss-warn-bg: #FFF8EB;
  --ss-warn-text: #92400E;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--jx-text);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(13,148,136,0.05), transparent 60%),
    radial-gradient(900px 560px at 110% 10%, rgba(26,6,51,0.07), transparent 55%),
    var(--jx-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
button, input, select { font: inherit; }
a { color: var(--jx-primary); }
a:hover, a:focus-visible { color: var(--jx-accent-text); }
:focus-visible { outline: 2px solid var(--jx-accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* header: purple fading into black, sticky */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left));
  background: linear-gradient(90deg, var(--jx-primary) 0%, var(--jx-primary-deep) 55%, var(--jx-black) 100%);
  color: #fff; box-shadow: 0 1px 0 rgba(196,206,212,0.18), 0 6px 20px rgba(15,3,32,0.18);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.01em; }
.brand small { color: var(--jx-silver); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bar nav a { color: #fff; text-decoration: none; font-size: 0.9rem; padding: 6px 10px; border-radius: var(--radius-sm); }
.bar nav a:hover { background: var(--jx-primary-hover); color: #fff; }

main { max-width: 920px; margin: 0 auto; padding: 18px 16px 40px; }
.intro { margin-bottom: 16px; }
.intro h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.1; color: var(--jx-primary); }
.lede { color: var(--jx-text-secondary); margin: 8px 0 0; max-width: 720px; line-height: 1.5; font-size: 0.97rem; }

.card { background: linear-gradient(165deg, var(--jx-surface-alt), #ffffff); border: 1px solid var(--jx-border); border-radius: var(--radius-lg); padding: 16px; min-width: 0; }
.card h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--jx-text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--jx-spotlight); box-shadow: 0 0 8px rgba(249,115,22,0.6); }

.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--jx-primary); background: var(--jx-primary); color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 0.95rem; cursor: pointer; min-height: 44px; }
.chip:hover { background: var(--jx-primary-hover); }
.chip:disabled { opacity: 0.55; cursor: progress; }
.chip.ghost { background: #fff; color: var(--jx-primary); border-color: var(--jx-border); }
.chip.ghost:hover { border-color: var(--jx-accent); background: #fff; }
.chip.small { min-height: 36px; padding: 6px 14px; font-size: 0.86rem; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 600; background: var(--jx-surface-alt); color: var(--jx-primary); white-space: nowrap; }
.pill.ok { background: #E8F6EE; color: #166534; }
.pill.warn { background: var(--ss-warn-bg); color: var(--ss-warn-text); }
.pill.part { background: #EEF2F7; color: #334155; }

/* form */
.vsform { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.side-in input { width: 100%; font-size: 1.05rem; padding: 12px 16px; border: 1px solid var(--jx-border); border-radius: 999px; background: #fff; color: var(--jx-text); }
.side-in:first-child input { border-left: 4px solid var(--ss-a); }
.side-in:nth-child(3) input { border-left: 4px solid var(--ss-b); }
.side-in input:focus { border-color: var(--jx-accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.14); outline: none; }
.vs { font-family: var(--font-display); font-weight: 700; color: var(--jx-text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; text-align: center; }
.vs.big { font-size: 1.1rem; color: var(--jx-primary); }
@media (max-width: 640px) {
  .vsform { grid-template-columns: 1fr; }
  .vsform .vs { margin: -2px 0; }
  .go { width: 100%; }
}
.form-msg { margin: 10px 4px 0; color: #9F1239; font-size: 0.9rem; }
.form-msg:empty { display: none; }
.examples { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-label { font-size: 0.82rem; color: var(--jx-text-secondary); }
.ex-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ex { border: 1px solid var(--jx-border); background: #fff; color: var(--jx-primary); border-radius: 999px; padding: 5px 12px; font-size: 0.84rem; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex:hover { border-color: var(--jx-accent); }

/* working */
.working { margin-top: 16px; display: flex; gap: 14px; align-items: center; }
.working b { display: block; color: var(--jx-primary); }
.working span { display: block; color: var(--jx-text-secondary); font-size: 0.88rem; margin-top: 3px; line-height: 1.45; }
.spinner { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--jx-surface-alt); border-top-color: var(--jx-accent); border-right-color: var(--jx-spotlight); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* result */
.result { margin-top: 18px; display: grid; gap: 14px; }
.matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.contender { min-width: 0; padding: 10px 12px; border-radius: var(--radius-md); }
.contender b { display: block; font-family: var(--font-display); font-size: clamp(1.1rem, 4.4vw, 1.5rem); line-height: 1.15; overflow-wrap: anywhere; }
.contender small { display: block; color: var(--jx-text-secondary); font-size: 0.8rem; margin-top: 3px; overflow-wrap: anywhere; }
#ca { background: var(--ss-a-bg); border-left: 4px solid var(--ss-a); }
#ca b { color: var(--jx-accent-text); }
#cb { background: var(--ss-b-bg); border-left: 4px solid var(--ss-b); }
#cb b { color: var(--ss-b-text); }

.verdict-text { font-family: var(--font-display); font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.2; color: var(--jx-primary); margin: 0; }
.verdict-text.withheld, .quips li.withheld { font-family: var(--font-sans); font-size: 0.92rem; color: var(--jx-text-secondary); font-style: italic; }
.quips { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.quips li { padding-left: 16px; position: relative; line-height: 1.45; color: var(--jx-text); }
.quips li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--jx-accent); }
.nothing p { margin: 0; line-height: 1.5; }

.legend { font-size: 0.8rem; color: var(--jx-text-secondary); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.legend .pill:not(:first-child) { margin-left: 8px; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.stat-head h3 { font-size: 1.08rem; color: var(--jx-primary); }
.stat-note { margin: 4px 0 10px; font-size: 0.84rem; color: var(--jx-text-secondary); line-height: 1.45; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0; border-top: 1px solid var(--jx-surface-alt); }
.row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.row-top .who { font-weight: 600; font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.row-top .val { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.row.a .who, .row.a .val { color: var(--jx-accent-text); }
.row.b .who, .row.b .val { color: var(--ss-b-text); }
.track { height: 10px; border-radius: 999px; background: var(--jx-surface-alt); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; min-width: 4px; }
.row.a .fill { background: var(--ss-a); }
.row.b .fill { background: var(--ss-b); }
.src { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 0.8rem; color: var(--jx-text-secondary); }
.src a { overflow-wrap: anywhere; }
.pub { font-size: 0.8rem; color: var(--jx-text-secondary); }
.snip { margin: 2px 0 0; font-size: 0.8rem; color: var(--jx-text-secondary); background: #fff; border: 1px solid var(--jx-surface-alt); border-radius: var(--radius-sm); padding: 6px 9px; line-height: 1.45; overflow-wrap: anywhere; }
.snip summary { cursor: pointer; color: var(--jx-accent-text); font-weight: 600; }
.snip p { margin: 6px 0 0; }
.outcome { margin-top: 8px; font-weight: 600; color: var(--jx-primary); font-size: 0.95rem; }
.outcome small { display: block; font-weight: 400; color: var(--jx-text-secondary); font-size: 0.78rem; margin-top: 2px; }

.rejected summary { cursor: pointer; font-weight: 600; color: var(--jx-primary); }
.rejected ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--jx-text-secondary); line-height: 1.5; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: var(--jx-text-secondary); }

@media (max-width: 480px) {
  .matchup { grid-template-columns: 1fr; }
  .matchup .vs { margin: -4px 0; }
  .card { padding: 14px; }
}

.foot { background: linear-gradient(90deg, var(--jx-black) 0%, var(--jx-primary-deep) 50%, var(--jx-primary) 100%); color: var(--jx-text-on-dark); padding: 22px 16px 28px; font-size: 0.84rem; line-height: 1.55; }
.foot p { max-width: 888px; margin: 0 auto 10px; color: #d9d6e2; }
.foot b { color: #fff; }
.foot a { color: var(--jx-silver); }
.foot a:hover { color: var(--jx-accent-hover); }
