:root {
  --bg: #e9e9e7;
  --bg-card: #f4f4f2;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --border: #d3d3d0;
  --accent: #1c1c1c;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* ---------- Home page ---------- */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.02em;
  margin: 0 0 56px;
  color: var(--text);
}

.tiles {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tile.icon-tile {
  min-width: unset;
  padding: 18px;
  border-radius: 50%;
}

.tile.icon-tile svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Shared page shell (list + post pages) ---------- */

.container {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 10vh 48px 60px;
}

.back-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

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

.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  margin: 20px 0 8px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

/* Post list */

.list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.list-item:first-of-type {
  border-top: 1px solid var(--border);
}

.list-item .item-title {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.list-item .item-title:hover {
  text-decoration: underline;
}

.list-item .item-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.list-item .item-excerpt {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.55;
}

.empty-note {
  color: var(--muted);
  font-size: 15px;
  padding: 20px 0;
}

/* Blog post */

.post-image {
  margin: 20px 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.post-header {
  margin: 20px 0 36px;
}

.post-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  margin: 16px 0 10px;
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
}

.post-body p {
  margin: 0 0 20px;
}

.post-body {
  font-size: 15px;
}

/* Chronicles / dated log entries */

.entry {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.entry:first-of-type {
  padding-top: 8px;
}

.entry:last-of-type {
  border-bottom: none;
}

.entry-date {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 14px;
}

.entry p {
  margin: 0 0 16px;
}

.entry p:last-child {
  margin-bottom: 0;
}

/* Research brief */

.brief-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 24px 0 10px;
}

.brief-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 12px;
}

.brief-byline {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.brief-divider {
  height: 2px;
  background: var(--text);
  border: none;
  margin: 0 0 28px;
}

.brief-summary-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.brief-summary-box {
  background: var(--bg-card);
  border-left: 3px solid var(--text);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.brief-summary-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.brief-ongoing {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 28px;
}

.brief-pdf-link {
  font-size: 14px;
  font-weight: 600;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .tagline {
    font-size: 30px;
  }
  .container {
    padding-top: 8vh;
  }
}
