/* ==========================================================================
   Base typography & layout — trimmed from gsweb-concept base.css
   (no page-transition veil / letterbox: this is a standalone tool, not
   part of the multi-page site navigation)
   ========================================================================== */

html {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  background:
    radial-gradient(circle at top left, rgba(168, 77, 168, 0.16), transparent 20%),
    radial-gradient(circle at 92% 10%, rgba(45, 205, 255, 0.12), transparent 18%),
    var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: calc(var(--tracking-tight) * 0.7);
  color: var(--fg);
}

p {
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}

a {
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out-quart);
}

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

small {
  font-size: var(--fs-sm);
  color: var(--fg-subtle);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus-visible {
  top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out-quart);
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--surface);
  color: var(--fg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
}
