/* ============================================================
   Focus Reboot — design tokens
   Tech-native, editorial, warm dark, somatic-teal accent
   ============================================================ */

:root {
  /* Type */
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-sans: "Inter Tight", "Inter", system-ui, sans-serif;

  /* Color — warm graphite */
  --bg: oklch(0.16 0.01 60);
  --bg-1: oklch(0.19 0.011 60);
  --bg-2: oklch(0.22 0.012 60);
  --bg-3: oklch(0.27 0.013 60);
  --line: oklch(0.32 0.012 60);
  --line-soft: oklch(0.26 0.011 60);

  --fg: oklch(0.94 0.012 80);
  --fg-1: oklch(0.82 0.012 80);
  --fg-2: oklch(0.62 0.012 80);
  --fg-3: oklch(0.45 0.012 70);

  /* Accent — somatic teal */
  --accent: oklch(0.78 0.10 180);
  --accent-2: oklch(0.62 0.10 180);
  --accent-soft: oklch(0.30 0.04 180);

  /* Warning / signal — only used sparingly */
  --signal: oklch(0.78 0.13 50);

  /* Geometry */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  --hair: 1px solid var(--line);
  --hair-soft: 1px solid var(--line-soft);

  /* Density */
  --density: 1;
}

/* Resets specific to the artboard contents */
.fr * { box-sizing: border-box; }
.fr {
  font-family: var(--font-serif);
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.fr ::selection { background: var(--accent-soft); color: var(--fg); }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01","cv01"; }
.sans { font-family: var(--font-sans); }
.serif { font-family: var(--font-serif); }

.hair { border-color: var(--line); }
.dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

/* Duotone treatment for imagery placeholders */
.duotone {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 6px,
      color-mix(in oklab, var(--accent) 6%, transparent) 6px 7px),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: var(--hair);
  position: relative;
  overflow: hidden;
}
.duotone::after {
  content: attr(data-cap);
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.duotone .crosshair {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) center / 100% 50% no-repeat,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) center / 50% 100% no-repeat;
  opacity: 0.35;
  mask: radial-gradient(circle at center, black 60px, transparent 80px);
  -webkit-mask: radial-gradient(circle at center, black 60px, transparent 80px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: color-mix(in oklab, var(--accent) 24%, transparent); }
.btn .arr { color: var(--accent); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg-1);
}
.btn-ghost:hover { border-color: var(--fg-2); color: var(--fg); }

.btn-solid {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-solid:hover { background: color-mix(in oklab, var(--accent) 88%, white); }

/* Tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: var(--hair);
  border-radius: 999px;
  background: var(--bg-1);
}

/* Section labels */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* Headlines — editorial serif italic for accent */
.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-display em { font-style: italic; color: var(--accent); font-weight: 400; }
.h-section {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-section em { font-style: italic; color: var(--accent); }

/* Body */
.body-l {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-1);
  text-wrap: pretty;
}
.body-m {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-1);
}
.note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--fg-2);
}

/* Grid helpers */
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-soft { height: 1px; background: var(--line-soft); width: 100%; }

/* Scrollbars within artboards */
.fr ::-webkit-scrollbar { width: 8px; height: 8px; }
.fr ::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
.fr ::-webkit-scrollbar-track { background: transparent; }

/* Field */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.field input, .field select, .field textarea {
  background: var(--bg-1);
  border: var(--hair);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field .hint { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
