/* Schoeberli – global styles */

:root {
  /* Tweakable */
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #18181c;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #f5f5f4;
  --ink-2: rgba(245,245,244,0.72);
  --ink-3: rgba(245,245,244,0.50);
  --ink-4: rgba(245,245,244,0.32);

  /* Accent per area */
  --accent-travel: #FF6A2A;
  --accent-finance: #3B82F6;
  --accent-forest: #84D26C;
  --accent-ai: #8B5CF6;

  /* Active accent (set per page) */
  --accent: var(--accent-travel);
  --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-med: 320ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.22,1,.36,1);
}

[data-theme="light"] {
  --bg: #fafaf8;
  --bg-2: #f3f3ef;
  --bg-3: #ebebe6;
  --line: rgba(0,0,0,0.10);
  --line-2: rgba(0,0,0,0.18);
  --ink: #0e0e0d;
  --ink-2: rgba(14,14,13,0.72);
  --ink-3: rgba(14,14,13,0.50);
  --ink-4: rgba(14,14,13,0.30);
}

[data-area="travel"]   { --accent: var(--accent-travel); }
[data-area="finance"]  { --accent: var(--accent-finance); }
[data-area="forest"]   { --accent: var(--accent-forest); }
[data-area="ai"]       { --accent: var(--accent-ai); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

/* ── Type ────────────────────────────────────────── */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(48px, 9vw, 144px);
  text-wrap: balance;
}
.h-1 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  font-size: clamp(36px, 5.5vw, 72px);
  text-wrap: balance;
}
.h-2 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(28px, 3.5vw, 44px);
}
.h-3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 22px;
  line-height: 1.2;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono { font-family: var(--font-mono); }

/* ── Layout ──────────────────────────────────────── */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

/* ── Header ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
[data-area="travel"]  .brand-mark,
[data-area="finance"] .brand-mark,
[data-area="forest"]  .brand-mark { background: var(--accent); color: #0a0a0b; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-link.active {
  color: var(--ink); background: var(--bg-2);
}
.nav-link.active::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1.5px; background: var(--accent); border-radius: 1px;
}

.nav-right { display: flex; gap: 8px; align-items: center; }
.lang-switch {
  display: flex; gap: 1px; padding: 2px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2);
}
.lang-switch button {
  appearance: none; border: 0; background: transparent;
  width: 28px; height: 24px; border-radius: 999px;
  color: var(--ink-3); font-size: 10px;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--ink); color: var(--bg); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: all var(--t-fast);
  cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--accent); color: #0a0a0b;
}
.btn-accent:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }

.btn-arrow svg { transition: transform var(--t-fast); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ── Cards & primitives ──────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--t-fast);
}
.card-soft {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-size: 11px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-3); margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ink-2); font-size: 14px; transition: color var(--t-fast); }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 24px 0; margin-top: 48px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
  font-family: var(--font-mono);
}

/* ── Page transitions ────────────────────────────── */
.page-enter {
  animation: pageIn 480ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Utility ─────────────────────────────────────── */
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.kbd {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--ink-2);
}

/* image-slot styling */
image-slot {
  --is-empty-bg: var(--bg-3);
  --is-empty-fg: var(--ink-3);
  --is-border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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