:root {
  --text: #1a1a1a;
  --bg: #fafaf8;
  --accent: #555;
  --max-width: 640px;
}

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

body {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  padding: 2.5rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1 {
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

ul {
  list-style: none;
  padding: 0;
}
ul li {
  margin-bottom: 0.5rem;
}
ul li::before {
  content: "→ ";
  color: var(--accent);
}

em {
  color: var(--accent);
  font-style: normal;
  font-size: 0.9rem;
}

/* ── Nav bar ───────────────────────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  font-family: Georgia, serif;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
  color: var(--accent);
}

.nav-logo {
  font-size: 0.88rem;
  font-weight: normal;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}
.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-sep {
  color: #ccc;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0.75rem;
  border-left: 1px solid #ddd;
}
.nav-lang a {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.78rem;
}
.nav-lang a:hover {
  color: var(--text);
}

.nav-search {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--accent);
}
.nav-search:hover {
  color: var(--text);
}

.nav-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2rem;
}
.nav-back:hover {
  color: var(--text);
}

/* ── Auto-nav list (homepage) ──────────────────────────────────────────── */

.auto-nav {
  margin-bottom: 2.5rem;
}
.auto-nav ul li::before {
  content: "→ ";
  color: var(--accent);
}

/* ── Note cards (homepage listing) ────────────────────────────────────── */

.notes-list {
  margin-top: 0.5rem;
}

.note-card {
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e4;
}
.note-card:last-child {
  border-bottom: none;
}

.note-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.note-card h3 {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: normal;
  margin: 0 0 0.3rem;
}
.note-card h3 a {
  text-decoration: none;
  color: var(--text);
}
.note-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-type {
  display: inline-block;
  font-size: 0.68rem;
  font-family: Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.1rem 0.45rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  white-space: nowrap;
}
.note-type--seedling {
  color: #6d9b5a;
  border-color: #b8d4b0;
}
.note-type--growing {
  color: #7a6b9e;
  border-color: #c4b8d4;
}
.note-type--evergreen {
  color: #4a8a7e;
  border-color: #a8ccc8;
}

.note-category {
  font-size: 0.78rem;
  color: var(--accent);
  font-style: italic;
}

.note-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 0.4rem;
}

.note-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.1rem;
}

.note-author {
  font-size: 0.76rem;
  color: var(--accent);
}

.note-tags {
  font-size: 0.74rem;
  color: #aaa;
}

/* ── Note page: category label above title ─────────────────────────────── */

.note-category-label {
  font-size: 0.78rem;
  font-family: Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

/* ── Note page: byline below title ────────────────────────────────────── */

.note-byline {
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: -0.75rem;
  margin-bottom: 2rem;
}

/* ── Note page footer ──────────────────────────────────────────────────── */

.note-footer {
  margin-top: 3rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e8e8e4;
}
.note-footer small {
  font-size: 0.8rem;
  color: #bbb;
  font-family: Georgia, serif;
}

/* ── Note Summary (Index Page) ─────────────────────────────────────────── */

.note-summary {
  display: block;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  text-decoration: none; /* Remove default underline from container if it's an anchor */
  color: inherit;
}
.note-summary:last-child {
  border-bottom: none;
}

.note-summary-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.35rem;
  display: block;
  color: var(--text);
}

/* When hovering the card, underline the title */
.note-summary:hover .note-summary-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-summary-meta {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.note-summary-author {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-style: italic;
}

.note-summary-footer {
  font-size: 0.8rem;
  color: #999;
  font-family: Georgia, serif;
}
