/* Advoke CV — Typography Scale & Prose */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-snug);
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.05;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.015em;
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-normal);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-normal);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-accent-active);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }
.text-nowrap  { white-space: nowrap; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-muted    { color: var(--color-text-muted); }
.text-subtle   { color: var(--color-text-subtle); }
.text-accent   { color: var(--color-accent-active); }
.text-inverse  { color: var(--color-text-inverse); }

.font-regular  { font-weight: var(--font-weight-regular); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }

.prose {
  max-width: 68ch;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.prose h2 { font-size: var(--text-3xl); }
.prose h3 { font-size: var(--text-2xl); }
.prose h4 { font-size: var(--text-xl); }

.prose p {
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
}

.prose ul,
.prose ol {
  padding-left: var(--space-6);
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

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

.prose li > ul,
.prose li > ol {
  margin-top: var(--space-2);
}

.prose a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-colors);
}

.prose a:hover {
  color: var(--color-accent-active);
  text-decoration-color: var(--color-accent-active);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ink-100);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.prose blockquote {
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-tint);
  color: var(--color-text-secondary);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote > * + * {
  margin-top: var(--space-3);
}

.prose strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-10) 0;
}

.prose img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.prose table {
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose th {
  background: var(--ink-50);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.prose td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

.prose tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  h4 { font-size: var(--text-xl); }
  .lead { font-size: var(--text-base); }
}