/* Static pages (About, guides, privacy, terms, 404). Light by default; the
   header toggle sets data-theme on <html>, remembered by /about/theme.js. */
:root {
  color-scheme: light;
  --bg: #fbfaf7; --text: #1c1c1f; --muted: #5c5c66; --line: #e2e0da;
  --card: #f3f1ec; --link: #1f55c4; --link-hover: #143d94; --code: #ecebe6;
  --header: #ffffff; --header-line: #e2e0da;
  font: 17px/1.65 system-ui, sans-serif; color: var(--text); background: var(--bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e1e1f; --text: #e7e7ed; --muted: #b4b4bf; --line: #45454a;
  --card: #262629; --link: #a8c9ff; --link-hover: #d5e5ff; --code: #2c2c30;
  --header: #141416; --header-line: #2c2c30;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
main, footer { width: min(920px, 100% - 40px); margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(20px, (100% - 920px) / 2); background: var(--header); border-bottom: 1px solid var(--header-line); }
header img { display: block; max-width: 100%; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button { white-space: nowrap; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: var(--card); }
.theme-toggle:focus-visible { outline: 3px solid #92baff; outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
/* The icon shows what a click switches to: a moon in light mode, a sun in dark. */
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
main { padding: 42px 0; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; letter-spacing: -.035em; max-width: 800px; }
h2 { line-height: 1.25; margin-top: 0; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p, li { max-width: 78ch; }
li { margin-bottom: 12px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 3px solid #92baff; outline-offset: 4px; }
.button { display: inline-block; border-radius: 7px; padding: 10px 16px; color: white; background: #245cc7; text-decoration: none; font-weight: 600; }
.button:hover { background: #306ede; color: white; }
.lead { font-size: 1.2rem; }
.eyebrow, footer { color: var(--muted); }
section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
nav { padding-top: 20px; }
footer { padding: 24px 0 48px; font-size: .85rem; }
.legal h1 { margin-top: 4px; }
.legal code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--code); }
.summary { margin: 28px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.summary h2 { font-size: 1.1rem; margin-bottom: 8px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin-bottom: 6px; }
.usage-choice { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.usage-choice p { margin: 0; }
.usage-choice .usage-actions button { background: var(--bg); color: var(--text); border-color: var(--line); }
@media(max-width: 500px) { header img { width: 150px; height: 41px; } .header-actions .button { padding: 8px 12px; font-size: .9rem; } main { padding-top: 20px; } }

.dark-logo, :root[data-theme="dark"] .light-logo { display: none; }
:root[data-theme="dark"] .dark-logo { display: block; }

/* Original light illustrations explain each guide without mimicking editor UI. */
/* Figures line up with the text column (p max-width 78ch) instead of the wider page. */
.guide-figure { margin: 28px 0; max-width: 78ch; }
/* Screenshots are photos of a whole window: smaller than the column so they do not dominate the page. */
.guide-figure:has(img[src$=".jpg"]) { max-width: 680px; }
.guide-figure img { display: block; width: 100%; height: auto; border: 1px solid #dce2ec; border-radius: 14px; background: #f5f7fb; }
.guide-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.guide-example { padding: 18px 22px; margin: 24px 0 32px; border-left: 3px solid #7399e2; background: var(--card); border-radius: 0 8px 8px 0; }
.file-table-wrap { overflow-x: auto; margin: 24px 0 36px; }
.file-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.file-table caption { text-align: left; color: var(--muted); padding-bottom: 12px; }
.file-table th, .file-table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.file-table thead { background: var(--card); }
.file-table th[scope="row"] { width: 29%; }
@media (max-width: 500px) { .file-table th, .file-table td { padding: 12px 8px; } .guide-example { padding: 14px 16px; } }

/* Blog posts: a short direct answer first, then one card per tool. */
.answer-box { max-width: 78ch; box-sizing: border-box; margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid #2f8f5b; border-radius: 0 10px 10px 0; background: var(--card); }
.answer-box p { margin: 0; }
.disclosure { color: var(--muted); font-size: .92rem; }
.tool { padding: 30px 0 8px; border-top: 1px solid var(--line); }
.tool h2 { margin-bottom: 6px; }
.tool-meta { color: var(--muted); margin-top: 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.pros-cons h3 { font-size: 1rem; margin: 6px 0 4px; }
.pros-cons ul { margin-top: 4px; padding-left: 20px; }
.pros-cons li { margin-bottom: 6px; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.3rem; margin: 0 0 6px; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
