/* maikonmiranda.com — shared styles
   Palette: graphite dark, keyframe yellow accent, warm paper text */

:root {
  --bg: #101214;
  --surface: #16191c;
  --surface-2: #1d2125;
  --line: #2a2f34;
  --text: #ece9e2;
  --muted: #8a9199;
  --accent: #ffc933;        /* AE keyframe yellow */
  --accent-dim: #b38d24;
  --maxw: 1080px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-serif: "minion-pro", "Crimson Pro", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600; letter-spacing: -0.01em; font-size: 1.15rem;
}
.wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
/* keyframe diamond marker for active page */
.nav-links a.active::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
}

/* ---------- hero ---------- */
.hero { padding: 96px 0 64px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 17ch;
}
.hero p {
  margin-top: 26px;
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.05rem;
}
.hero .spec {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent-dim);
}

/* ---------- sections ---------- */
section { padding: 40px 0 72px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.section-label::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- video embeds ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 10px;
}
.caption b { color: var(--text); font-weight: 500; }

/* ---------- lottie grid ---------- */
.lottie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.lottie-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 160ms ease;
}
.lottie-card:hover { border-color: var(--accent-dim); }
.lottie-card dotlottie-player {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: 4px;
}
.live-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-dim);
  margin-bottom: 28px;
}

/* ---------- placeholder cards (shown until real assets are wired) ---------- */
.placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, #1b1f23 14px 28px),
    var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 20px;
}
.placeholder b { color: var(--accent); font-weight: 500; }

/* ---------- lab / scalex ---------- */
.lab-frame {
  width: 100%;
  height: min(78vh, 820px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.lab-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  margin-top: 24px;
}
.foot {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: baseline; justify-content: space-between;
}
.foot .mail {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em;
}
.foot .mail:hover { color: var(--accent); }
.foot-links { display: flex; gap: 24px; }
.foot-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.foot-links a:hover { color: var(--text); }

@media (max-width: 560px) {
  .hero { padding: 64px 0 40px; }
  .nav-links { gap: 18px; }
}
