/* Stroke Decision Copilot — the public Space (DEC-32): shared look for every page. A dark room lit by a slow coloured light that changes with each chapter; glass frames; heavy display type with light narration. Red stays the one semantic colour: the clock and the verifier's crosses. System fonts only, so nothing pops in. */ :root { --room: #06070a; --glass: rgba(20, 22, 29, .58); --glass2: rgba(255,255,255,.045); --edge: rgba(255,255,255,.09); --edge2: rgba(255,255,255,.18); --ink: #f3f4f6; --ink2: #b3b7c0; --ink3: #7a7f8a; --red: #ff4d57; --red-soft: rgba(255,77,87,.16); --good: #3ddc97; --tone: #ff4d57; --tone2: #ff8a3d; --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --bar: 34px; } body[data-tone="2"] { --tone: #39c5ff; --tone2: #3b6bff; } body[data-tone="3"] { --tone: #9a7bff; --tone2: #5b5bff; } body[data-tone="4"] { --tone: #ffb224; --tone2: #ff6a3d; } body[data-tone="5"] { --tone: #ff4d57; --tone2: #ff3d9a; } body[data-tone="6"] { --tone: #2fd3a7; --tone2: #2f8bff; } body[data-tone="7"] { --tone: #ff4d57; --tone2: #9a7bff; } * { box-sizing: border-box; } [hidden] { display: none !important; } html { scroll-behavior: smooth; scroll-padding-top: var(--bar); } body { margin: 0; background: var(--room); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; } button { font: inherit; color: inherit; } strong { font-weight: 650; color: #fff; } .banner strong { color: inherit; } .red { color: var(--red) !important; } :focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; border-radius: 6px; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } } .banner { position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; padding: .45rem 16px; min-height: var(--bar); background: #f3f4f6; color: #06070a; font-size: .85rem; text-align: center; } @media (max-width: 640px) { .banner span { display: none; } } .progress { position: fixed; z-index: 61; top: var(--bar); left: 0; right: 0; height: 3px; background: rgba(255,255,255,.05); } .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tone2), var(--tone)); box-shadow: 0 0 12px var(--tone); transition: background .8s; } /* the light in the room: three blurred shapes that drift and take each chapter's colour */ .aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; } .aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .32; transition: background-color 1.4s ease, opacity 1.4s; will-change: transform; } .aurora .b1 { width: 52vw; height: 52vw; left: 58vw; top: -12vw; background: var(--tone); animation: drift1 26s ease-in-out infinite alternate; } .aurora .b2 { width: 44vw; height: 44vw; left: -14vw; top: 46vh; background: var(--tone2); opacity: .22; animation: drift2 32s ease-in-out infinite alternate; } .aurora .b3 { width: 30vw; height: 30vw; left: 40vw; top: 70vh; background: var(--tone); opacity: .14; animation: drift1 38s ease-in-out infinite alternate-reverse; } @keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.15); } } @keyframes drift2 { to { transform: translate(10vw, -12vh) scale(.9); } } .grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); } /* the older component tokens (charts, case explorer, builder, answer view), mapped onto this look */ :root { --surface: #0c0e13; --surface-2: #12151b; --surface-3: #1a1e26; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18); --ink-2: var(--ink2); --ink-3: var(--ink3); --accent: var(--tone); --accent-ink: color-mix(in srgb, var(--tone) 70%, #fff); --accent-soft: color-mix(in srgb, var(--tone) 16%, transparent); --s1: #37b6ff; --s2: #ff7a45; --s3: #2fd39a; --s4: #ffc145; --s5: #ff6fa8; --s6: #b58cff; --good-ink: #5fe3a9; --critical: var(--red); --critical-soft: var(--red-soft); --warning: #ffb224; --hl-vision: rgba(255,178,36,.22); --hl-note: rgba(61,220,151,.2); --hl-passage: color-mix(in srgb, var(--tone) 14%, transparent); --radius: 14px; --shadow: 0 20px 60px -20px rgba(0,0,0,.6); --font: var(--sans); color-scheme: dark; } /* top navigation, on every page */ .nav { position: sticky; top: var(--bar); z-index: 55; display: flex; align-items: center; gap: 1rem; padding: 10px clamp(16px, 4vw, 40px); background: rgba(6,7,10,.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); } .nav.over { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 0; } .nav .brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; } .nav .brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); } .nav .links { margin-left: auto; display: flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass2); } .nav .links a { padding: .35rem .85rem; border-radius: 999px; color: var(--ink2); text-decoration: none; font-size: .88rem; white-space: nowrap; transition: .2s; } .nav .links a:hover { color: #fff; } .nav .links a[aria-current="page"] { background: #fff; color: #06070a; font-weight: 600; } @media (max-width: 560px) { .nav .brand span { display: none; } .nav .links a { padding: .3rem .6rem; font-size: .8rem; } } .foot { border-top: 1px solid var(--edge); padding: 28px 16px 40px; text-align: center; color: var(--ink3); font-size: .82rem; } .foot a { color: var(--ink2); } .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .muted { color: var(--ink2); } .small { font-size: .85rem; } .btn { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid var(--edge2); color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; background: var(--glass2); cursor: pointer; transition: .2s; } .btn:hover:not(:disabled) { border-color: #fff; transform: translateY(-2px); } .btn.primary { background: #fff; color: #06070a; border-color: #fff; font-weight: 650; } .btn:disabled { opacity: .5; cursor: progress; } .btn.small { padding: .45rem .9rem; font-size: .85rem; } .kicker { font: .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); margin: 0 0 1.2rem; } /* stage frames */ .frame { position: relative; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 18px 18px; border-radius: 26px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(18px); box-shadow: 0 30px 90px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; } .frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 0%), color-mix(in srgb, var(--tone) 16%, transparent), transparent 60%); transition: background .3s; } .frame > * { position: relative; } .frame-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; min-height: 22px; } .live { display: inline-flex; align-items: center; gap: .4rem; color: var(--red); } .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: beat 1.6s infinite; } .badge { padding: .2rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); letter-spacing: .06em; white-space: nowrap; } .badge.done { background: transparent; color: var(--ink3); border-color: var(--edge); } .filters { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .filters button { border: 1px solid var(--edge); background: transparent; color: var(--ink3); font: .64rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; cursor: pointer; } .filters button[aria-pressed="true"] { background: #fff; color: #06070a; border-color: #fff; } .cap { font-size: .8rem; color: var(--ink3); margin: .9rem 0 0; min-height: 1.3em; } .result { margin: 12px 0 0; font-size: .95rem; color: var(--ink); min-height: 1.5em; } .result:empty { display: none; } .result b { color: var(--tone); font-weight: 650; } .tip { position: fixed; z-index: 70; pointer-events: none; max-width: 280px; padding: .5rem .65rem; border-radius: 10px; font-size: .78rem; line-height: 1.4; background: rgba(14,16,21,.95); border: 1px solid var(--edge2); color: var(--ink); } .tip b { display: block; }