/* src/theme.css */
:root {
  --pear-50: #fef5d5;
  --pear-100: #fde79b;
  --pear-200: #f6cf55;
  --pear-300: #f0b62d;
  --pear-400: #d99a1b;
  --pear-500: #b68e23;
  --pear-600: #8c6c16;
  --pear-700: #684f0e;
  --pear-800: #4a3908;
  --pear-900: #2e2305;
  --pear-950: #1a1403;
  --pear-primary: var(--pear-300);
  --pear-primary-hover: var(--pear-400);
  --pear-on-primary: #111111;
  --pear-surface: #ffffff;
  --pear-on-surface: #111827;
  --pear-on-surface-muted: #6b7280;
  --pear-background: #fbfaf6;
  --pear-border: #e7e3d4;
  --pear-cream: #d1cba9;
  --font-heading:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    sans-serif;
  --font-body:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    sans-serif;
  --font-mono:
    "IBM Plex Mono",
    ui-monospace,
    SFMono-Regular,
    monospace;
  --font-display:
    "Hedvig Letters Serif",
    Georgia,
    serif;
  --pear-text-gradient:
    linear-gradient(
      
      113.64deg,
      #cc6e15 1.11%,
      #b68e23 44.66%,
      #e9bf77 94.36% );
  --pear-hero-gradient:
    linear-gradient(
      
      123.43deg,
      #1b1b1d 0%,
      #1f0a1d 33.417%,
      #0a081e 100.47% );
}
[data-theme=dark] {
  --pear-primary: var(--pear-300);
  --pear-primary-hover: var(--pear-200);
  --pear-on-primary: #111111;
  --pear-surface: #141418;
  --pear-on-surface: var(--pear-cream);
  --pear-on-surface-muted: rgba(255, 255, 255, 0.55);
  --pear-background: #0c0b12;
  --pear-border: rgba(255, 255, 255, 0.1);
}
code {
  font-size: 0.8125em;
  font-family: var(--font-body);
  padding: 0.15em 0.4em;
  border-radius: 0.25em;
  background: color-mix(in srgb, var(--pear-on-surface) 8%, var(--pear-surface));
  color: var(--pear-on-surface);
}
pre {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.pear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pear-on-primary);
  background: var(--pear-primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.pear-btn:hover {
  background: var(--pear-primary-hover);
}
.pear-btn:focus-visible {
  outline: 2px solid var(--pear-primary);
  outline-offset: 2px;
}
.pear-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--pear-on-surface);
  background: var(--pear-surface);
  border: 1px solid var(--pear-border);
  border-radius: 0.5rem;
}
.pear-input:focus {
  outline: none;
  border-color: var(--pear-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pear-primary) 25%, transparent);
}
.pear-input::placeholder {
  color: var(--pear-on-surface-muted);
}
.pear-card {
  background: var(--pear-surface);
  border: 1px solid var(--pear-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.pear-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pear-on-surface);
  margin-bottom: 0.25rem;
}
.pear-error {
  font-size: 0.875rem;
  color: #dc2626;
}
.pear-link {
  color: var(--pear-primary);
  text-decoration: none;
}
.pear-link:hover {
  text-decoration: underline;
}
.pear-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.pear-display-gradient {
  background: var(--pear-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.article-content h1 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--pear-on-surface);
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
}
.article-content h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--pear-on-surface);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pear-border);
}
.article-content h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--pear-on-surface);
  margin: 1.5rem 0 0.5rem;
}
.article-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--pear-on-surface-muted);
  margin-bottom: 1.25rem;
}
.article-content ul,
.article-content ol {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--pear-on-surface-muted);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content ul {
  list-style: disc;
}
.article-content ol {
  list-style: decimal;
}
.article-content li {
  margin-bottom: 0.375rem;
}
.article-content a {
  color: var(--pear-primary);
  text-decoration: underline;
  text-decoration-color: var(--pear-200);
  text-underline-offset: 2px;
}
.article-content a:hover {
  color: var(--pear-primary-hover);
  text-decoration-color: var(--pear-primary-hover);
}
.article-content code {
  font-size: 0.8125rem;
  font-family: var(--font-body);
  background: color-mix(in srgb, var(--pear-on-surface) 5%, var(--pear-surface));
  color: var(--pear-on-surface);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
.article-content pre {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  line-height: 1.7;
}
.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.article-content strong {
  font-weight: 600;
  color: var(--pear-on-surface);
}
