/* Shared by examples.html (the hub) and the pages under examples/. */
:root {
  --bg: #141210; --bg-soft: #1c1916; --card: #211d19; --line: #322c25;
  --text: #efe9e1; --muted: #a89e90; --accent: #f5b53d; --red: #e88; --green: #8fc98f;
  --accent-soft: rgba(245, 181, 61, 0.12); --maxw: 940px;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
nav { padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); }
nav a { color: var(--muted); font-weight: 550; }
nav a:hover { color: var(--accent); }
nav .sep { margin: 0 8px; opacity: .6; }
main { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 64px; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.015em; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 0 12px; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 30px 0 8px; font-weight: 650; }
.num { color: var(--accent); font-weight: 650; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
code { overflow-wrap: anywhere; }
pre, code { font-family: var(--mono); }
pre { background: #0d0b0a; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: .88rem; line-height: 1.5; overflow-x: auto; margin: 12px 0; }
code { font-size: .9em; background: var(--card); padding: 1px 6px; border-radius: 5px; }
pre code { background: none; padding: 0; }
.k { color: var(--muted); } .bad { color: var(--red); } .ok { color: var(--green); }
ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin: 4px 0; }
.note { color: var(--muted); font-size: .93rem; margin-top: 18px; }
.btn { display: inline-block; background: var(--accent); color: #1a1408; font-weight: 650; padding: 10px 18px; border-radius: 10px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* One example: text beside a sticky 9:16 video. */
.case { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; margin-top: 32px; }
.case > div { min-width: 0; }  /* let wide <pre> scroll instead of widening the column */
.prompt { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 18px; font-size: 1.05rem; margin: 0 0 6px; }
.prompt::before { content: "You ask"; display: block; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
figure { margin: 0; position: sticky; top: 24px; }
video { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid var(--line); background: #000; display: block; }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; text-align: center; }
.download { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--accent-soft); border: 1px solid rgba(245, 181, 61, .35); border-radius: 12px; padding: 16px 18px; margin: 22px 0 6px; }
.download span { color: var(--muted); font-size: .92rem; flex-basis: 100%; }

/* Hub: one card per example. */
.cards { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; }
.card { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; margin: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 24px; }
.card img { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; object-position: left top; border-radius: 10px; border: 1px solid var(--line); display: block; }
.card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.card h2 a { color: var(--text); }
.card p { color: var(--muted); margin: 0 0 10px; }

/* More examples + download, at the foot of every page. */
.next { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 32px; }
.next h2 { font-size: 1.2rem; }
.next ul { list-style: none; padding: 0; }
.cta { text-align: center; border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 0; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0 0 22px; }
footer { text-align: center; padding: 40px 24px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 56px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
  figure { position: static; max-width: 300px; margin: 0 auto; }
  .card { grid-template-columns: 84px 1fr; gap: 16px; padding: 16px; }
  .card img { width: 84px; }
}
