/* Shared styles for every page of DrawstringAI.com.
   Colours are defined once here; dark mode swaps them automatically. */

:root {
  --bg: #f7f6fb; --panel: #ffffff; --text: #1d1b26; --muted: #5f5b6e; --line: #e3e1ec;
  --accent: #7c1a78; --accent-soft: #f3e8f3; --accent-text: #ffffff;
  --ok: #1f7a43; --bad: #b3261e; --field: #ffffff;
  --radius: 12px; --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121118; --panel: #1c1b24; --text: #ecebf3; --muted: #a8a5b6; --line: #2e2c3a;
    --accent: #d07acb; --accent-soft: #2a1a2a; --accent-text: #121118;
    --ok: #6fd39a; --bad: #ff8a80; --field: #15141c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img, canvas { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main { padding: 32px 0 56px; }
h1 { font-size: 38px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.5px; }
h2 { font-size: 26px; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
                     gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text);
         text-decoration: none; font-size: 18px; }
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; font: inherit; font-weight: 600; font-size: 16px;
       border-radius: 8px; cursor: pointer; text-decoration: none; text-align: center;
       border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Panels and grids */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid > * { min-width: 0; }
.panel h3 { margin-top: 0; }
.steps { counter-reset: step; }
.steps .panel::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; margin-bottom: 8px; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.callout h2 { margin-top: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
       border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* Long-form pages (services, legal) */
.prose { max-width: 720px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Forms */
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; }
input[type=text], input[type=date], input[type=email] { width: 100%; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
input:focus, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; margin-top: 36px; }
  .lead { font-size: 18px; }
  main { padding-top: 24px; }
}
