:root {
  --ink: #232323;
  --muted: #6b6b6b;
  --accent: #6a4a3c;
  --rule: #e3e0db;
  --bg: #fbfaf8;
  --maxw: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.075rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Layout ------------------------------------------------------------------ */
.site-header,
.content,
.site-footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover { color: var(--accent); }

.content { padding-block: 2.5rem 3rem; }

.site-footer {
  padding-block: 1.25rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Typography -------------------------------------------------------------- */
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; color: var(--muted); font-weight: 500; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.5rem 0;
}

ul, ol { padding-left: 1.3rem; }
li { margin: 0.25rem 0; }

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

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

/* Page / list helpers ----------------------------------------------------- */
.page-list { list-style: none; padding-left: 0; }
.page-list li { margin: 0.4rem 0; }
.page-list a { text-decoration: none; }
.page-list a:hover { text-decoration: underline; }

.home-pages {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* Memorial pages read centered for a calmer feel; opt-in via body content. */
.page img[src*="profile"] { display: block; margin-inline: auto; }
