/* ============================================================
   Reset + base + semantic typography
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: #000;
  background-image: url("../img/bg-waves.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--yellow-500); color: #1a1a1a; }

input::placeholder,
textarea::placeholder {
  color: rgba(239, 239, 239, 0.45);
  font-family: var(--font-mono);
}

/* Semantic typography */
.dm-display,
.dm-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  color: var(--yellow-500);
  letter-spacing: -0.01em;
  margin: 0;
}
.dm-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  color: var(--fg-1);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.dm-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-body);
  color: var(--fg-1);
  text-transform: uppercase;
  margin: 0;
}
.dm-lead {
  font-family: var(--font-mono);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--fg-1);
  margin: 0;
}
.dm-body {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
  color: var(--fg-1);
  margin: 0;
}
.dm-small {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--fg-1);
}
.dm-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  line-height: var(--lh-body);
  color: var(--fg-1);
}
.dm-micro {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  color: var(--fg-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Page fade animation */
@keyframes dmFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dm-page-fade { animation: dmFade 320ms var(--ease-standard) both; }
