/*
Theme Name: David Base Theme
Description: David 公司站点的轻量基础主题，为 David 站点构建器提供稳定插槽。
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: david-base-theme
*/

:root {
  --david-content-width: 1200px;
  --david-text: #172033;
  --david-muted: #667085;
  --david-border: #e4e7ec;
  --david-accent: #2563eb;
}

*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--david-text); background: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; }
.david-fallback-shell { width: min(var(--david-content-width), calc(100% - 2rem)); margin-inline: auto; }
.david-fallback-header { border-bottom: 1px solid var(--david-border); }
.david-fallback-header__inner, .david-fallback-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.david-fallback-header ul { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.david-fallback-footer { margin-top: 4rem; border-top: 1px solid var(--david-border); color: var(--david-muted); }
.david-content { min-height: 45vh; }
.david-entry { width: min(var(--david-content-width), calc(100% - 2rem)); margin: 3rem auto; }
.david-entry__title { margin-bottom: 2rem; font-size: clamp(2rem, 5vw, 4rem); }
