/* Shared styles for dopcasts.app. Colors follow src/theme/colors.ts. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --text: #222222;
  --text-secondary: #6a6a6a;
  --accent: #3f4fd9;
  --border: #ebebeb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1f23;
    --surface: #262a2f;
    --text: #e2e6eb;
    --text-secondary: #9ea6b0;
    --accent: #8c9bff;
    --border: #30353b;
  }
}

*, *::before, *::after { 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, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.site-header, main, .site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

main { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }

.meta { color: var(--text-secondary); margin: 0 0 1.5rem; }

ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0.25rem 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
