/* The Sound of AI — Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --bg: #faf8f5;
  --text: #2a2520;
  --text-light: #6b5f54;
  --accent: #8b6914;
  --border: #e0d8ce;
  --highlight: #f5efe6;
  --max-width: 42rem;
}

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

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

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  padding: 3rem 1.5rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* Chapter title */
h1 {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Section breaks — the horizontal rules */
hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
}

hr::before {
  content: '· · ·';
  color: var(--text-light);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* Paragraphs */
p {
  margin-bottom: 1.2rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Emphasis */
em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* Block quotes — for internal monologue / letters */
blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--highlight);
  font-style: italic;
  color: var(--text-light);
}

blockquote p {
  margin-bottom: 0.6rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Inline code — used for log entries */
code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  background: #f0ece4;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--text-light);
}

/* Log entry blocks */
pre {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  background: #2a2520;
  color: #c8bfb0;
  padding: 1.2rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Navigation */
nav {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

nav .series-title {
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Footer navigation */
footer {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text);
}

/* First paragraph after a section break — no indent, drop-cap feel */
hr + p::first-letter {
  font-size: 1.4em;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 2rem 1rem 4rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    text-align: left;
    hyphens: none;
  }

  nav, footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Print */
@media print {
  body {
    max-width: 100%;
    padding: 0;
    font-size: 11pt;
  }

  nav, footer {
    display: none;
  }

  h1 {
    page-break-after: avoid;
  }

  hr {
    page-break-before: avoid;
  }
}

