/* Palette and fonts mirror the Mythic Scribe app (client/src/styles/tokens.ts). */
:root {
  --bg-page: #141119;
  --bg-panel: #1d1828;
  --bg-inset: #241d30;
  --bg-surface-alt: #322a42;
  --border-muted: #2c2536;
  --border-subtle: #3a2f4d;
  --text-body: #d8d2c4;
  --text-heading: #e6ddc8;
  --text-muted: #7d7490;
  --accent: #c9a9ff;
  --accent-hover: #e2d3ff;

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body {
  max-width: 40em;
  margin: 2em auto;
  padding: 0 1em;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  padding: 0em 2rem;
  margin-left: 0rem;
  margin-right: 0rem;
  border-bottom: 2px solid var(--border-subtle);
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-surface-alt);
  padding: 0.4em 2rem;
  margin-left: 0rem;
  margin-right: 0rem;
}

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

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

code,
pre {
  font-family: var(--font-mono);
}

code {
  background: var(--border-muted);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre code {
  display: block;
  padding: 1em;
  overflow-x: auto;
}

header {
  margin-bottom: 2em;
}

main {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px 0 12px 0;
  padding: 1.5em 2rem;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-inset);
  margin: 0;
  padding: 0.4em 1rem;
  border-bottom: none;
}

.site-title a {
  text-decoration: none;
  color: var(--text-heading);
}

nav {
  display: flex;
  gap: 0.25em;
  margin-top: 0.75em;
  padding: 0.4em 0.6em;
  background: var(--bg-inset);
  border: 0px solid var(--border-subtle);
  border-radius: 6px 0 6px 0;
}

nav a {
  padding: 0.3em 0.6em;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-muted);
}

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

footer {
  margin-top: 3em;
  font-size: 0.85em;
  color: var(--text-muted);
}

.update {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--border-muted);
}

.update:last-child {
  border-bottom: none;
}

.update-date {
  margin: 0;
  font-size: 0.85em;
  color: var(--text-muted);
}

.update h3 {
  margin-top: 0.2em;
  margin-bottom: 0.4em;
}
