:root {
  color-scheme: light;
  --bg: #eef1f6;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 1.25rem;
  --shadow-card: 0 1px 1px rgba(17, 24, 39, 0.04), 0 4px 12px rgba(17, 24, 39, 0.06),
    0 16px 40px rgba(17, 24, 39, 0.08);
  --shadow-card-hover: 0 2px 4px rgba(17, 24, 39, 0.05), 0 12px 28px rgba(17, 24, 39, 0.1),
    0 28px 56px rgba(17, 24, 39, 0.1);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.site-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 241, 246, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.site-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-inset), var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-inset), var(--shadow-card-hover);
}

.site-card-static:hover {
  transform: none;
  box-shadow: var(--shadow-inset), var(--shadow-card);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.prose-policy p,
.prose-policy li {
  color: var(--muted);
  margin: 0;
}

.prose-policy h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.prose-policy ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-card,
  .btn-primary {
    transition: none;
  }
  .site-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
