/* ==========================================================================
   MAKAW — Base Styles
   Reset, typography, global element styles
   ========================================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@400;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--makaw-cobalt);
  background-color: var(--makaw-white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--makaw-cobalt-dark);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

p {
  margin-bottom: var(--space-4);
  color: var(--neutral-600);
  line-height: var(--leading-normal);
}

a {
  color: var(--makaw-scarlet);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out-expo);
}

a:hover {
  color: var(--makaw-scarlet-dark);
}

a:focus-visible {
  outline: 2px solid var(--makaw-azure);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--weight-bold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ---- Lists ---- */
ul, ol {
  list-style: none;
}

/* ---- Media ---- */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

/* ---- Forms ---- */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--makaw-azure);
  outline-offset: 1px;
}

/* ---- Table Reset ---- */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ---- Selection ---- */
::selection {
  background-color: var(--makaw-scarlet);
  color: var(--makaw-white);
}

::-moz-selection {
  background-color: var(--makaw-scarlet);
  color: var(--makaw-white);
}

/* ---- Scrollbar (Webkit) ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--makaw-azure);
  border-radius: var(--radius-full);
}

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

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

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