@custom-variant dark (&:is(.dark *));

/* Dark-only, deliberately (ADR 0021, amended for the Seal palette). The palette lives
   here rather than in `.dark` so that a page which never opts into the dark scope still
   resolves every colour utility. `@custom-variant dark` above and `class="dark"` on both
   <html> roots are retained: they are what a future `dark:` utility would need, and they
   sit above a palette that is always defined. Email templates and standalone offline
   Redoc HTML inline their light-mode hex values directly. */
:root {
  /* Surfaces — deep-water slate tiers */
  --surface-sunken: oklch(0.171 0.019 255.8); /* #0A1018 · Web backdrop, boot window */
  --surface-canvas: oklch(0.197 0.024 254.4); /* #0E1620 · Request & response workspace */
  --surface-chrome: oklch(0.223 0.028 253.5); /* #121C28 · Toolbar, sidebar, tab strip, recessed inputs */
  --surface-panel: oklch(0.256 0.034 252.6); /* #172433 · Code blocks, tables, cards */
  --surface-overlay: oklch(0.284 0.037 252.2); /* #1C2B3C · Dialogs, sheets, menus */
  --surface-interactive: oklch(0.312 0.043 253.1); /* #213246 · Buttons, hover, active rows */
  --scrim: oklch(0.148 0.015 256.7 / 72%); /* Translucent backdrop behind dialogs and sheets */

  /* Text */
  --foreground: oklch(0.945 0.013 244.3); /* #E6EEF5 · Primary text */
  --foreground-secondary: oklch(0.845 0.024 246.1); /* #C0CEDB · Dialog body, ghost buttons on overlays */
  --muted-foreground: oklch(0.706 0.035 245.5); /* #8FA3B5 · Labels, metadata, placeholders */
  --subtle-foreground: oklch(0.643 0.037 245.7); /* #7B90A3 · Line numbers, punctuation (4.76:1 on panel, 5.20:1 on chrome) */

  /* Borders & Focus */
  --border: oklch(0.816 0.065 245.1 / 12%); /* Dividers, panel edges */
  --border-control: oklch(0.816 0.065 245.1 / 16%); /* Inputs and buttons */
  --border-strong: oklch(0.816 0.065 245.1 / 22%); /* Dialogs and sheets */
  --input: var(--border-control);
  --ring: oklch(0.828 0.088 212.4); /* #7FD6E8 · Focus outline */

  /* Accent — ice cyan reserved for primary action, focus, and active tab/row */
  --accent-brand: oklch(0.828 0.088 212.4); /* #7FD6E8 */
  --accent-brand-hover: oklch(0.866 0.071 211.7); /* #9BE0EE */
  --accent-brand-foreground: oklch(0.228 0.035 221.6); /* #062028 · 10.19:1 on --accent-brand */

  /* Staff accent — magenta, the staff console's brand accent (applied by data-surface="staff" below) */
  --accent-staff: oklch(0.800 0.120 340.0); /* #F19FD6 */
  --accent-staff-hover: oklch(0.840 0.100 340.0); /* #F7B1DF */
  --accent-staff-foreground: oklch(0.220 0.050 340.0); /* #291022 · 8.93:1 on --accent-staff */

  /* Semantic shadcn mappings */
  --background: var(--surface-canvas);
  --card: var(--surface-panel);
  --card-foreground: var(--foreground);
  --popover: var(--surface-overlay);
  --popover-foreground: var(--foreground);
  --primary: var(--accent-brand);
  --primary-foreground: var(--accent-brand-foreground);
  --secondary: var(--surface-interactive);
  --secondary-foreground: var(--foreground);
  --muted: var(--surface-interactive);
  --accent: var(--surface-interactive);
  --accent-foreground: var(--foreground);

  /* Destructive — filled for the one irreversible action in a dialog, outlined elsewhere */
  --destructive: oklch(0.733 0.164 26.2); /* #FF7A70 */
  --destructive-foreground: oklch(0.200 0.054 28.7); /* #2A0A07 · 7.22:1 on --destructive */
  --destructive-text: oklch(0.788 0.122 25.1); /* #FF9A92 · Outlined destructive buttons and links */
  --destructive-border: oklch(0.733 0.164 26.2 / 60%);

  /* HTTP methods — seven distinct hues (POST orange so amber stays variable/warning only) */
  --method-get: oklch(0.785 0.135 159.5); /* #5FD39A */
  --method-post: oklch(0.761 0.130 55.5); /* #F09A5B */
  --method-put: oklch(0.759 0.124 258.4); /* #7FB2FF */
  --method-patch: oklch(0.755 0.141 295.4); /* #B79CFF */
  --method-delete: oklch(0.733 0.164 26.2); /* #FF7A70 */
  --method-head: oklch(0.749 0.029 244.8); /* #9FB0BF */
  --method-options: oklch(0.795 0.051 307.8); /* #C5B4D6 */

  /* Response status & feedback */
  --status-1xx: oklch(0.749 0.029 244.8); /* #9FB0BF */
  --status-2xx: var(--method-get);
  --status-3xx: var(--method-put);
  --status-4xx: oklch(0.806 0.144 79.9); /* #F0B441 */
  --status-5xx: var(--method-delete);
  --status-success: var(--method-get);
  --status-info: var(--accent-brand);
  --status-warning: oklch(0.806 0.144 79.9);
  --status-danger: var(--destructive);

  /* Secrets & variables */
  --secret-shared: oklch(0.759 0.124 258.4); /* #7FB2FF */
  --secret-shared-text: oklch(0.811 0.095 258.8); /* #9CC3FF · 5.82:1 on overlay pill */
  --secret-unset: oklch(0.806 0.144 79.9); /* #F0B441 */
  --var-highlight: oklch(0.806 0.144 79.9); /* #F0B441 */

  /* Code syntax */
  --syntax-key: oklch(0.819 0.057 251.0); /* #A9C7E8 */
  --syntax-string: oklch(0.851 0.089 155.1); /* #9FE0B5 */
  --syntax-number: oklch(0.825 0.089 61.6); /* #F0B98A */
  --syntax-boolean: oklch(0.798 0.115 295.6); /* #C3AEFF */
  --syntax-null: var(--muted-foreground);
  --syntax-punctuation: var(--subtle-foreground);

  /* Brand graphics */
  --brand-seal: oklch(0.959 0.012 231.7); /* #EAF3F8 */
  --brand-water: oklch(0.828 0.088 212.4); /* #7FD6E8 */
  --brand-crate: oklch(0.810 0.026 246.3); /* #B4C3D1 */
  --brand-crate-strap: oklch(0.672 0.031 246.7); /* #8798A8 */

  /* Geometry */
  --radius: 0.375rem;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --control-h-xs: 1.5rem; /* 24px */
  --control-h: 1.75rem; /* 28px */
  --control-h-lg: 2.125rem; /* 34px */
  --toolbar-h: 2.5rem; /* 40px */

  /* Typography */
  --font-family-sans: -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --text-2xs: 10px;
  --text-xs: 11px;
  --font-ui: 12px;
  --text-sm: 13px;
}

/* The staff console (ADR 0050 D13). On the root element, because --primary resolves where it is declared. */
:root[data-surface="staff"] {
  --accent-brand: var(--accent-staff);
  --accent-brand-hover: var(--accent-staff-hover);
  --accent-brand-foreground: var(--accent-staff-foreground);
  --ring: var(--accent-staff);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-foreground-secondary: var(--foreground-secondary);
  --color-subtle-foreground: var(--subtle-foreground);
  --color-surface-sunken: var(--surface-sunken);
  --color-surface-canvas: var(--surface-canvas);
  --color-surface-chrome: var(--surface-chrome);
  --color-surface-panel: var(--surface-panel);
  --color-surface-overlay: var(--surface-overlay);
  --color-surface-interactive: var(--surface-interactive);
  --color-scrim: var(--scrim);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-destructive-text: var(--destructive-text);
  --color-destructive-border: var(--destructive-border);
  --color-border: var(--border);
  --color-border-control: var(--border-control);
  --color-border-strong: var(--border-strong);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --font-sans: var(--font-family-sans);
  --font-mono: var(--font-family-mono);
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 4px);
}

/* harbo.io landing page. Seal tokens only (tokens.css is concatenated above this file at build time):
   no custom properties of its own, no fonts shipped, no script. Mobile-first. */

html {
  background: var(--surface-sunken);
  color: var(--foreground);
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

h1,
h2,
p,
ol,
ul {
  margin: 0;
}

a {
  color: var(--accent-brand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-brand-hover);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.875em;
}

/* Header */

.site-header {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  border-radius: var(--radius-md);
}

/* Page and hero */

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero {
  display: grid;
  gap: 3rem;
  padding-block: 2rem 4rem;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding-block: 4rem 5rem;
  }
}

.label {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-brand);
}

h1 {
  margin-top: 1rem;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 56rem) {
  h1 {
    font-size: 3.25rem;
  }
}

.pitch {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: 1.125rem;
  color: var(--foreground-secondary);
}

.invite {
  margin-top: 0.75rem;
  max-width: 30rem;
  color: var(--muted-foreground);
}

.download-area {
  margin-top: 2rem;
}

.download {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  background: var(--accent-brand);
  color: var(--accent-brand-foreground);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
}

.download:hover {
  background: var(--accent-brand-hover);
  color: var(--accent-brand-foreground);
}

.download-meta {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.soon {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: var(--surface-panel);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-lg);
  color: var(--foreground-secondary);
}

/* Install guide: a real sequence, so the steps carry their numbers. */

.install {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
}

.steps {
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  color: var(--foreground-secondary);
}

.steps li {
  position: relative;
  padding-left: 2.5rem;
  counter-increment: step;
}

.steps li + li {
  margin-top: 1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1px solid var(--border-control);
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--accent-brand);
  font-family: var(--font-family-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.steps strong {
  color: var(--foreground);
}

.command {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-sunken);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
  cursor: text;
}

/* What works today */

.today {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface-chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.features strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--foreground);
  font-weight: 600;
}

/* Footer */

.site-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer ul {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}
