:root {
  /* Cream paper, ink with a hint of violet, logo purple + ochre */
  --text: #28232e;
  --muted: #6b6470;
  --bg: #faf6ee;
  --soft: #f2ebdd;
  --line: #e5dac6;
  --accent: #3a2b72; /* logo purple, a little richer */
  --accent-soft: #ebe8f4;
  --ochre: #c4902e; /* decoration only (lines, labels) */
  --ochre-dark: #85591a; /* ochre for text */
  --ochre-soft: #f6ebd0;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ochre-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fffdf8; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent); }
.logo img { width: 80px; height: 80px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 6px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
nav a:hover { background: var(--soft); color: var(--text); }
nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

footer.wrap { margin-top: 40px; padding-block: 20px 28px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: 2.1rem; }
h1::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 12px; background: var(--ochre); }
.post-preview h2, .post-preview h3 { font-size: 1.25rem; }
/* Section break: two thin lines with a small diamond */
hr {
  position: relative; width: 180px; height: 12px; margin: 40px auto; border: 0;
  background:
    linear-gradient(var(--hr), var(--hr)) left center / 72px 1px no-repeat,
    linear-gradient(var(--hr), var(--hr)) right center / 72px 1px no-repeat;
  --hr: color-mix(in srgb, var(--ochre) 55%, transparent);
}
hr::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  background: var(--ochre); transform: translate(-50%, -50%) rotate(45deg);
}
blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--ochre); font-family: var(--serif); font-style: italic; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }

/* Home */
.intro { font-size: 1.1rem; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .columns { grid-template-columns: 1fr; } }

/* Blog */
.post-preview { padding-block: 12px; border-bottom: 1px solid var(--line); }
.post-preview h3 { margin: 0 0 4px; }
.post-preview p { margin: 8px 0 0; }
.post { max-width: 720px; }
.post > .meta { margin-bottom: 24px; }
.info { margin: 24px 0; padding: 12px 16px; border-left: 3px solid var(--ochre); background: var(--ochre-soft); border-radius: 0 6px 6px 0; }
.info > :first-child { margin-top: 0; }
.info > :last-child { margin-bottom: 0; }
.question { margin: 36px 0 8px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--accent); }
.question > * { margin: 0; }

/* Event list */
.events { list-style: none; padding: 0; margin: 0; }
.event { display: flex; gap: 16px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); }
.event-date {
  flex: none; width: 56px; padding: 6px 0; text-align: center; border-radius: 8px;
  background: var(--ochre-soft); color: var(--ochre-dark); font-size: 0.8rem; text-transform: uppercase;
}
.event-date span { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.event > div > a { font-weight: 600; }
.events.past { opacity: 0.7; }

/* Images */
.cover { display: block; width: 100%; max-height: 480px; object-fit: cover; margin: 16px 0 24px; border-radius: 8px; }
.post img { border-radius: 6px; }
.post-preview.has-image { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.post-preview .thumb img { display: block; width: 140px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
@media (max-width: 600px) {
  .post-preview.has-image { grid-template-columns: 96px 1fr; }
  .post-preview .thumb img { width: 96px; }
}

/* Books */
.home-books { margin-top: 48px; }
.books { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 720px) { .books { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
.book strong { display: block; font-size: 1.1rem; line-height: 1.3; }
.book a { position: relative; display: block; color: var(--text); text-decoration: none; }
.status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--ochre-soft); color: var(--ochre-dark); border: 1px solid color-mix(in srgb, var(--ochre) 50%, transparent);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
}
.book .status { position: absolute; top: 10px; left: 10px; z-index: 1; }
.book-page .status { margin-bottom: 12px; }
.book a:hover strong { color: var(--accent); }
.book strong { font-family: var(--serif); font-weight: 600; }
.book img { display: block; }
.book img, .book .no-cover {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 8px;
  border-radius: 4px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}
.no-cover {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; aspect-ratio: 2 / 3;
  padding: 16px; text-align: center; font-family: var(--serif); line-height: 1.3;
  background: var(--soft); border: 1px solid var(--line); color: var(--muted);
}
.no-cover span:first-child { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.no-cover span:last-child { font-size: 0.95rem; color: var(--accent); overflow: hidden; }
.books .no-cover span:first-child, .book-page .no-cover span:first-child { font-size: 0.85rem; }
.books .no-cover span:last-child, .book-page .no-cover span:last-child { font-size: 1.2rem; }
@media (max-width: 720px) { .books .no-cover span:last-child { font-size: 0.95rem; } }
.book-page .subtitle { margin: -8px 0 20px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.book-page { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.book-page h1 { margin-top: 0; }
.book-cover { width: 100%; border-radius: 4px; box-shadow: 0 2px 12px rgb(0 0 0 / 0.2); }
.book-page dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 24px; }
.book-page dt { color: var(--muted); }
.book-page dd { margin: 0; }
@media (max-width: 600px) {
  .book-page { grid-template-columns: 1fr; }
  .book-cover { max-width: 220px; }
}
.button { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--ochre-dark); color: #fff; }
