@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Courier+Prime:wght@400;700&display=swap');

:root {
  /* Ground */
  --bg-ground:      #0a0907;
  --bg-surface:     #0f0d0a;
  --bg-terminal:    #080704;

  /* Text */
  --text-primary:   #c0b49a;
  --text-dim:       #5a5248;
  --text-muted:     #3a3028;

  /* Accent */
  --green-specimen: #3a6548;
  --green-mid:      #4a7a58;
  --amber-terminal: #c8861a;
  --amber-dim:      #7a5010;

  /* Type */
  --font-serif:  'EB Garamond', Georgia, serif;
  --font-mono:   'Courier Prime', Courier, monospace;

  /* Border */
  --border-subtle: #2a2420;
  --border-amber:  #c8861a;

  /* Published Document register */
  --bg-parchment:      #f0e8d4;
  --bg-parchment-card: #e8dcc4;
  --text-parchment:    #1a150e;
  --text-parchment-dim:#5a4a38;
  --border-parchment:  #c8b898;
}

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

html, body {
  height: 100%;
  background: var(--bg-ground);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-mono);
}

input, textarea {
  font-family: var(--font-serif);
}

#app {
  min-height: 100vh;
}

/* Utility classes */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.dim { color: var(--text-dim); }
.muted { color: var(--text-muted); }
.primary { color: var(--text-primary); }

.rule-gradient {
  width: 250px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle) 20%, var(--green-specimen) 50%, var(--border-subtle) 80%, transparent);
  margin: 0.5rem auto;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
