/* ═══════════════════════════════════════
   FIELD SQUARE — base.css
   Variables, reset, typography
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --ink:        #0f1923;
  --ink2:       #162030;
  --ink3:       #1e2d3d;
  --gold:       #c8972a;
  --gold-l:     #e4ae3a;
  --gold-p:     rgba(200, 151, 42, 0.12);
  --gold-b:     rgba(200, 151, 42, 0.28);

  /* Surfaces */
  --surface:    #ffffff;
  --surface2:   #f6f7f9;
  --surface3:   #eef0f4;
  --surface4:   #e5e8ed;

  /* Text */
  --text:       #0f1923;
  --muted:      #64748b;
  --muted2:     #94a3b8;
  --muted3:     #b8c4d0;

  /* Borders */
  --border:     rgba(15, 25, 35, 0.09);
  --border2:    rgba(15, 25, 35, 0.16);
  --border3:    rgba(15, 25, 35, 0.24);

  /* Status */
  --red:        #ef4444;
  --red-p:      rgba(239, 68, 68, 0.10);
  --red-b:      rgba(239, 68, 68, 0.25);
  --green:      #10b981;
  --green-p:    rgba(16, 185, 129, 0.10);
  --green-b:    rgba(16, 185, 129, 0.25);
  --amber:      #f59e0b;
  --amber-p:    rgba(245, 158, 11, 0.10);
  --blue:       #3b82f6;
  --blue-p:     rgba(59, 130, 246, 0.10);

  /* Layout */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  18px;
  --radius-2xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 6px rgba(15, 25, 35, 0.07);
  --shadow:     0 2px 14px rgba(15, 25, 35, 0.09);
  --shadow-lg:  0 8px 32px rgba(15, 25, 35, 0.13);
  --shadow-xl:  0 20px 60px rgba(15, 25, 35, 0.18);

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

  /* Transitions */
  --t-fast:     0.12s ease;
  --t-med:      0.20s ease;
  --t-slow:     0.35s ease;

  /* Canvas */
  --grid-major: rgba(15, 25, 35, 0.10);
  --grid-minor: rgba(15, 25, 35, 0.04);
  --snap-color: var(--gold);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface2);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: var(--font); }
button { cursor: pointer; border: none; background: none; }
input, select, textarea { outline: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
h3 { font-size: 15px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; }

.text-sm  { font-size: 12px; }
.text-xs  { font-size: 11px; }
.text-mono { font-family: var(--mono); }
.text-muted { color: var(--muted); }
.text-muted2 { color: var(--muted2); }
.text-gold { color: var(--gold); }
.text-red  { color: var(--red); }
.text-green { color: var(--green); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* ── UTILITY ── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mb-4   { margin-bottom: 4px; }
.mb-8   { margin-bottom: 8px; }
.mb-12  { margin-bottom: 12px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }
* { scrollbar-width: thin; scrollbar-color: var(--border3) transparent; }

/* ── SECTION LABEL ── */
.sec-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
