/* ============================================
   DaVinci Notebook Stylesheet
   Philosophy: Minimal, parchment-toned, archival
   ============================================ */

/* Color Palette */
:root {
 --parchment: #000000;
  --ink: #ffffff;
  --faded-brown: #666666;
  --subtle-shading: #121212;
  --accent: #00ff41;
}

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

body {
  font-family: Georgia, "Crimson Text", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--parchment);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--subtle-shading); padding-bottom: 0.3rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--faded-brown);
}

a:hover {
  border-bottom-style: solid;
}

code {
  font-family: "Courier New", monospace;
  background-color: var(--subtle-shading);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

pre {
  background-color: var(--subtle-shading);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background-color: transparent;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--faded-brown);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--faded-brown);
}

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

/* Header */
.site-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--subtle-shading);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.site-title a {
  color: var(--ink);
  border: none;
  font-size: 1.75rem;
  font-weight: 400;
}

.site-nav a {
  margin-left: 1.5rem;
  font-size: 1rem;
}

.header-marginalia {
  font-style: italic;
  color: var(--faded-brown);
  font-size: 0.95rem;
  max-width: 600px;
}

/* View Toggle */
.view-toggle {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.view-toggle .active {
  font-weight: 600;
  color: var(--ink);
}

.view-toggle a {
  color: var(--faded-brown);
  margin: 0 1rem;
}

/* Entry Cards */
.entry-card {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--subtle-shading);
}

.entry-card:last-child {
  border-bottom: none;
}

.entry-card-header {
  margin-bottom: 1rem;
}

.entry-title a {
  color: var(--ink);
  border: none;
  font-size: 1.3rem;
}

.entry-title.untitled a {
  color: var(--faded-brown);
  font-style: italic;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--faded-brown);
  margin-top: 0.5rem;
}

.entry-clusters {
  display: flex;
  gap: 0.5rem;
}

.cluster-tag {
  background-color: var(--subtle-shading);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.entry-status {
  font-style: italic;
  font-size: 0.85rem;
}

.status-fragment { color: var(--faded-brown); }
.status-sketch { color: var(--faded-brown); }
.status-question { color: var(--accent); }
.status-complete { color: var(--ink); }

.entry-excerpt {
  margin: 1rem 0;
  color: var(--ink);
}

.entry-card-footer {
  margin-top: 1rem;
}

.read-more {
  font-size: 0.95rem;
  color: var(--accent);
}

/* Clustered View */
.cluster {
  margin-bottom: 3rem;
}

.cluster-header {
  margin-bottom: 1.5rem;
}

.cluster-header h2 {
  margin-bottom: 0.5rem;
}

.cluster-description {
  font-style: italic;
  color: var(--faded-brown);
  font-size: 0.95rem;
}

.empty-cluster {
  font-style: italic;
  color: var(--faded-brown);
  margin: 1rem 0;
}

/* Individual Entry Page */
.entry-page {
  margin-bottom: 3rem;
}

.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--subtle-shading);
}

.entry-content {
  margin-bottom: 2rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--subtle-shading);
}

.related-navigation ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* About Page */
.about-page {
  max-width: 700px;
}

.marginalia-collection {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--subtle-shading);
}

.marginalia-collection h3 {
  margin-bottom: 1.5rem;
  color: var(--faded-brown);
}

.marginalia-collection blockquote {
  margin: 1.5rem 0;
}

.marginalia-collection blockquote footer {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--subtle-shading);
  text-align: center;
  font-size: 0.9rem;
  color: var(--faded-brown);
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 1.5rem 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
  
  .entry-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
