/* notes.css — published garden notes (prose pages). Inherits tokens from style.css. */

.note-page { }

.note {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) var(--gut) clamp(3rem, 8vh, 6rem);
}

.note__kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem;
}
.note__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04;
  letter-spacing: -.025em; margin-bottom: 1.1rem;
}
.note__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0; margin: 0 0 2.4rem;
}
.note__tags li {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .03em;
  color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 2rem; padding: .25rem .65rem;
}
.note__tags li::before { content: "#"; color: var(--accent); }

/* ── prose ─────────────────────────────────────────────── */
.prose { font-size: 1.06rem; line-height: 1.68; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--serif); color: var(--ink); letter-spacing: -.015em;
  line-height: 1.15; margin: 2.4rem 0 .8rem;
}
.prose h2 { font-size: 1.7rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.32rem; }
.prose h4 { font-size: 1.1rem; font-weight: 600; }
.prose p { margin: 0 0 1.15rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .15s; }
.prose a:hover { color: var(--accent); }

.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "–"; color: var(--accent); position: absolute; left: -1.3rem;
}
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: .35rem 0 .5rem; }

.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.prose mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); padding: 0 .15em; border-radius: 2px; }

/* inline + block code */
.prose code {
  font-family: var(--mono); font-size: .86em;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 4px; padding: .08em .35em;
}
.prose pre.codeblock {
  background: var(--ink); color: var(--paper); border-radius: 8px;
  padding: 1rem 1.1rem; overflow-x: auto; margin: 0 0 1.3rem; font-size: .85rem;
}
.prose pre.codeblock code { background: none; border: none; color: inherit; padding: 0; }

/* tables */
.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5rem;
  font-size: .94rem;
}
.prose th, .prose td {
  text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose thead th {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-d); border-bottom: 1.5px solid var(--line);
}
.prose tbody tr:hover { background: var(--paper-2); }
/* wide note tables scroll instead of overflowing on small screens */
@media (max-width: 600px) {
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .prose th, .prose td { white-space: normal; min-width: 7rem; }
}

/* blockquote */
.prose blockquote {
  margin: 0 0 1.3rem; padding: .3rem 0 .3rem 1.2rem;
  border-left: 3px solid var(--line); color: var(--ink-soft); font-style: italic;
}

/* callouts (Obsidian) */
.callout {
  margin: 0 0 1.4rem; padding: 1rem 1.15rem; border-radius: 8px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.callout__t {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-d); margin: 0 0 .5rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--important { border-left-color: var(--accent); }
.callout--info { border-left-color: #3f6ea8; }
.callout--info .callout__t { color: #3f6ea8; }
.callout--note { border-left-color: var(--muted); }
.callout--note .callout__t { color: var(--ink-soft); }
.callout--tip { border-left-color: #4a8c6a; }
.callout--tip .callout__t { color: #4a8c6a; }

/* mermaid */
.prose pre.mermaid {
  background: transparent; text-align: center; margin: 0 0 1.5rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem; overflow-x: auto;
}

/* wikilinks */
.wikilink { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.wikilink:hover { color: var(--accent); }
.wikilink--dead {
  color: var(--ink-soft); border-bottom: 1px dotted var(--muted); cursor: help;
}

/* footer nav */
.note__foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .8rem; letter-spacing: .03em;
}
.note__foot a { color: var(--ink-soft); text-decoration: none; }
.note__foot a:hover { color: var(--accent); }

/* ── garden index ──────────────────────────────────────── */
.idx__lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 50ch; margin-bottom: 2.5rem; }
.idx__cluster { margin-bottom: 2.4rem; }
.idx__cluster h2 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-d);
  padding-bottom: .6rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.idx__list { list-style: none; padding: 0; margin: 0; }
.idx__list li { border-bottom: 1px solid var(--line); }
.idx__list a {
  display: flex; flex-direction: column; gap: .2rem; padding: .9rem 0;
  text-decoration: none; transition: padding-left .18s;
}
.idx__list a:hover { padding-left: .6rem; }
.idx__t { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.idx__list a:hover .idx__t { color: var(--accent); }
.idx__d { font-size: .92rem; color: var(--ink-soft); }
