:root {
  --bg: #f2f1ed;
  --text: #26251e;
  --muted: rgba(38, 37, 30, 0.55);
  --line: rgba(38, 37, 30, 0.12);
  --accent: #f54e00;
  --max-width: 660px;
  --font-serif: "Lora", "Iowan Old Style", Georgia, ui-serif, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

/* ── Layout ── */

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
}

.site-name:hover {
  color: var(--text);
}

.nav-divider {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  user-select: none;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}

nav a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

nav a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── Main ── */

main {
  padding: 3rem 0 5rem;
}

/* ── Home list ── */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list + .post-list {
  margin-top: 3rem;
}

.list-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.post-item {
  list-style: none;
}

.post-item + .post-item {
  margin-top: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
}

.post-card span {
  display: block;
}

.post-card:hover .post-title {
  border-bottom-color: var(--text);
}

.post-card .post-date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.post-card .post-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}

.post-card .post-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.post-desc {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Post ── */

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.post-meta {
  margin-top: 3rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
}

.post-body p + p {
  margin-top: 1.25rem;
}

.post-body h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.75rem 0 0.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 150ms;
}

.back-link:hover {
  color: var(--text);
}

/* ── About ── */

.about {
  display: grid;
  gap: 2.5rem;
  max-width: 36rem;
}

.about-section p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.about-list li {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
}

.about-list a {
  border-bottom: 1px solid var(--line);
  transition: border-color 150ms;
}

.about-list a:hover {
  border-bottom-color: var(--text);
}

