/* ═══════════════════════════════════════════════
   DATELIER — DESIGN SYSTEM 2026
   Ultra-minimalist B/W + semantic colors only
   Dark mode default, light mode via toggle
   ═══════════════════════════════════════════════ */

/* ── Light Mode (base values) ── */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f2f2f2;
  --border: #e5e5e5;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999999;

  /* Semantic colors — ONLY for signals */
  --green: #22c55e;
  --green-light: rgba(34, 197, 94, 0.08);
  --red: #ef4444;
  --red-light: rgba(239, 68, 68, 0.08);
  --yellow: #eab308;
  --yellow-light: rgba(234, 179, 8, 0.08);
  --purple: #8b5cf6;
  --purple-light: rgba(139, 92, 246, 0.08);

  /* Platform colors (mkt only, muted) */
  --meta: #1877F2;
  --google: #EA4335;

  /* Layout */
  --card-radius: 12px;
  --nav-height: 56px;

  /* Fonts */
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-logo: 'EB Garamond', serif;
}

/* ── Dark Mode (default) ── */
html.dark {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #252525;
  --border: #2e2e2e;
  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;

  --green-light: rgba(34, 197, 94, 0.12);
  --red-light: rgba(239, 68, 68, 0.12);
  --yellow-light: rgba(234, 179, 8, 0.12);
  --purple-light: rgba(139, 92, 246, 0.12);
}

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

/* ── Body ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── Selection ── */
::selection {
  background: var(--text);
  color: var(--bg);
}

/* ── Scrollbar (subtle) ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════ */
.theme-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  user-select: none;
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════ */
.landing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  text-align: center;
}

.landing-wrap h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.landing-wrap h1 .accent-underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-style: italic;
}

.landing-wrap p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
  font-weight: 400;
}

.cards-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.choice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 36px;
  width: 300px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--text-secondary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html.dark .choice-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cc-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.cc-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.cc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Landing theme toggle ── */
.landing-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
}

@media (max-width: 768px) {
  .landing-wrap {
    padding: 20px;
  }

  .landing-wrap h1 {
    font-size: 2.2rem;
  }

  .cards-row {
    flex-direction: column;
    width: 100%;
  }

  .choice-card {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  width: 100%;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.by-datelier-footer {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--text);
  user-select: none;
}

.by-datelier-footer .by-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.5;
}

.by-datelier-footer .datelier-text {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.social-footer {
  color: var(--text-tertiary);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-footer:hover {
  color: var(--text-secondary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 20px;
  }

  .by-datelier-footer .datelier-text {
    font-size: 1.1rem;
  }
}