/* PodGen design tokens and base elements. System fonts only: no third-party requests. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1d1b18;
  --ink-2: #3b3732;
  --muted: #6f6a61;
  --line: #e5dfd4;
  --line-strong: #cfc7b9;
  --accent: #d9461f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe8e1;
  --ok: #1f7a4d;
  --ok-soft: #e1f2e9;
  --warn: #8a5a00;
  --warn-soft: #fcf0d4;
  --err: #b3261e;
  --err-soft: #fbe5e3;
  --focus: #1b5fd9;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 6px 20px rgba(40, 30, 10, 0.05);
  --radius: 12px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f;
    --surface: #1d1a16;
    --surface-2: #26221d;
    --ink: #f3eee5;
    --ink-2: #d9d2c5;
    --muted: #a39b8d;
    --line: #342f28;
    --line-strong: #4a443a;
    --accent: #ff7a4d;
    --accent-ink: #1b0c05;
    --accent-soft: #3a1f15;
    --ok: #5fd39a;
    --ok-soft: #14301f;
    --warn: #f0be5a;
    --warn-soft: #34290f;
    --err: #ff8a80;
    --err-soft: #3a1815;
    --focus: #7aa7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14120f;
  --surface: #1d1a16;
  --surface-2: #26221d;
  --ink: #f3eee5;
  --ink-2: #d9d2c5;
  --muted: #a39b8d;
  --line: #342f28;
  --line-strong: #4a443a;
  --accent: #ff7a4d;
  --accent-ink: #1b0c05;
  --accent-soft: #3a1f15;
  --ok: #5fd39a;
  --ok-soft: #14301f;
  --warn: #f0be5a;
  --warn-soft: #34290f;
  --err: #ff8a80;
  --err-soft: #3a1815;
  --focus: #7aa7ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 6px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.95rem/1 var(--sans);
  padding: 0.8em 1.15em; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(0.95); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--err); }
.btn.sm { min-height: 34px; padding: 0.5em 0.8em; font-size: 0.85rem; border-radius: 8px; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0.7em 0.85em; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35em; }
.field { margin-bottom: 1.1rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.3em; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8rem; font-weight: 600; padding: 0.25em 0.7em; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
