/* base.css - Reset, typography, variables */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-sidebar: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-status-red: #dc2626;
  --color-status-green: #16a34a;
  --color-status-orange: #ea580c;
  --color-status-yellow: #ca8a04;

  /* Reader prompt overlay */
  --ui-accent: rgba(255, 255, 255, 0.97);
  --ui-depth: 999999;
  --ui-blur: 8px;
  --content-fade: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.85) 15%, var(--ui-accent) 40%);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-4);
}

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Mono font utility */
.mono-font {
  font-family: var(--font-mono);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Reader prompt overlay styles */
.avatar {
  --h: 100vh;
  --h: 100dvh;
}

[data-component="single"] {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
}

.avatar[data-component="single"] {
  block-size: var(--h);
  z-index: var(--ui-depth);
  background: var(--content-fade);
  backdrop-filter: blur(var(--ui-blur));
  -webkit-backdrop-filter: blur(var(--ui-blur));
}

.morehouse {
  align-items: center;
  position: absolute;
  inset-block-end: 0;
  block-size: max(360px, 45vh);
  display: flex;
  flex-direction: column;
  inset-inline: 0;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.morehouse h2 {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
  color: #1a1a1a;
}

.morehouse p {
  color: #555;
  max-width: 400px;
  margin-bottom: 1.5rem;
}
