/* Adelina V5 — base styles. The design tokens are the prototype's (Adelina Prototype v5 / Spec v4);
   screens use the prototype's inline styles for fidelity, and these classes carry what inline styles cannot:
   the base, focus rings, keyframes and hover states. */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #161614;
  --ink-hover: #3A3934;
  --ink-2: #3E3D39;
  --muted: #6B6963;
  --accent: #1C7E7E;
  --accent-soft: #E6F8F7;
  --ring-tint: #90E2E1;
  --error: #9F2F22;
  --rule: #E4E2DB;
  --input-border: #DAD8D0;
  --fill-1: #F3F2EE;
  --fill-2: #F5F4F0;
  --fill-3: #F7F6F2;
  --divider: #EFEDE7;
  --disabled-dot: #D3D0C8;
  --placeholder: #A8A59C;
  --video-fallback: #2A2826;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink-2); }

input, textarea, button, select { font-family: var(--font); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px !important; }
[data-noring]:focus-visible, [role="dialog"]:focus-visible { outline: none !important; }

h1, h2 { color: var(--ink); }

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

@keyframes adlPulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes adlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Hover states (the prototype's style-hover). Decoration only: nothing depends on hover. */
@media (hover: hover) {
  .h-ink:hover { background: var(--ink-hover) !important; }
  .h-f1:hover { background: #F1EFEA !important; }
  .h-f3:hover { background: var(--fill-1) !important; }
  .h-f7:hover { background: var(--fill-3) !important; }
  .h-dl:hover { background: var(--fill-1) !important; }
  .h-bink:hover { border-color: var(--ink) !important; }
  .h-field:hover { box-shadow: 0 2px 10px rgba(22, 22, 20, .07) !important; }
  .h-up:hover { background: #F1EFEA !important; color: var(--ink) !important; }
  .h-x:hover { background: var(--fill-1) !important; color: var(--ink) !important; }
}

/* Mobile carousel: hide the scrollbar but keep it scrollable. */
[style*="scroll-snap-type"]::-webkit-scrollbar { display: none; }
[style*="scroll-snap-type"] { scrollbar-width: none; }

video { display: block; }
