/* ============================================
   ELEVATED THOUGHTS — Base Styles
   Element-level defaults. No classes.
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-void);
  position: relative;
}

/* Film grain texture overlay for atmospheric depth */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Headings --- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* --- Body Text --- */

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

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

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Links --- */

a {
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

/* --- Lists (when styled) --- */

.prose ul,
.prose ol {
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li + li {
  margin-top: var(--space-2);
}

/* --- Blockquote --- */

blockquote {
  padding-left: var(--space-6);
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
  font-style: italic;
  font-size: var(--text-lg);
}

/* --- Horizontal Rule --- */

hr {
  border: none;
  height: 1px;
  background-color: var(--border);
  margin: var(--space-12) 0;
}

/* --- Code --- */

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-6);
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  border: 1px solid var(--border);
}

pre code {
  padding: 0;
  background: none;
  color: var(--text-primary);
}

/* --- Selection --- */

::selection {
  background-color: var(--accent);
  color: var(--text-inverse);
}

/* --- Scrollbar --- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
