@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body-md);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent);
  color: var(--bg-primary);
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 300ms var(--ease-out-expo);
}

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

/* Accessibility Focus Outline */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: var(--leading-heading);
}

p {
  margin-bottom: var(--space-3);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  max-width: 60ch;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 200ms ease;
}

/* Custom Scrollbar for Abyss Theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-primary);
  border-radius: 4px;
}

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

/* Helper Utilities */
.display-light { font-weight: 300; }
.display-regular { font-weight: 400; }
.display-semibold { font-weight: 600; }
.display-italic { font-style: italic; font-weight: 300; }

.ui-light { font-weight: 300; }
.ui-regular { font-weight: 400; }
.ui-medium { font-weight: 500; }
.ui-semibold { font-weight: 600; }

.mono-font {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: var(--tracking-mono);
  line-height: var(--leading-mono);
}
