/* ============================================
   LUISON.IO — BASE STYLES
   Reset, typography, utilities
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300&family=Roboto:wght@300;400;500;700&family=Roboto+Mono:wght@300;400&display=swap');

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

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

body {
  background-color: var(--color-bg-page);
  color: var(--color-text-default);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; }

/* ── TYPOGRAPHY BASE ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-text-default);
}

/* ── GRADIENT TEXT UTILITY ── */
.grad {
  background: var(--grad-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION BASE ── */
section {
  padding: var(--section-xl) var(--page-margin);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: var(--border-subtle) solid var(--color-border-default);
  padding-bottom: 22px;
  margin-bottom: 68px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: var(--size-mono-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-placeholder);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text-default);
}

.section-title em {
  font-style: italic;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(74, 104, 212, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--color-brand-violet);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-subtle) solid var(--color-border-default);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  color: var(--color-text-default);
  border-color: var(--color-border-strong);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --page-margin: 24px; }
  section { padding: 72px var(--page-margin); }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 600px) {
  :root {
    --size-display: 36px;
    --size-h1:      28px;
    --size-h2:      22px;
    --size-h3:      18px;
    --size-body-lg: 16px;
    --size-body:    15px;
    --size-body-sm: 13px;
    --size-mono-md: 13px;
    --size-mono-sm: 11px;
  }
}
