/* Root geometry */
:root {
  --font-main: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 17px;
  --line-height-base: 1.55;
  --max-width: 720px;

  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  --rule-color: #000;
  --text-color: #000;
  --background-color: #fff;
}

/* Page container */
body {
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm) var(--space-xl);
}

/* Identity */
.identity {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Thesis */
.thesis {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

/* Rules */
.rule,
.rule-terminal {
  border: none;
  border-top: 1px solid var(--rule-color);
  margin: var(--space-lg) 0;
}

.rule-terminal {
  margin-top: var(--space-xl);
}

/* Blocks */
.block {
  margin-bottom: var(--space-lg);
}

.section-label {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.section-body p {
  margin: 0 0 var(--space-sm);
}

/* Compression and terminal states */
.compression {
  opacity: 0.85;
}

.terminal {
  font-weight: 600;
}

/* Document code */
.document-code {
  font-size: 0.85rem;
  margin-top: var(--space-md);
  opacity: 0.7;
}
