/* Shared styles for ScrollTrace Studios inner pages (the homepage keeps its own inline CSS) */
:root {
  --bg: #000; --ink: #fff; --muted: #8d8d93; --dim: #55555b;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16); --tile: rgba(255, 255, 255, 0.025);
  --drift: #ff3b30; --focus: #0a84ff; --ok: #30d158;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 880px; --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--drift); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

header { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: .5px solid var(--line); }
header .wrap { max-width: 1120px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -0.05em; font-size: 1.08rem; }
.mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mark span { border-radius: 2px; }
.mark span:nth-child(1) { background: var(--drift); }
.mark span:nth-child(2) { background: var(--drift); opacity: .35; }
.mark span:nth-child(3) { background: var(--focus); opacity: .35; }
.mark span:nth-child(4) { background: var(--focus); }
.logo small { font-weight: 500; color: var(--muted); letter-spacing: 0; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500; }
nav a:hover, nav a[aria-current] { color: var(--ink); }

.crumbs { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 40px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.hero { padding: 28px 0 48px; }
.kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.055em; font-weight: 900; }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.lede strong { color: var(--ink); font-weight: 500; }

section { padding: 44px 0; border-top: .5px solid var(--line); }
.label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -0.04em; line-height: 1.15; font-weight: 900; margin-bottom: 14px; }
h3 { font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 700; }
p { color: var(--muted); max-width: 66ch; }
p + p { margin-top: 12px; }
p strong, li strong { color: var(--ink); font-weight: 500; }
ul.plain { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
ul.plain li { color: var(--muted); padding-left: 18px; position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--focus); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 12px; }
.card { padding: 20px; border-radius: 16px; background: var(--tile); border: .5px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.card p { font-size: .94rem; }
.card a { font-size: .9rem; font-weight: 500; text-decoration: none; border-bottom: .5px solid var(--line-2); align-self: flex-start; margin-top: auto; }
.tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag.live { color: var(--ok); }
.tag.beta { color: var(--focus); }

dl.facts { border-top: .5px solid var(--line-2); margin-top: 8px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: .5px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { overflow-wrap: anywhere; }
.facts a, p a, li a { text-decoration: none; border-bottom: .5px solid var(--line-2); }
.facts a:hover, p a:hover, li a:hover { border-color: #fff; }

.copy { position: relative; margin-top: 10px; padding: 18px 20px; border-radius: 14px; border: .5px solid var(--line-2); background: var(--tile); color: var(--ink); font-size: .98rem; max-width: 70ch; }
.copy .label { margin-bottom: 8px; }

footer { border-top: .5px solid var(--line); padding: 28px 0 40px; margin-top: 24px; }
footer .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--dim); }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  nav { gap: 14px; }
  .logo small { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}
