/* ── Font Face Declarations ── */
@font-face {
  font-family: "Point Art";
  src: url("/static/fonts/PointArt.woff2") format("woff2"),
       url("/static/fonts/PointArt.woff") format("woff"),
       url("/static/fonts/PointArt.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monadi";
  src: url("/static/fonts/Monadi.woff2") format("woff2"),
       url("/static/fonts/Monadi.woff") format("woff"),
       url("/static/fonts/Monadi.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Reset & Base Styles ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Typography Base ── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

a:hover {
  color: var(--color-accent);
}

/* ── Content Flexibility ── */
.content {
  flex: 1;
}

.content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

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

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* ── Image Reset ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ── Container Site ── */
.container-site {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container-site { padding-inline: var(--space-6); }
}

@media (min-width: 1024px) {
  .container-site { padding-inline: var(--space-8); }
}

/* ── Font Family Classes ── */
.font-point { font-family: var(--font-accent); }
.font-monadi { font-family: var(--font-heading); }
.font-cairo { font-family: var(--font-body); }

/* ── Color Utility Classes (backward compatibility) ── */
.darkGreen { color: var(--color-primary); }
.bg-darkGreen { background-color: var(--color-primary); }
.morningFog { color: var(--color-accent); }
.bg-morningFog { background-color: var(--color-accent); }
.whiteColor { color: var(--color-surface); }
.bg-whiteColor { background-color: var(--color-bg); }

/* ── Shadow Utility Classes ── */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ── Border Utility Classes ── */
.border-darkGreen {
  border-color: var(--color-primary);
  border-width: 2px;
  border-style: solid;
}
