@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  --bg: #0f1117;
  --fg: #e7e9ee;
  --muted: #8b909c;
  --accent: #4af0c4;
  --rule: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --fg: #16181d;
  --muted: #565c66;
  --accent: #0b8f74;
  --rule: rgba(0, 0, 0, 0.09);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.top-controls {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 2;
}
.no-js .top-controls { display: none; }
.lang-switch,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  box-sizing: border-box;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0 0.8rem;
  cursor: pointer;
  text-decoration: none;
}
.lang-switch:hover,
.theme-toggle:hover { color: var(--fg); border-color: var(--muted); }
.lang-switch:focus-visible,
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 1rem; height: 1rem; display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-en] { display: none; }
html[lang="en"] [data-en] { display: inline; }
html[lang="en"] [data-es] { display: none; }
header { margin: 0; }
h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
h1 .spa { color: var(--accent); opacity: 0.55; font-weight: 500; }
.tagline {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.0625rem;
}
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}
footer p { margin: 0; }
@media (max-width: 30rem) {
  .wrap { padding-top: 4.5rem; }
  .top-controls { top: 1rem; right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
