/* platform-changes landing page. Tier 1 (editorial): type, grid, one accent, CSS scroll-driven motion only. */
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0b0c0e; --ink: #edebe4; --muted: #8f8c84; --line: #26272b; --accent: #ff6a2b;
  --display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; color: var(--ink); font-family: var(--mono); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain: a tiny inline SVG noise, fixed, non-interactive */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.wrap { padding-inline: var(--pad); max-width: 92rem; margin-inline: auto; }
.label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }

header.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.mark { font-weight: 600; letter-spacing: .02em; }
.live { display: inline-flex; align-items: center; gap: .55rem; }
.live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,106,43,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 .7rem rgba(255,106,43,0); } }

.hero { padding-block: clamp(3rem, 9vw, 8rem) clamp(2.5rem, 6vw, 5rem); }
h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0 0 1.6rem;
  font-size: clamp(2.5rem, 9.5vw, 8.4rem); line-height: .92; letter-spacing: -.02em; max-width: 16ch;
}
h1 em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--accent); letter-spacing: 0; font-size: 1.12em; line-height: .8; }
.lede { max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ink); margin: 0 0 2.2rem; }
.lede span { color: var(--muted); }

.connect { max-width: 62rem; border: 1px solid var(--line); background: #101114; }
.connect .bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.connect pre { margin: 0; padding: 1.1rem .9rem; font: inherit; font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect .prompt { color: var(--accent); user-select: none; }
button.copy {
  font: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line); padding: .45rem .8rem;
  transition: background .15s, color .15s, border-color .15s, transform .08s;
}
button.copy:hover { border-color: var(--accent); color: var(--accent); }
button.copy:active { transform: translateY(1px); }
button.copy[data-done="true"] { background: var(--accent); border-color: var(--accent); color: #0b0c0e; }
.note { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); }

section { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.015em; margin: .5rem 0 1rem; max-width: 20ch; }
h2 em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--accent); font-size: 1.1em; }
.sub { max-width: 60ch; color: var(--muted); margin: 0 0 2.5rem; }

/* the timeline: a cutoff line, then real dated changes */
.cutoff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 0 0 .5rem; }
.cutoff::before, .cutoff::after { content: ""; border-top: 1px dashed var(--accent); }
.cutoff span { color: var(--accent); }
.index { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.index li {
  counter-increment: row; display: grid; grid-template-columns: 3rem 11rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.index li::before { content: counter(row, decimal-leading-zero); color: var(--accent); font-size: .78rem; }
.index .meta { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.index .t { font-size: 1.02rem; }
.index .t a { text-decoration: none; }
.index .t a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.chip { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .22rem .55rem; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip[data-i="high"] { border-color: var(--accent); color: var(--accent); }
.chip[data-i="medium"] { border-color: #6b5a4e; color: var(--ink); }
.snap { margin: 1.2rem 0 0; font-size: .78rem; color: var(--muted); }

/* tools as a numbered index, not cards */
.tools { list-style: none; margin: 0; padding: 0; counter-reset: tool; }
.tools li { counter-increment: tool; display: grid; grid-template-columns: 3rem minmax(11rem, 17rem) 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tools li::before { content: counter(tool, decimal-leading-zero); color: var(--accent); font-size: .78rem; }
.tools code { font-weight: 600; font-size: 1rem; }
.tools p { margin: 0; color: var(--muted); }

.skeptic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); }
.skeptic ul { margin: 0; padding: 0; list-style: none; }
.skeptic li { padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.skeptic li::before { content: "/"; position: absolute; left: 0; color: var(--accent); }

footer { border-top: 1px solid var(--line); padding-block: 2.5rem 4rem; color: var(--muted); font-size: .8rem; display: grid; gap: .6rem; }
footer code { color: var(--ink); }

/* scroll-driven motion: content is fully visible by default; this only adds a small settle-in where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .index li, .tools li { animation: stamp linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes stamp { from { opacity: .3; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } * { scroll-behavior: auto; } }

@media (max-width: 760px) {
  .index li { grid-template-columns: 2.4rem 1fr; }
  .index .meta { grid-column: 2; }
  .index .t { grid-column: 2; }
  .index .chip { grid-column: 2; justify-self: start; }
  .tools li { grid-template-columns: 2.4rem 1fr; }
  .tools p { grid-column: 2; }
  .skeptic { grid-template-columns: 1fr; }
  .cutoff { grid-template-columns: 1fr; text-align: center; }
  .cutoff::before, .cutoff::after { display: none; }
}
