/* FilmLight house look for the Flexi + FLAPI tutorial.
   Hero (FilmLight's web font) for headings and UI, Verdana for body,
   FilmLight blue for accents. Light and dark modes: follows the system,
   or the toggle (html[data-theme]). */

@font-face { font-family: "Hero"; font-weight: 400; font-display: swap;
  src: url(fonts/hero-webfont.woff) format("woff"), url(fonts/hero-webfont.ttf) format("truetype"); }
@font-face { font-family: "Hero"; font-weight: 300; font-display: swap;
  src: url(fonts/hero_light-webfont.woff) format("woff"), url(fonts/hero_light-webfont.ttf) format("truetype"); }

:root {
  --fl-blue: #008fd5;
  --fl-blue-dark: #0067a0;
  --bg: #ffffff;
  --panel: #f2f2f2;
  --text: #333333;
  --muted: #777777;
  --rule: #e2e2e2;
  --code-bg: #f2f2f2;
  --link: var(--fl-blue-dark);
  --link-hover: var(--fl-blue);
  --font-head: "Hero", "Montserrat", Arial, sans-serif;
  --font-body: Verdana, Arial, Helvetica, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --panel: #1c1c1c; --text: #e6e6e6; --muted: #999999;
    --rule: #2c2c2c; --code-bg: #1c1c1c; --link: #33a9e3; --link-hover: #66c0ec;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --panel: #1c1c1c; --text: #e6e6e6; --muted: #999999;
  --rule: #2c2c2c; --code-bg: #1c1c1c; --link: #33a9e3; --link-hover: #66c0ec;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 var(--font-body);
}

/* header bar, like filmlight.ltd.uk */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #111111; color: #f2f2f2;
  font-family: var(--font-head); letter-spacing: .04em;
}
.bar .brand { font-size: 15px; text-transform: uppercase; }
.bar .brand b { color: var(--fl-blue); font-weight: 400; }
.theme-toggle {
  font: 13px var(--font-head); letter-spacing: .04em; cursor: pointer;
  color: #f2f2f2; background: transparent; border: 1px solid #444; border-radius: 4px;
  padding: 5px 10px;
}
.theme-toggle:hover { border-color: var(--fl-blue); color: var(--fl-blue); }

main { max-width: 720px; margin: 0 auto; padding: 48px 16px 96px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--text); }
h1 { font-size: 40px; font-weight: 300; margin: 0 0 12px; }
h2 { font-size: 27px; margin: 56px 0 12px; }
h3 { font-size: 20px; margin: 36px 0 8px; }
.dek { font-family: var(--font-head); font-weight: 300; font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.byline { font-size: 13px; color: var(--muted); margin: 0 0 40px; }
.byline a { color: var(--muted); }
p { margin: 0 0 1.1em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin: .3em 0; }

code { font: .9em var(--font-mono); background: var(--code-bg); padding: .1em .35em; border-radius: 3px; }
pre { background: var(--code-bg); padding: 16px; border-radius: 4px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre code { background: none; padding: 0; }

figure { margin: 32px 0; }
figure img, figure video { display: block; width: 100%; height: auto; border-radius: 3px; background: var(--panel); }
figcaption { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
figcaption b { color: var(--text); font-weight: 400; font-family: var(--font-head); }

/* sidebars: the Flexi skill, the FLAPI Dev MCP, the sample project */
aside {
  background: var(--panel); border-left: 3px solid var(--fl-blue);
  padding: 18px 20px; margin: 32px 0; font-size: 15px; border-radius: 0 4px 4px 0;
}
aside h3 { margin-top: 0; font-size: 18px; }
aside p:last-child { margin-bottom: 0; }

/* figures for numbers: a simple key-value list (no tables needed) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; margin: 0 0 1.1em; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

footer { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 31px; }
  h2 { font-size: 23px; }
  main { padding-top: 32px; }
}
