/* Minimal reading theme — inspired by quiet, text-first personal blogs. */
:root {
  --paper: #fbfefb;
  --ink: #282728;
  --muted: #6f736f;
  --line: #dfe5df;
  --soft: #f1f5f1;
  --content: 740px;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Noto Sans Mono CJK SC", monospace;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .01em;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: #000; }

.site-header,
main,
.site-footer {
  width: min(var(--content), calc(100% - 40px));
  max-width: var(--content);
  margin-inline: auto;
}

.site-header {
  min-height: 0;
  padding: 30px 0 18px;
  border-bottom: 1px solid var(--line);
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name,
.footer-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.main-nav { display: flex; gap: 25px; align-items: center; }
.main-nav a { font-size: 14px; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

main { padding: 0; }
.overline,
.section-label,
.article-kicker,
.book-cover__number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}

.home-hero {
  min-height: 0;
  padding: 42px 0 34px;
  display: block;
}
.home-hero__copy { max-width: 650px; }
.home-hero h1 {
  max-width: 630px;
  margin: 10px 0 13px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
}
.hero-lead { max-width: 630px; margin: 0; color: var(--muted); font-size: 14px; }
.hero-sketch { display: none; }

.garden-intro,
.home-section,
.home-note {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.garden-intro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.garden-count { display: none; }
.garden-intro h2,
.home-section h2,
.related-section h2,
.knowledge-map-callout h2 {
  margin: 3px 0 7px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}
.garden-intro p,
.home-section__heading > p,
.home-note > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { font-size: 13px; white-space: nowrap; }

.home-section__heading {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: end;
}
.home-section__heading > p { grid-column: 1 / -1; max-width: 620px; }

.home-card-grid,
.garden-grid,
.category-grid { display: block; }
.note-card,
.note-card--feature,
.note-card--default,
.note-card--compact {
  min-height: 0;
  padding: 17px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.note-card:first-child { border-top: 0; }
.note-card:hover { transform: none; box-shadow: none; }
.note-card__meta { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.note-card__meta a { color: var(--ink); }
.note-card__link { text-decoration: none; }
.note-card__link h3 { margin: 0 0 3px; font-size: 16px; line-height: 1.55; font-weight: 600; }
.note-card__link p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.note-card__footer { margin-top: 7px; }
.note-card__tags { color: var(--muted); font-size: 11px; }
.card-arrow { display: none; }

.book-shelf { gap: 24px; }
.book-shelf--home,
.book-shelf--library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-entry { min-width: 0; }
.book-cover {
  aspect-ratio: 2 / 3;
  min-height: 0;
  padding: 17px 15px;
  border: 1px solid #bfc8bf;
  border-radius: 1px;
  color: var(--ink);
  box-shadow: 3px 4px 0 #e5eae5;
  transform: none;
}
.book-cover:hover { transform: translateY(-2px); box-shadow: 3px 6px 0 #dfe5df; }
.book-cover--blue { background: #dfe9e8; }
.book-cover--rust { background: #ece2d9; }
.book-cover--moss { background: #e2e7d8; }
.book-cover h3 { font-size: 15px; line-height: 1.55; }
.book-cover__rule { background: rgba(40,39,40,.45); }
.book-cover__author { font-size: 10px; }
.book-entry__meta { padding-top: 11px; }
.book-entry__meta h3 { margin: 0 0 2px; font-size: 13px; line-height: 1.55; }
.book-entry__meta > p { margin: 0; color: var(--muted); font-size: 11px; }
.book-entry__status { margin-top: 5px; color: var(--muted); font-size: 10px; }
.book-entry__status span { border: 0; padding: 0; background: transparent; }
.book-entry__status span + span::before { content: " / "; }

.map-promise,
.library-note,
.knowledge-map-callout {
  margin-top: 24px;
  padding: 18px 0;
  border: 0;
  border-top: 1px dashed #cfd6cf;
  border-bottom: 1px dashed #cfd6cf;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.map-promise { display: flex; gap: 10px; }

.inner-page,
.article-page { padding: 0; }
.page-hero {
  min-height: 0;
  margin: 0;
  padding: 39px 0 29px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.page-count { display: none; }
.page-hero h1,
.article-header h1 { margin: 3px 0 8px; font-size: clamp(22px, 4vw, 30px); line-height: 1.45; font-weight: 600; }
.page-hero p { max-width: 640px; margin: 0; color: var(--muted); }

.garden-browser,
.library-browser { padding: 24px 0 34px; }
.filter-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; }
.filter-grid label > span { color: var(--muted); font-size: 11px; }
.filter-grid input,
.filter-grid select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.garden-result,
.library-toolbar { margin: 19px 0 4px; color: var(--muted); font-size: 12px; }
.library-tabs button {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}
.library-tabs button.is-active { border-bottom-color: var(--ink); color: var(--ink); }

.article-breadcrumb { padding: 24px 0 0; color: var(--muted); font-size: 12px; }
.article-header { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); display: block; }
.article-header__main > p { max-width: 650px; margin: 9px 0 0; color: var(--muted); }
.article-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 11px; }
.article-meta div { display: flex; gap: 8px; }
.article-meta dt { color: var(--muted); }
.article-meta dd { margin: 0; }
.article-content { padding: 29px 0 42px; }
.markdown-body { max-width: 690px; color: #303230; }
.markdown-body h2 { margin-top: 2.1em; font-size: 19px; }
.markdown-body p { margin: 1em 0; }
.related-section { padding: 27px 0; border-top: 1px solid var(--line); }

.site-footer {
  margin-top: 48px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px 24px;
  color: var(--muted);
  font-size: 11px;
}
.site-footer > div:first-child p,
.footer-links span { display: none; }
.footer-name { color: var(--ink); font-size: 12px; }
.footer-links { display: flex; gap: 16px; }
.copyright { grid-column: 1 / -1; margin: 0; }
.copyright a { color: var(--muted); }

@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-header { padding-top: 22px; align-items: flex-start; }
  .site-name { font-size: 16px; }
  .main-nav { gap: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .main-nav a { font-size: 12px; }
  .home-hero { padding-top: 32px; }
  .garden-intro,
  .home-section__heading { display: block; }
  .text-link { display: inline-block; margin-top: 10px; }
  .book-shelf--home,
  .book-shelf--library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 15px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { display: block; }
  .footer-links { margin: 8px 0; }
}

@media (max-width: 430px) {
  .site-header, main, .site-footer { width: min(var(--content), calc(100% - 28px)); }
  .site-header { display: block; }
  .main-nav { margin-top: 10px; justify-content: flex-start; }
  .book-shelf--home,
  .book-shelf--library { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
}
