:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --border: #e3dccd;
  --text: #232020;
  --muted: #6b645a;
  --faint: #a39a8c;
  --accent: #b5562b;        /* warm terracotta */
  --accent-soft: #c96a3e;
  --chip-bg: #efe9dd;
  --max-width: 640px;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-soft); }

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

/* ---- Section scaffold ---- */
section { padding: 3.25rem 0; }

.section-head { margin-bottom: 1.75rem; }

.section-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: lowercase;
}
.section-title .emoji {
  font-size: 0.72em;
  margin-left: 0.4rem;
  vertical-align: 0.04em;
  -webkit-text-fill-color: initial;
}

.descriptors {
  margin-top: 0.6rem;
  color: var(--faint);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* clean separator between sections */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- Hero ---- */
.hero { padding: 4.5rem 0 1rem; }
.hero .eyebrow {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: lowercase;
  margin-bottom: 0.75rem;
  max-width: 16ch;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: lowercase;
}
.hero .sub {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 46ch;
}
.hero .quicklinks {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.9rem;
}
.hero .quicklinks a { color: var(--muted); font-weight: 500; }
.hero .quicklinks a:hover { color: var(--accent); }

/* ---- About ---- */
.about p {
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 56ch;
}
.about p + p { margin-top: 0.85rem; }
.about .accent-word { color: var(--accent); font-style: italic; }

/* ---- Feed / item lists ---- */
.feed { list-style: none; display: flex; flex-direction: column; }
.feed li {
  display: flex;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.feed li:first-child { border-top: none; padding-top: 0.25rem; }
.feed .date {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--faint);
  width: 4.4rem;
  padding-top: 0.15rem;
  letter-spacing: 0.02em;
}
.feed .body { flex: 1; }
.feed .item-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.feed .item-title a { color: var(--text); }
.feed .item-title a:hover { color: var(--accent); }
.feed .byline { color: var(--faint); font-size: 0.88rem; margin-top: 0.1rem; }
.feed .note { color: var(--muted); font-size: 0.97rem; margin-top: 0.4rem; }
.feed .note em { font-style: italic; color: var(--text); }

/* empty-state note for sections with no entries yet */
.empty-note {
  color: var(--faint);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.02rem;
}

/* ---- Star ratings ---- */
.stars {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.feed .item-title .stars { font-size: 0.82rem; margin-left: 0.45rem; }

/* tag chips */
.tags { margin-top: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 500;
}
.chip.healthcare { color: #a8492b; border-color: #e6c9bb; background: #f6e7df; }
.chip.personal   { color: #5a6b4e; border-color: #d3dac8; background: #e9eee1; }
.chip.econ       { color: #4c5b73; border-color: #c8d0dd; background: #e3e8f0; }

/* "see all" link */
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.see-all::after { content: "→"; transition: transform 0.18s ease; }
.see-all:hover::after { transform: translateX(3px); }

/* ---- Individual post / review pages ---- */
.post { padding: 3.5rem 0 1rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2.25rem;
}
.back-link::before { content: "←"; transition: transform 0.18s ease; }
.back-link:hover { color: var(--accent); }
.back-link:hover::before { transform: translateX(-3px); }

.post-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: lowercase;
}
.post-meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.post-meta .stars { font-size: 1rem; }

.post-body { margin-top: 2rem; max-width: 60ch; }
.post-body p { font-size: 1.1rem; line-height: 1.78; }
.post-body p + p { margin-top: 1.15rem; }

/* ---- Contact ---- */
.contact .lead { font-size: 1.12rem; max-width: 50ch; line-height: 1.65; }
.contact .email-line { margin-top: 1.1rem; color: var(--muted); font-size: 1rem; }
.contact .lead strong { font-family: var(--serif); font-weight: 500; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.contact-links svg { width: 1rem; height: 1rem; }

.colophon {
  padding: 2.5rem 0 3.5rem;
  color: var(--faint);
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 2.5rem 0; }
  .post { padding: 2.5rem 0 0.5rem; }
  .hero { padding: 3.25rem 0 0.5rem; }
  .feed li { flex-direction: column; gap: 0.3rem; }
  .feed .date { width: auto; padding-top: 0; }
}
