/* Daniel Stooss — site styles (Stooss Design System tokens) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink-900:#0c0e12; --ink-800:#16181d; --ink-700:#2a2d34; --ink-600:#474b54;
  --ink-500:#6b6f78; --ink-400:#989da6; --ink-300:#c4c8cf; --ink-200:#e2e4e8;
  --ink-100:#eef0f2; --ink-050:#f6f7f8;
  --paper:#fbfbfa; --paper-2:#ffffff;
  --blue-700:#1c3fb0; --blue-600:#2552d6; --blue-500:#2f63ff; --blue-400:#6e92ff;
  --blue-100:#e7edff; --blue-050:#f2f5ff;
  --text-body:var(--ink-700);
  --font-sans:'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;
  --radius-md:6px; --radius-sm:4px;
  --shadow-md:0 4px 16px rgba(12,14,18,0.08);
  --shadow-lg:0 12px 40px rgba(12,14,18,0.12);
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; background:var(--paper); color:var(--text-body);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3,p { margin:0; }
img { max-width:100%; }

a { color:var(--blue-600); text-decoration:none; transition:color 120ms cubic-bezier(0.2,0,0,1); }
a:hover { color:var(--blue-700); }
nav a:hover { color:var(--ink-900); }
.lang-switch a:hover { color:var(--ink-900); background:var(--ink-050); }
button:hover { background:var(--blue-600); border-color:var(--blue-600); }
button:active { background:var(--blue-700); border-color:var(--blue-700); }

/* Guard against horizontal overflow */
html, body { max-width:100%; overflow-x:hidden; }

/* --- Tablet & below: stack the two-column grids --- */
@media (max-width: 900px) {
  /* Any 2-col grid used on the page collapses to one column */
  [style*="grid-template-columns:1.25fr 0.75fr"],
  [style*="grid-template-columns:1fr 0.95fr"],
  [style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns:1fr !important;
    gap:40px !important;
  }
  /* Specialties: 3 -> 2 columns */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns:1fr 1fr !important; }
  /* Roomier section rhythm shrinks a touch */
  section, footer > div { }
}

/* --- Phones --- */
@media (max-width: 640px) {
  /* Everything single column */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns:1fr !important; }
  /* Reduce oversized vertical padding (96–128px) on the inner wrappers */
  section > div,
  footer > div { padding-left:20px !important; padding-right:20px !important; }
  section[style*="padding:96px 32px"] { padding-left:20px !important; padding-right:20px !important; }
  /* Hero section padding + header padding */
  section[style*="padding:96px 32px 64px"] { padding:56px 20px 48px !important; }
  header > div { padding-left:20px !important; padding-right:20px !important; }
  /* Hide desktop nav links on small screens (logo, language switcher + CTA remain) */
  nav > a { display:none; }
  .lang-switch { margin-left:0 !important; }
  /* Footer CTA row: stack heading over link */
  footer h2 { max-width:100% !important; }
}
