/* =========================================================
   GLOBAL BASE STYLES
   File: /css/globals/global.css
   ========================================================= */

@import "tokens.css";
@import "reset.css";

html {
  font-size: 16px;
  background-color: var(--surface-page);
}

body {
  font-family: var(--font-main);
  color: var(--ink-72);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4 {
  color: var(--ink-92);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-sm); }

/* Layout Helpers */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Section Rhythm */
section {
  padding-block: var(--space-xl);
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--surface-dark);
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 10px;
  border: 2px solid var(--surface-page);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}
#os-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-toast {
  background: var(--os-ink);
  color: white;
  padding: 16px 24px;
  border-radius: 0; /* Sharp corners */
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--os-border);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.os-toast-success { border-left: 4px solid var(--os-accent); }
.os-toast-error { border-left: 4px solid #ff4444; }
/* Reset global link behavior */
a, a:visited {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* Specific fix for the Header & Hero links */
.nav-links a, 
.hero-cta a,
.site-logo {
  color: var(--ink-92, #0f172a) !important;
}

/* Keep the custom hover effect we built earlier */
.nav-links a:hover {
  color: var(--ink-92);
}

/* Hero CTA links specifically (if not using .os-btn-primary) */
.hero-cta a {
  color: var(--ink-92);
  border-bottom: 1px solid var(--ink-92);
  padding-bottom: 2px;
  transition: opacity 0.3s var(--ease);
}

.hero-cta a:hover {
  opacity: 0.7;
}