/* ============================================================
   EMPTY SANDBOX — MAIN CSS
   Editorial redesign: thin weights, DM Sans, intentional whitespace
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:              #F9F9F7;
  --color-surface:         #FFFFFF;
  --color-surface-alt:     #F0F0EE;
  --color-text-primary:    #111111;
  --color-text-secondary:  #555555;
  --color-text-muted:      #999999;
  --color-accent:          #8B5CF6;
  --color-accent-dark:     #6D28D9;
  --color-accent-light:    rgba(139, 92, 246, 0.08);
  --color-border:          rgba(0, 0, 0, 0.07);
  --color-border-strong:   rgba(0, 0, 0, 0.13);

  /* Typography */
  --font-main:             'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:             'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --text-xs:               0.6875rem;  /* 11px */
  --text-sm:               0.875rem;   /* 14px */
  --text-base:             1rem;       /* 16px */
  --text-lg:               1.125rem;   /* 18px */
  --text-xl:               1.25rem;    /* 20px */
  --text-2xl:              1.5rem;     /* 24px */
  --text-3xl:              2rem;       /* 32px */
  --text-4xl:              2.5rem;     /* 40px */
  --text-5xl:              3.25rem;    /* 52px */
  --text-6xl:              4.25rem;    /* 68px */
  --text-7xl:              5.5rem;     /* 88px */
  --text-8xl:              7rem;       /* 112px */

  /* Font Weights — thin is the language */
  --weight-light:          300;
  --weight-regular:        400;
  --weight-medium:         500;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-40:  10rem;

  /* Border Radius */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 9999px;

  /* Shadows — extremely subtle */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max:     1440px;
  --container-padding: clamp(var(--space-5), 5vw, var(--space-16));
  --header-height:     96px;
  --section-gap:       var(--space-32);
}

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

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

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: var(--weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(var(--text-5xl), 7vw, var(--text-8xl)); font-weight: var(--weight-light); }
h2 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); font-weight: var(--weight-light); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); font-weight: var(--weight-regular); }
h4 { font-size: var(--text-xl); font-weight: var(--weight-regular); }
h5 { font-size: var(--text-base); font-weight: var(--weight-medium); }
h6 { font-size: var(--text-sm); font-weight: var(--weight-medium); }

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 65ch;
  font-weight: var(--weight-light);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img, video, svg { display: block; max-width: 100%; height: auto; }

/* ── Logo sizing ─────────────────────────────────────────── */
.site-logo__img {
  display: block;
  width: 144px;
  height: 72px;
  object-fit: contain;
}
ul, ol { list-style: none; }
button { font-family: var(--font-main); border: none; background: none; cursor: pointer; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-gap);
}

.section--sm { padding-block: var(--space-20); }
.section--lg { padding-block: var(--space-40); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn--outline:hover {
  background-color: var(--color-text-primary);
  color: #FFFFFF;
  border-color: var(--color-text-primary);
}

.btn--accent {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn--accent:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--white {
  background-color: #FFFFFF;
  color: var(--color-text-primary);
}

.btn--white:hover {
  background-color: var(--color-bg);
}

.btn--ghost {
  background-color: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--ghost:hover {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
}

/* ── Mono Label ────────────────────────────────────────────── */
/* Used for section markers, step numbers, tags */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0;
}

/* ── Section Label ─────────────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

/* ── Tag / Badge ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  white-space: nowrap;
}

.tag--accent {
  color: var(--color-accent);
  border-color: rgba(139, 92, 246, 0.25);
  background: var(--color-accent-light);
}

/* ── Utility ────────────────────────────────────────────────── */
.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

/* ── Scroll Reveal ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

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

/* ── Shared site CTA section (all pages except contact) ──── */
.site-cta-section {
  padding-block: var(--space-32);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-5);
    --section-gap:       var(--space-20);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-4);
    --section-gap:       var(--space-16);
  }
}
