@font-face {
  font-family: Instrument Sans;
  src: url('/seo/instrument-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Instrument Serif;
  src: url('/seo/instrument-serif.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0b0b0c;
  --panel: #121214;
  --raised: #18181b;
  --fg: #f4f2ee;
  --muted: #b9b6b0;
  --faint: #aaa59d;
  --line: #2e2d2e;
  --tally: #ff4d2e;
  --shell: min(1280px, calc(100% - 96px));
  background: var(--canvas);
  color: var(--fg);
  font: 16px/1.6 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--tally); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { line-height: 1.2; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 10px auto auto 10px; padding: 8px 16px; background: var(--panel); transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; white-space: nowrap; font: italic 44px/.95 'Instrument Serif', Georgia, serif; }
.wordmark span { display: inline-block; width: 4px; height: .68em; margin-left: .08em; border-radius: 4px; background: var(--tally); }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px clamp(14px, 3vw, 42px); }
nav a, .footer-inner > a:last-child { font-size: .93rem; color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current='page'], .footer-inner > a:hover { color: var(--fg); }
nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--tally); text-underline-offset: .45em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .7em; min-height: 44px; padding: 8px 17px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 650; white-space: nowrap; }
.button:hover { border-color: var(--muted); }
.primary { background: var(--tally); color: var(--canvas); border-color: var(--tally); padding-inline: 20px; }
.primary:hover { background: #ff765d; border-color: #ff765d; }
.text-link { text-underline-offset: .35em; font-weight: 600; }
.text-link:hover, .source-link:hover, .back-link:hover, .related a:hover { color: #ff806a; }

.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(64px, 8.7vw, 126px); }
h1 { font-weight: 600; font-size: clamp(42px, 5.3vw, 82px); line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
h1 em { font: italic 1.16em/.86 'Instrument Serif', Georgia, serif; letter-spacing: -.018em; color: #f6e8db; }
.hero-copy > p, .editorial-intro > p { max-width: 38rem; margin-top: 23px; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 31px; }
.actions .text-link { font-size: .93rem; }

.visual { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 24px 65px #0009; }
.mock-title { display: flex; gap: 8px; align-items: center; padding: 11px 15px; color: var(--faint); border-bottom: 1px solid var(--line); font: .69rem/1.4 ui-monospace, monospace; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tally); }
.mock-spacer { flex: 1; }
.mock-viewer { position: relative; padding: 10px; background: #0e0e10; }
.mock-viewer img { width: 100%; height: auto; max-height: 275px; aspect-ratio: 2.05; object-fit: cover; }
.viewer-time { position: absolute; right: 18px; bottom: 18px; color: white; background: #000a; padding: 3px 6px; border-radius: 3px; font: .69rem/1.25 ui-monospace, monospace; }
.mock-timeline { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 0 10px 16px; background: #151519; border-top: 1px solid var(--line); }
.ruler { display: flex; justify-content: space-between; margin-left: 24px; padding: 7px 0; color: #9d9b9e; font: .61rem/1 ui-monospace, monospace; }
.clip-row { display: grid; grid-template-columns: 20px repeat(3, minmax(0, 1fr)); align-items: center; gap: 4px; font: .61rem/1 ui-monospace, monospace; color: var(--faint); }
.clip { display: block; padding: 8px 5px; overflow: hidden; white-space: nowrap; border-radius: 3px; }
.clip-blue { color: #c6d6f1; background: #253551; border-top: 2px solid #4f668b; }
.clip-audio { height: 20px; background: repeating-linear-gradient(90deg, #3e7867 0 2px, #24483f 2px 6px); border-block: 4px solid #24483f; }
.clip-row .clip-audio:last-child, .clip-music { grid-column: span 2; }
.clip-music { height: 16px; background: repeating-linear-gradient(90deg, #5f4789 0 2px, #3e2f56 2px 7px); border-block: 3px solid #3e2f56; }
.playhead { position: absolute; inset: 0 auto 0 47%; width: 1px; background: var(--tally); }
.playhead::before { content: ''; display: block; width: 8px; height: 9px; transform: translateX(-3px); background: var(--tally); clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%); }
.collaborator { position: absolute; padding: 4px 6px; border-radius: 3px; color: #111; font: 650 .66rem/1 'Instrument Sans', sans-serif; }
.collaborator::before { content: ''; position: absolute; width: 9px; height: 12px; top: -8px; left: -6px; clip-path: polygon(0 0, 100% 70%, 55% 65%, 30% 100%); background: inherit; }
.maya { top: 29px; left: 31%; background: #7ddaf4; }
.jonah { top: 68px; left: 74%; background: #c6ef75; }
figcaption { padding: 9px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: .72rem; }
.agent-panel { display: grid; gap: 14px; padding: clamp(15px, 3vw, 30px); }
.agent-note { padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); }
.agent-note p { margin-top: 5px; }
.agent-label, .preview-state { color: var(--faint); font: .7rem/1.4 ui-monospace, monospace; }
.response { background: #161616; }
.preview-state { display: inline-block; margin-top: 10px; color: #f7a995; }
.agent-track { display: grid; grid-template-columns: 1fr .13fr .78fr .16fr 1.1fr .1fr 1fr; gap: 4px; height: 28px; }
.agent-track span { border-block: 5px solid #25463c; background: repeating-linear-gradient(90deg, #3e7867 0 2px, #25463c 2px 6px); }
.agent-track i { border: 1px dashed #ff806a; background: #ff4d2e26; }

.section { padding-block: clamp(36px, 5.5vw, 72px); border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 26px; font-size: clamp(27px, 3.1vw, 43px); letter-spacing: -.04em; }
.steps, .feature-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: steps; }
.steps > li { counter-increment: steps; }
.steps > li::before { display: block; margin-bottom: 11px; color: #ff806a; font: .78rem/1.3 ui-monospace, monospace; content: counter(steps, decimal-leading-zero); }
.steps h3, .feature-grid h3 { font-size: 1.18rem; margin-bottom: 8px; }
.steps p, .feature-grid p, .setup > p { color: var(--muted); max-width: 45rem; }
.commands { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 23px; }
.commands > div, .guide-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: clamp(16px, 2.7vw, 28px); }
pre { overflow-x: auto; background: #0e0e0f; border-radius: 4px; padding: 10px; }
code { font: .82em/1.5 ui-monospace, monospace; }
.related { display: flex; gap: 10px 24px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; padding: 19px 0; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.03rem; }
.related a { color: var(--muted); }

.editorial-intro { padding-block: clamp(54px, 8vw, 104px) clamp(27px, 4.5vw, 58px); }
.editorial-intro h1 { max-width: 18ch; }
.guide-card { display: flex; flex-direction: column; gap: 14px; }
.guide-card h2 { font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -.035em; }
.guide-card h2 a { text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; }
.guide-card > p { color: var(--muted); }
.guide-card .text-link { margin-top: auto; align-self: start; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); }
.method { color: var(--muted); max-width: 52rem; margin-bottom: 28px; padding-left: 17px; border-left: 2px solid var(--tally); }
.comparison-list { list-style: none; margin: 0; padding: 0; }
.comparison-list > li { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 14px 40px; border-top: 1px solid var(--line); padding: 27px 0; }
.comparison-list h2 { font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.035em; margin-bottom: 5px; }
.comparison-list p { color: var(--muted); }
.comparison-list .use-case { color: var(--fg); max-width: 30ch; }
.source-link { display: inline-block; margin-top: 9px; font-size: .87rem; }
.site-footer { margin-top: clamp(40px, 7vw, 88px); border-top: 1px solid var(--line); border-bottom: 0; }
.footer-inner { min-height: 94px; }

@media (max-width: 900px) {
  :root { --shell: calc(100% - 56px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .visual { max-width: 640px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 36px); }
  .header-inner, .footer-inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 13px; }
  .header-inner nav, .footer-inner nav { order: 2; width: 100%; justify-content: space-between; gap: 6px 10px; padding-block: 5px; }
  .header-inner nav a, .footer-inner nav a { font-size: .83rem; }
  .wordmark { font-size: 38px; }
  .hero { gap: 30px; padding-block: 47px 40px; }
  .hero-copy > p, .editorial-intro > p { margin-top: 16px; }
  .actions { margin-top: 22px; }
  .steps, .feature-grid, .guide-grid, .comparison-list > li { grid-template-columns: minmax(0, 1fr); }
  .steps, .feature-grid { gap: 24px; }
  .comparison-list > li { padding-block: 21px; }
}
