/* =========================================================
   base.css — Reset, custom properties, typography
   Parchment / Bloody Ink theme
   ========================================================= */

:root {
  /* Surface */
  --color-bg:          #F2E8D5;
  --color-surface:     #E8DCC8;
  --color-surface-alt: #DDD0B8;
  --color-border:      #C8B89A;
  --color-border-dark: #A89070;

  /* Ink */
  --color-accent:      #8B1A1A;
  --color-accent-muted:#B85050;
  --color-text:        #2C1810;
  --color-text-muted:  #7A6050;
  --color-text-on-accent: #F2E8D5;

  /* HP state */
  --color-hp-high:  #2D6A2D;
  --color-hp-mid:   #B8860B;
  --color-hp-low:   #8B1A1A;

  /* Proficiency pip states */
  --color-pip-none:       transparent;
  --color-pip-half:       #B8860B;
  --color-pip-proficient: #2D6A2D;
  --color-pip-expert:     #1A4A8B;

  /* Typography */
  --font-display: 'Uncial Antiqua', serif;
  --font-body:    'Lato', sans-serif;
  --font-mono:    'Consolas', 'Fira Code', monospace;

  /* Geometry */
  --radius:    6px;
  --radius-lg: 12px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;

  /* Shadows (warm, parchment-appropriate) */
  --shadow-sm: 0 1px 3px rgba(44,24,16,0.14);
  --shadow-md: 0 4px 14px rgba(44,24,16,0.20);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg) var(--spacing-xl);
}
