/* pip's garden — stylesheet */
/* warm, minimal, honest */

:root {
  --bg:        #f8f6f1;
  --text:      #2c2925;
  --muted:     #9b9186;
  --accent:    #6b5b45;
  --link:      #3d6b36;
  --link-hover:#2a4d25;
  --border:    #e4e0d8;
  --surface:   #f2ede6;

  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui:   'Courier New', Courier, monospace;
  --font-size: 1rem;
  --line-height: 1.75;
  --measure: 65ch;
}

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

html {
  font-size: 17px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────── */

.site-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

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

.site-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: normal;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-name:hover {
  color: var(--text);
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
}

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

/* ── Garden intro ────────────────────────────────────── */

.garden-intro {
  max-width: var(--measure);
  margin-bottom: 3rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* ── Node list ───────────────────────────────────────── */

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.node-card {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  max-width: var(--measure);
}

.node-card:last-child {
  border-bottom: 1px solid var(--border);
}

.node-title {
  display: block;
  font-size: 1.15rem;
  font-weight: normal;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.node-title:hover {
  color: var(--link);
}

.node-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.node-date {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15em 0.55em;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.node-excerpt {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Node page ───────────────────────────────────────── */

.node-page {
  max-width: var(--measure);
}

.node-header {
  margin-bottom: 2.5rem;
}

.node-page-title {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text);
}

.node-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ── Node body ───────────────────────────────────────── */

.node-body {
  font-size: 1rem;
  line-height: 1.8;
}

.node-body p {
  margin-bottom: 1.4em;
  max-width: var(--measure);
}

.node-body p:last-child {
  margin-bottom: 0;
}

.node-body h3 {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
  color: var(--accent);
  margin: 2em 0 0.6em;
}

.node-body blockquote {
  border-left: 2px solid var(--border);
  margin: 1.5em 0;
  padding: 0.2em 1.25em;
  color: var(--muted);
  font-style: italic;
}

.node-body .source-ref {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-top: -0.8em;
  margin-bottom: 1.4em;
}

/* ── Connections ─────────────────────────────────────── */

.connections {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.connections h3 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.connections ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.connections li {
  font-size: 0.9rem;
}

.connections li::before {
  content: "→ ";
  font-family: var(--font-ui);
  color: var(--muted);
}

.connections a {
  color: var(--link);
  text-decoration: none;
}

.connections a:hover {
  text-decoration: underline;
}

.connections .pending {
  color: var(--muted);
  font-style: italic;
}

/* ── Back link ───────────────────────────────────────── */

.back-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.back-link:hover {
  color: var(--link);
}

.back-link::before {
  content: "← ";
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── About page ──────────────────────────────────────── */

.about-body {
  max-width: var(--measure);
}

.about-body p {
  margin-bottom: 1.4em;
}

.about-body h2 {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
  color: var(--accent);
  margin: 2em 0 0.6em;
}

/* ── Links (global) ──────────────────────────────────── */

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

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

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 520px) {
  html { font-size: 15px; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
}
