/* AI Shorts Factory — static site. No JavaScript, no external assets. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c2230;
  --muted: #5b6474;
  --line: #e3e7ee;
  --accent: #1f5fbf;
  --accent-soft: #e8f0fc;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #171c25;
    --text: #e6e9ef;
    --muted: #9aa4b5;
    --line: #2a3140;
    --accent: #7fb0ff;
    --accent-soft: #1b2a45;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 20px; }

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em;
}
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: inline-block; position: relative; flex: none;
}
.brand .mark::after {
  content: ""; position: absolute; left: 11px; top: 8px;
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

main { padding: 40px 0 56px; }
.hero { padding: 16px 0 28px; }
.hero h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 62ch; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}

section { margin: 28px 0; }
h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 22px 0 8px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid .card h3 { margin-top: 0; }
.grid .card p { margin: 0; color: var(--muted); font-size: 15px; }

.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0;
}
.note p { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 15px; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--surface); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

.doc h1 { font-size: clamp(28px, 4.5vw, 36px); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

footer.bottom {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 22px 0; font-size: 14px; color: var(--muted);
}
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.bottom a { color: var(--muted); }

@media (max-width: 520px) {
  main { padding-top: 28px; }
  .card { padding: 16px 16px; }
  th, td { padding: 8px 8px; }
}
