/* Tokens + reset compartidos por la web de Paula y el panel. */

:root {
  --abyss: #010b0d;
  --deep: #03191c;
  --sea: #062a2d;
  --turq: #40e0d0;
  --turq-hi: #8ff5ea;
  --turq-lo: #179e93;
  --coral: #ff9a8b;

  --ink: #eafcf9;
  --ink-2: rgb(234 252 249 / 0.68);
  --ink-3: rgb(234 252 249 / 0.42);
  --ink-4: rgb(234 252 249 / 0.2);

  --glass: rgb(9 46 49 / 0.55);
  --glass-strong: rgb(6 34 37 / 0.82);
  --hairline: rgb(143 245 234 / 0.14);
  --hairline-strong: rgb(143 245 234 / 0.26);
  --inner-light: inset 0 1px 0 rgb(255 255 255 / 0.08);
  --halo: 0 0 0 1px var(--hairline), 0 24px 60px -20px rgb(0 0 0 / 0.7);

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-ui: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ruido de película fijo: nunca sobre contenedores con scroll. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
