/* ---------------------------------------------
   2. BASE RESET / NORMALIZATION
   --------------------------------------------- */

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

html {
  font-size: var(--fs-root);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-body-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}

/* Remove default margins on common elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

/* Images & media */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

/* Forms */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

/* Lists */
ul,
ol {
  margin: 0;
  padding-left: 1.5rem;
}

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

/* ---------------------------------------------
   3. TYPOGRAPHY BASICS
   --------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

small,
.text-small {
  font-size: var(--fs-small);
}

.text-muted {
  color: var(--color-text-muted);
}

/* Decorative / special type */
.blaka-text {
  font-family: var(--font-decorative);
}

/* ---------------------------------------------
   4. LAYOUT HELPERS (BASIC)
   --------------------------------------------- */

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

.content-narrow {
  max-width: var(--content-max-width);
  margin-inline: auto;
}

/* Simple flex helpers */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Spacing utility samples (we can expand later) */
.mt-md {
  margin-top: var(--space-md);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.pt-md {
  padding-top: var(--space-md);
}

.pb-md {
  padding-bottom: var(--space-md);
}