/* DESIGN_V1 — evoby unified design system */
/* Font: Geist · Accent: amber · Supports dark/light mode */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500&display=swap');

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --bg: #131210;
  --bg-raised: #1c1a17;
  --bg-hover: #242118;
  --border: rgba(255,255,255,0.09);
  --border-warm: rgba(212,146,31,0.25);
  --text: #f2ede6;
  --text-mid: #c8c1b8;
  --text-muted: #9e968c;
  --amber: #d4921f;
  --amber-btn: #e8a84a;
  --amber-dim: rgba(212,146,31,0.1);
  --focus: 0 0 0 3px rgba(232,168,74,0.5);
  --radius: 12px;
  --radius-lg: 18px;
  --sans: 'Geist', system-ui, sans-serif;
  --transition: 0.25s ease;
}

[data-theme="light"] {
  --bg: #faf7f2;
  --bg-raised: #f2ede4;
  --bg-hover: #ede7db;
  --border: rgba(0,0,0,0.08);
  --border-warm: rgba(180,110,20,0.22);
  --text: #1a1714;
  --text-mid: #4a4540;
  --text-muted: #7a7068;
  --amber: #b46a14;
  --amber-btn: #c47818;
  --amber-dim: rgba(180,110,20,0.08);
  --focus: 0 0 0 3px rgba(196,120,24,0.4);
}

html, body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--amber-btn); color: var(--bg);
  font-size: 13px; font-weight: 500; font-family: var(--sans);
  padding: 8px 16px; border-radius: 8px; z-index: 100;
  border: none; cursor: pointer; text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus { top: 1rem; outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.overlay-layer {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 9000; opacity: 0; transition: opacity 0.3s;
  mix-blend-mode: multiply;
}
.overlay-layer.active { opacity: 0.35; }

.evo-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; border-bottom: 0.5px solid var(--border);
  height: 56px; position: sticky; top: 0;
  background: var(--bg); z-index: 40;
  transition: border-color var(--transition), background var(--transition);
}
.evo-logo { font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; text-decoration: none; }
.evo-logo span { color: var(--amber-btn); }
.evo-nav-right { display: flex; align-items: center; gap: 8px; }

.evo-theme-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 0.5px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.evo-theme-btn:hover { border-color: var(--border-warm); color: var(--amber); background: var(--amber-dim); }
.evo-theme-btn:focus-visible { outline: none; box-shadow: var(--focus); }

.evo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-btn); color: var(--bg);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 0 20px; height: 44px; border-radius: 10px;
  border: none; cursor: pointer; min-width: 44px;
  transition: opacity 0.15s, transform 0.1s;
}
.evo-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.evo-btn:active { transform: scale(0.98); }
.evo-btn:focus-visible { outline: none; box-shadow: var(--focus); }

.evo-btn-sm {
  font-size: 13px; font-weight: 500; color: var(--bg);
  background: var(--amber-btn); padding: 0 16px; height: 36px;
  border-radius: 8px; border: none; cursor: pointer;
  font-family: var(--sans); min-width: 44px;
  transition: opacity 0.15s;
}
.evo-btn-sm:hover { opacity: 0.88; }
.evo-btn-sm:focus-visible { outline: none; box-shadow: var(--focus); }

.evo-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-mid);
  font-family: var(--sans); font-size: 14px;
  padding: 0 20px; height: 44px; border-radius: 10px;
  border: 0.5px solid var(--border); cursor: pointer; min-width: 44px;
  transition: border-color 0.15s, color 0.15s;
}
.evo-btn-outline:hover { border-color: rgba(128,128,128,0.3); color: var(--text); }
.evo-btn-outline:focus-visible { outline: none; box-shadow: var(--focus); }

.evo-card {
  background: var(--bg-raised); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: background 0.15s, border-color 0.15s;
}
.evo-card:hover { background: var(--bg-hover); }

.evo-input {
  width: 100%; background: rgba(128,128,128,0.06);
  border: 0.5px solid var(--border-warm); border-radius: 10px;
  padding: 0 14px; height: 44px; color: var(--text);
  font-size: 14px; font-family: var(--sans); outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.evo-input:focus { border-color: var(--amber); background: rgba(128,128,128,0.09); box-shadow: var(--focus); }
.evo-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.evo-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--amber);
  transition: color var(--transition);
}

.evo-footer {
  padding: 1.5rem 2rem; border-top: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  transition: border-color var(--transition);
}
.evo-footer-logo { font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: -0.01em; }
.evo-footer-copy { font-size: 12px; color: var(--text-muted); }

.evo-a11y-panel { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.evo-a11y-toggle { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-raised); border: 0.5px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: border-color 0.15s, color 0.15s; }
.evo-a11y-toggle:hover { border-color: var(--border-warm); color: var(--amber); }
.evo-overlay-picker { background: var(--bg-raised); border: 0.5px solid var(--border); border-radius: 14px; padding: 1rem; display: none; flex-direction: column; gap: 10px; min-width: 180px; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.evo-overlay-picker.open { display: flex; }
.evo-picker-label { font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.evo-swatch-row { display: flex; gap: 6px; flex-wrap: wrap; }
.evo-swatch { width: 32px; height: 32px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s, transform 0.1s; }
.evo-swatch:hover { transform: scale(1.1); }
.evo-swatch:focus-visible { outline: none; box-shadow: var(--focus); }
.evo-swatch.active { border-color: var(--text); }
.evo-swatch-off { background: var(--bg-hover); border: 0.5px solid var(--border); position: relative; }
.evo-picker-note { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 580px) {
  .evo-nav { padding: 0 1.25rem; }
  .evo-nav-links { display: none; }
  .evo-a11y-panel { bottom: 1rem; right: 1rem; }
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
