/* Padula Consulting Group — shared styles */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --text: #13151b;
  --muted: #5a5f6e;
  --line: #e2dfd7;
  --accent: #3446d4;
  --accent-hover: #2636b8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(52, 70, 212, 0.08);
  --warm: #c2620a;
  --shadow: 0 1px 2px rgba(19, 21, 27, 0.04), 0 8px 24px rgba(19, 21, 27, 0.06);
  --glow: radial-gradient(60% 60% at 70% 20%, rgba(52, 70, 212, 0.14), transparent 70%),
          radial-gradient(40% 50% at 15% 80%, rgba(194, 98, 10, 0.10), transparent 70%);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d12;
    --surface: #13161e;
    --surface-2: #1a1e28;
    --text: #eceef4;
    --muted: #9ba2b4;
    --line: #252a37;
    --accent: #8f9cff;
    --accent-hover: #aab4ff;
    --accent-ink: #0b0d12;
    --accent-soft: rgba(143, 156, 255, 0.12);
    --warm: #f2b04a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --glow: radial-gradient(60% 60% at 70% 20%, rgba(143, 156, 255, 0.16), transparent 70%),
            radial-gradient(40% 50% at 15% 80%, rgba(242, 176, 74, 0.08), transparent 70%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #13161e;
  --surface-2: #1a1e28;
  --text: #eceef4;
  --muted: #9ba2b4;
  --line: #252a37;
  --accent: #8f9cff;
  --accent-hover: #aab4ff;
  --accent-ink: #0b0d12;
  --accent-soft: rgba(143, 156, 255, 0.12);
  --warm: #f2b04a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --glow: radial-gradient(60% 60% at 70% 20%, rgba(143, 156, 255, 0.16), transparent 70%),
          radial-gradient(40% 50% at 15% 80%, rgba(242, 176, 74, 0.08), transparent 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.4em; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Theme switch ---------- */
.theme-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.theme-switch button {
  display: grid; place-items: center; width: 32px; height: 28px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 1rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
