/* Jaraza — site styles. No external fonts or resources. */

:root {
  --bg: #fbfaf8;
  --bg-elev: #ffffff;
  --text: #16151a;
  --text-muted: #55535e;
  --border: #e5e2dc;
  --accent: #5b3ee6;
  --accent-2: #e2466f;
  --accent-3: #f59f2d;
  --link: #4a2fd4;
  --focus: #5b3ee6;
  --glow-opacity: 0.55;
  --radius: 14px;
  --maxw: 72rem;
  --prose: 44rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b10;
    --bg-elev: #15141b;
    --text: #f1eff6;
    --text-muted: #aaa6b8;
    --border: #2a2833;
    --accent: #8f7bff;
    --accent-2: #ff6f95;
    --accent-3: #ffb65c;
    --link: #b3a6ff;
    --focus: #b3a6ff;
    --glow-opacity: 0.4;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.home .site-header {
  border-bottom-color: transparent;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* ---------- Splash ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 11rem);
  padding: 4rem 0 5rem;
  text-align: center;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--glow-opacity);
  animation: drift 26s ease-in-out infinite alternate;
}

.backdrop span:nth-child(1) {
  top: -18vmax;
  left: -12vmax;
  background: var(--accent);
}

.backdrop span:nth-child(2) {
  bottom: -22vmax;
  right: -14vmax;
  background: var(--accent-2);
  animation-duration: 32s;
  animation-delay: -8s;
}

.backdrop span:nth-child(3) {
  top: 30%;
  left: 55%;
  width: 28vmax;
  height: 28vmax;
  background: var(--accent-3);
  opacity: calc(var(--glow-opacity) * 0.6);
  animation-duration: 38s;
  animation-delay: -14s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(0.95); }
}

.home main,
.home .site-footer {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta {
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.cta .note {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Long-form pages ---------- */

.page {
  padding: 3.5rem 0 4.5rem;
}

.prose {
  max-width: var(--prose);
  margin: 0 auto;
}

.prose h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.prose .meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: 1.5rem;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  scroll-margin-top: 1.5rem;
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li::marker {
  color: var(--text-muted);
}

.prose strong {
  font-weight: 650;
}

.callout {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-elev);
  font-size: 0.95rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 2rem;
  font-size: 0.95rem;
}

.facts {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.facts dt {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.facts dt:last-of-type,
.facts dd:last-of-type {
  border-bottom: 0;
}

@media (max-width: 34rem) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.cards h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.cards p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

details {
  margin: 0 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
}

summary {
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

details > div {
  padding: 0 1.1rem 0.4rem;
}

address {
  font-style: normal;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.center {
  text-align: center;
}

.small {
  color: var(--text-muted);
  font-size: 0.88em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.home .site-footer {
  border-top-color: transparent;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .backdrop,
  .site-nav,
  .skip-link,
  .toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
