/* What the Cursor Learns — placeholder companion site
   Design: dark, dignified, matching book cover (brass scales on dark circuit-board texture)
*/

:root {
  --bg: #1a1f2a;
  --bg-accent: #232a37;
  --text: #f4f1e8;
  --text-muted: #c5bfb0;
  --brass: #b08d57;
  --brass-bright: #d4a86a;
  --rule: #3a4250;
  --max-width: 38rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Charter', 'Georgia', 'Cambria', 'Times New Roman', serif;
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.press-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin: 0 0 1.5rem 0;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.subtitle {
  font-family: 'Charter', 'Georgia', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.byline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-family: 'Charter', 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
  margin: 1.6rem 0 0.6rem 0;
  letter-spacing: 0;
}

/* Breadcrumb / back-nav at top of sub-pages */
.breadcrumb {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  margin: 0 0 2rem 0;
  text-align: left;
}

.breadcrumb a {
  color: var(--text-muted);
  border-bottom: none;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover {
  color: var(--brass-bright);
}

/* Meta-row at top of sub-pages (For / Time to read / Companion) */
.meta-row {
  background: var(--bg-accent);
  border-left: 2px solid var(--brass);
  padding: 1.2rem 1.4rem;
  margin: 0 0 2.5rem 0;
  border-radius: 0 2px 2px 0;
}

.meta-row p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text-muted);
}

.meta-row strong {
  color: var(--text);
  font-weight: 600;
}

/* Numbered instrument list on compendium */
ol.instruments,
ol.board-questions {
  padding-left: 1.4rem;
  margin: 0 0 1.5rem 0;
}

ol.instruments li,
ol.board-questions li {
  margin-bottom: 1.1rem;
  padding-left: 0.3rem;
  line-height: 1.6;
}

ol.instruments li strong {
  color: var(--brass-bright);
  font-weight: 600;
}

/* Read-more table */
table.read-more {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem 0;
  font-size: 0.94rem;
}

table.read-more th,
table.read-more td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

table.read-more th {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.5rem;
}

table.read-more td:first-child {
  width: 45%;
  color: var(--text-muted);
  padding-right: 1rem;
}

/* Featured link on index page (e.g., executive compendium pointer) */
.featured-link {
  background: var(--bg-accent);
  border-left: 2px solid var(--brass);
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem 0;
  border-radius: 0 2px 2px 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.featured-link a {
  color: var(--text);
  border-bottom: none;
}

.featured-link a:hover {
  color: var(--brass-bright);
}

.featured-link strong {
  color: var(--brass-bright);
  font-weight: 600;
}

/* Closing note */
.closing-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.closing-note p {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

p {
  margin: 0 0 1.2rem 0;
}

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

em {
  font-style: italic;
  color: var(--text);
}

ul {
  margin: 0 0 1.2rem 0;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.cta-row {
  text-align: center;
  margin: 1.5rem 0 0 0;
}

.cta {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  background: var(--brass);
  color: var(--bg);
  border: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cta:hover {
  background: var(--brass-bright);
  color: var(--bg);
  border-color: var(--brass-bright);
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer p {
  margin: 0 0 0.3rem 0;
}

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

/* Mobile adjustments */
@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  main {
    padding: 2rem 1.25rem 3rem;
  }
  h1 {
    font-size: 1.85rem;
  }
  .subtitle {
    font-size: 1.05rem;
  }
}

/* Print stylesheet — clean, no dark mode */
@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
  h1, h2 {
    color: black;
  }
  a {
    color: black;
    border-bottom: 1px solid black;
  }
  .press-date {
    color: #555;
  }
}
