:root {
  --bg: #faf9f7;
  --text: #111111;
  --muted: #666666;
  --rule: #e6e6e6;
  --max: 42rem; /* readable line length */
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.8;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* Header / nav (quiet) */
.site-header {
  padding: 1.5rem 0 0.25rem 0;
}

.nav {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

.site-title {
  font-weight: 600;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
}


/* Links: understated, text-like */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: rgba(17, 17, 17, 0.85);
}

/* Headings: sans for contrast */
h1, h2, h3 {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
}

h1 {
  font-size: 2.2rem;
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  margin-top: 2rem;
}

p {
  margin: 0.85rem 0;
}

ul, ol {
  margin: 0.85rem 0 0.85rem 1.25rem;
}

li {
  margin: 0.25rem 0;
}

/* Rules: subtle */
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* Footer: quiet */
.site-footer {
  margin-top: 3rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

/* Optional: blockquotes for essays */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: #333;
}

/* Notes: subtly differentiated */

.note-page {
  color: #2a2a2a;         /* slightly softer ink */
  font-size: 0.96em;      /* slightly smaller */
  line-height: 1.85;      /* slightly more airy */
  padding-left: 1rem;     /* creates a margin for the rule */
  border-left: 2px solid var(--rule); /* subtle "notebook" cue */
}

.note-page p {
  font-size: 0.97em;
}

.note-label {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem 0;
}

.tag-count {
  color: var(--muted);
  font-size: 0.95em;
}

.tags-line {
  color: var(--muted);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

.tags-label {
  margin-right: 0.4rem;
}

.tag-link {
  text-decoration-color: rgba(102, 102, 102, 0.45);
}

.tag-link:hover {
  text-decoration-color: rgba(102, 102, 102, 0.9);
}

.tag-sep {
  margin: 0 0.15rem;
}

/* Footnotes */

.footnotes {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95em;
  color: var(--muted);
}

.footnotes ol {
  padding-left: 1.25rem;
}

.footnotes li {
  margin: 0.5rem 0;
}

sup {
  font-size: 0.75em;
  vertical-align: super;
}

/* Asides */

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: #333;
}

blockquote strong {
  font-weight: 600;
}
