:root {
  --canvas: #f5f4ef;
  --surface: #ffffff;
  --surface-muted: #f2f0ea;
  --surface-subtle: #e7e3da;
  --surface-strong: #17171b;
  --border: #ddd8ce;
  --border-strong: #c8c1b5;
  --ink-950: #111114;
  --ink-900: #1a1a1f;
  --ink-700: #4f4f58;
  --ink-600: #666670;
  --ink-500: #7d7d88;
  --accent-700: #5b5bd6;
  --accent-600: #6e56cf;
  --accent-500: #8a79eb;
  --accent-soft: #f2efff;
  --accent-soft-strong: #e6ddff;
  --accent-border: #cfc3ff;
  --success: #1f7a45;
  --success-soft: #e8f5ec;
  --error: #b43a45;
  --error-soft: #faecee;
  --warning: #6f5a2b;
  --warning-soft: #f6efe2;
  --white: #ffffff;
  --gray-50: #f2f0ea;
  --gray-100: #ebe8e1;
  --gray-200: #ddd8ce;
  --gray-300: #d0cabf;
  --gray-400: #b2ab9f;
  --gray-500: #7d7d88;
  --gray-600: #666670;
  --gray-700: #4f4f58;
  --gray-800: #2f2f35;
  --gray-900: #1a1a1f;
  --navy: #111114;
  --navy-light: #2a2a32;
  --navy-dim: rgba(17, 17, 20, 0.06);
  --navy-border: rgba(17, 17, 20, 0.12);
  --accent: #6e56cf;
  --accent-light: #f2efff;
  --gold: #6f5a2b;
  --gold-light: #f6efe2;
  --green: #1f7a45;
  --green-light: #e8f5ec;
  --red: #b43a45;
  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow-1: 0 1px 2px rgba(17, 17, 20, 0.04), 0 16px 32px rgba(17, 17, 20, 0.06);
  --shadow-2: 0 2px 6px rgba(17, 17, 20, 0.06), 0 22px 54px rgba(17, 17, 20, 0.08);
  --shadow-popup: 0 22px 56px rgba(17, 17, 20, 0.14), 0 8px 18px rgba(17, 17, 20, 0.08);
  --focus-ring: rgba(110, 86, 207, 0.28);
  --spectrum: linear-gradient(90deg, #5b5bd6 0%, #6e56cf 52%, #8a79eb 100%);
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-600);
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

input,
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-500);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.spectrum-bar {
  width: 100%;
  height: 2px;
  background: var(--spectrum);
}

.pb-brand-lockup {
  --pb-brand-word-size: 1.68rem;
  --pb-brand-mark-scale: 1.145;
  --pb-brand-mark-kern: -0.085;
  display: flex;
  align-items: flex-end;
  gap: 0;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.pb-logo-mark {
  display: block;
  width: auto;
  height: calc(var(--pb-brand-word-size) * var(--pb-brand-mark-scale));
  flex-shrink: 0;
  object-fit: contain;
  clip-path: inset(3.7% 6.1% 9.1% 5%);
  margin-right: calc(var(--pb-brand-word-size) * var(--pb-brand-mark-kern));
}

.pb-wordmark {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: var(--pb-brand-word-size);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.pb-settings-brand-suffix {
  letter-spacing: -0.055em;
}

.pb-wordmark-logo {
  display: block;
  width: auto;
  max-width: none;
  height: var(--pb-wordmark-logo-height, 2.2rem);
  flex-shrink: 0;
  object-fit: contain;
}

.pb-kicker {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pb-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

.pb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.pb-chip-accent {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-700);
}

.pb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pb-button:hover {
  transform: translateY(-1px);
}

.pb-button-primary {
  background: linear-gradient(135deg, var(--accent-700), var(--accent-600));
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pb-button-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px rgba(110, 86, 207, 0.18);
}

.pb-button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink-900);
}

.pb-button-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.pb-button-quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-700);
}

.pb-button-danger {
  background: var(--error);
  color: var(--white);
}

.pb-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-600);
  cursor: pointer;
}

.pb-link-button:hover {
  color: var(--accent-700);
  text-decoration: underline;
}
