/* VENUS WT — Base styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

button,
a.btn,
input[type="submit"] {
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--link-hover);
}

a.btn:hover {
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--font-size-lg); }
h2 { font-size: var(--font-size-md); margin-bottom: var(--space-3); }
h3 { font-size: var(--font-size-base); margin-bottom: var(--space-2); }

.title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}

.desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: var(--line-height-tight);
}

.value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.micro {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-2);
  outline: 2px solid var(--accent-interactive);
  outline-offset: 2px;
}

/* Scrollbar */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Print */
@media print {
  .app-nav,
  .btn,
  nav,
  .skip-link,
  .theme-switcher,
  .theme-toggle {
    display: none !important;
  }

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

  .card {
    border: 1px solid #ddd;
    background: #fff;
  }

  a {
    color: #000;
  }
}

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