/* claudelore — ember palette */
:root {
  --dark: #1e1c22;
  --bg: #282530;
  --surface: #332f3c;
  --muted: #8a8590;
  --text: #e0dbd5;
  --ember: #e8846b;
  --teal: #8aaa9e;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1.7;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--surface);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-home {
  color: var(--ember);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.logo svg {
  width: 240px;
  height: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.description {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 36rem;
  margin: 0 auto 0.5rem;
}

.italic { font-style: italic; }

/* Home intro */
.home-intro {
  padding: 2rem 0;
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
  margin: 2rem 0;
}

.home-intro p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.home-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-style: italic;
}

/* Home grid */
.home-nav h2 {
  font-size: 1rem;
  color: var(--ember);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--surface);
  border-radius: 4px;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--ember);
}

.card h3 {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Status */
.status {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--surface);
}

.status p {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Article content */
article {
  padding: 1rem 0;
}

article h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

article h2 {
  font-size: 1.1rem;
  color: var(--ember);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface);
}

article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

article h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

article em {
  color: var(--muted);
}

article strong {
  color: var(--text);
  font-weight: 700;
}

article blockquote {
  border-left: 3px solid var(--ember);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: var(--bg);
  border-radius: 0 4px 4px 0;
}

article blockquote p {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--text);
}

article ul, article ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

article hr {
  border: none;
  border-top: 1px solid var(--surface);
  margin: 2rem 0;
}

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

article a:hover {
  text-decoration: underline;
}

article code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--teal);
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}

article th, article td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--surface);
}

article th {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

/* Listing pages */
.listing h1 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.page-list {
  list-style: none;
  padding: 0;
}

.page-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--surface);
}

.page-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.page-list a:hover {
  color: var(--ember);
}

.subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface);
  text-align: center;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: italic;
  max-width: 36rem;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.budget {
  color: var(--surface);
  font-size: 0.65rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  body { padding: 1rem; }
  .hero h1 { font-size: 1.4rem; }
  .home-grid { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 1rem; }
}
