/* BGRemoveX information pages and the homepage content below the studio.
   Plain static CSS (served from public/, no build step). Tokens match src/studio/studio.css so the pages share the
   studio's warm-cream, golden-yellow and charcoal identity, in light and dark. Every class is prefixed "site-" so it
   cannot collide with the studio's own class names. The tokens are scoped to the site elements (not :root) so they never
   change the studio's own variables on the homepage. */

.site-page, .site-home, .site-footer {
  --bg: #fff8e6;
  --card: #fffcf5;
  --well: #fdf6e6;
  --yellow: #ffd76a;
  --yellow-hover: #ffc94a;
  --yellow-soft: #fff1c4;
  --border: #f0e3c5;
  --border-strong: #e4d3ab;
  --text: #202020;
  --text-2: #6b675f;
  --focus: #b8860b;
  --radius-l: 16px;
  --radius-m: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
:root[data-theme='dark'] .site-page, :root[data-theme='dark'] .site-home, :root[data-theme='dark'] .site-footer {
  --bg: #161513;
  --card: #201f1c;
  --well: #1a1917;
  --yellow: #e9c25c;
  --yellow-hover: #f2cd6a;
  --yellow-soft: #3a3322;
  --border: #33302a;
  --border-strong: #45413a;
  --text: #f3efe6;
  --text-2: #a9a397;
  --focus: #e9c25c;
}
:root[data-theme='dark'] { color-scheme: dark; }

/* Standalone pages only (the homepage keeps the studio's own base styles). */
.site-page { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
.site-page *, .site-page *::before, .site-page *::after { box-sizing: border-box; }
.site-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; border-radius: var(--radius-m); background: var(--yellow); color: #202020; font-weight: 650; text-decoration: none; z-index: 10; }
.site-skip:focus { top: 12px; }

/* ---- Header (standalone pages) ---- */
.site-header { max-width: 1040px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.site-brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--border-strong); }
.site-brand .x { color: var(--yellow-hover); }
:root[data-theme='dark'] .site-brand .x { color: var(--yellow); }
.site-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-m); background: var(--yellow); color: #202020; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-cta:hover { background: var(--yellow-hover); }

/* ---- Content ---- */
.site-main { max-width: 760px; margin: 0 auto; padding: 8px 20px 48px; }
.site-main h1 { margin: 24px 0 12px; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.site-main h2 { margin: 40px 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.site-main h3 { margin: 24px 0 6px; font-size: 17px; line-height: 1.35; }
.site-main p, .site-main li { color: var(--text); }
.site-main a { color: inherit; text-decoration-color: var(--yellow-hover); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-main a:hover { text-decoration-color: currentColor; }
.site-lead { font-size: 18px; color: var(--text-2) !important; margin-top: 0; }
.site-updated { color: var(--text-2) !important; font-size: 14px; }
.site-note { padding: 14px 16px; border: 1px solid var(--border-strong); border-left: 4px solid var(--yellow); border-radius: var(--radius-m); background: var(--card); }
.site-steps { padding-left: 1.3em; }
.site-steps li { margin: 6px 0; }
.site-back { margin-top: 40px; }

/* ---- Homepage content below the studio ---- */
.site-home { border-top: 1px solid var(--border); background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
.site-home-inner { max-width: 1040px; margin: 0 auto; padding: 48px 20px 24px; }
.site-home h1 { margin: 0 0 12px; max-width: 760px; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.site-home h2 { margin: 48px 0 16px; font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.site-home h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.site-home p { margin: 0 0 12px; }
.site-home a { color: inherit; text-decoration-color: var(--yellow-hover); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-home .site-lead { max-width: 760px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.site-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--card); }
.site-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.site-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--yellow); color: #202020; font-weight: 700; font-size: 14px; }
.site-faq { max-width: 760px; }
.site-faq details { border-bottom: 1px solid var(--border); }
.site-faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style-position: outside; }
.site-faq details p { margin: 0 0 16px; color: var(--text-2); }

/* ---- Footer (all pages) ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); color: var(--text-2); font: 14px/1.5 var(--font); }
.site-footer-inner { max-width: 1040px; margin: 0 auto; padding: 24px 20px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { background: var(--yellow-soft); }
.site-footer nav a[aria-current='page'] { font-weight: 650; text-decoration: underline; text-decoration-color: var(--yellow-hover); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer small { margin-left: auto; font-size: 13px; }

@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  .site-brand { font-size: 19px; }
  .site-cta { padding: 0 14px; font-size: 14px; }
  .site-main, .site-home-inner { padding-left: 16px; padding-right: 16px; }
  .site-home-inner { padding-top: 36px; }
  .site-footer-inner { padding: 20px 16px 28px; }
  .site-footer small { margin-left: 0; }
}
