/*
 * Rapide theme: base tokens and document-level foundations.
 * Shared utility classes may coexist with this file.
 */

:root {
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --bg: #fcfbf7;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-soft: #f8f6f2;
  --text: #0f172a;
  --muted: #516075;
  --border: rgba(148, 163, 184, 0.22);
  --brand: #2f6fed;
  --brand-strong: #2158d5;
  --accent: #cb5e34;
  --shadow: 0 24px 70px -42px rgba(15, 23, 42, 0.28);
  --radius-xl: 1.75rem;
  --radius-lg: 1.25rem;
  --shell: 80rem;
}

.theme-dark {
  --bg: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.82);
  --bg-soft: #0f172a;
  --text: #f8fafc;
  --muted: #c3cedd;
  --border: rgba(148, 163, 184, 0.18);
  --brand: #60a5fa;
  --brand-strong: #3b82f6;
  --accent: #eba587;
  --shadow: 0 30px 90px -48px rgba(2, 6, 23, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 237, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(203, 94, 52, 0.1), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.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;
}

.site-backdrop {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 32rem;
  background:
    linear-gradient(to bottom, rgba(252, 251, 247, 0.8), rgba(252, 251, 247, 0.98) 35%, var(--bg)),
    var(--bg);
}

.theme-dark .site-backdrop {
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.96) 35%, var(--bg)),
    var(--bg);
}

.site-shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.site-section {
  padding: 4.5rem 0;
}

.site-section--tight {
  padding-top: 1rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.muted,
.footer-copy {
  color: var(--muted);
}

@media (max-width: 767px) {
  .site-section {
    padding: 3.25rem 0;
  }
}
