/* ==========================================================================
   Base — Reset, Typography, Global Styles
   ========================================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--lh-body);
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background-color: var(--color-secondary-fixed-dim);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: var(--lh-headline);
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-headline-lg);
  font-weight: 800;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-headline);
}

h2 {
  font-size: var(--text-headline-md);
}

h3 {
  font-size: var(--text-title-lg);
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: var(--text-title-md);
  font-weight: 600;
}

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

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

/* ---- Typography Utility Classes ---- */
.display-lg {
  font-family: var(--font-headline);
  font-size: var(--text-display-lg);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.display {
  font-family: var(--font-headline);
  font-size: var(--text-display-sm);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.headline-lg {
  font-family: var(--font-headline);
  font-size: var(--text-headline-lg);
  font-weight: 700;
  line-height: var(--lh-headline);
}

.headline-md {
  font-family: var(--font-headline);
  font-size: var(--text-headline-md);
  font-weight: 700;
  line-height: var(--lh-headline);
}

.title-lg {
  font-family: var(--font-body);
  font-size: var(--text-title-lg);
  font-weight: 600;
  line-height: var(--lh-title);
}

.title-md {
  font-family: var(--font-body);
  font-size: var(--text-title-md);
  font-weight: 600;
  line-height: var(--lh-title);
}

.body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body);
}

.body-md {
  font-size: var(--text-body-md);
  line-height: var(--lh-body);
}

.label-lg {
  font-family: var(--font-label);
  font-size: var(--text-label-lg);
  font-weight: 600;
  line-height: var(--lh-label);
}

.label-md {
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
}

.label-sm {
  font-family: var(--font-label);
  font-size: var(--text-label-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
}

/* ---- Color Utility ---- */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-on-surface-variant); }
.text-subtle { color: var(--color-outline); }

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-block;
}

/* ---- Responsive Typography ---- */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-display-sm);
  }

  h2 {
    font-size: var(--text-headline-lg);
  }
}
