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

:root {
  --bg: #FAF6F1;
  --bg-subtle: #F3EDE5;
  --text: #2C2C2C;
  --text-muted: #6B6157;
  --text-faint: #9B9183;
  --accent: #8B5E3C;
  --accent-hover: #6D4A2E;
  --border: #E6DDD3;
  --tag-bg: #EDE6DC;
  --tag-text: #7A6A58;
  --status-current: #7B8F6A;
  --status-finished: var(--text-faint);
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main.container {
  flex: 1;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

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

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

/* ---- Header ---- */

.site-header {
  padding: 5rem 0 3rem;
}

.site-name-link {
  text-decoration: none;
  color: inherit;
}

.site-name-link:hover {
  color: inherit;
}

.site-name {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.site-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.social-links a {
  color: var(--text-muted);
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links a:hover::after {
  width: 100%;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

/* ---- Sections ---- */

.section {
  padding: 3rem 0;
  width: 100%;
}


.section-title {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.subsection-title {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* ---- Lore ---- */

.section p {
  margin-bottom: 1rem;
  color: var(--text);
}

.updates-list {
  list-style: none;
  padding-left: 0;
}

.updates-list li {
  display: flex;
  gap: 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.update-date {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
  min-width: 5.5rem;
  font-weight: 500;
}

.update-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.beliefs-list-minimal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.belief-heading {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.belief-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Entry list (Projects & Blogs) ---- */

.entry-list {
  width: 100%;
}

.entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}


.entry:hover {
  background-color: var(--bg-subtle);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 4px;
}

.entry-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.entry-title {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-title .arrow {
  font-size: 0.8rem;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
  font-style: normal;
}

.entry:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.entry-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.entry-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 3px;
}

.entry-date {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.entry-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.entry-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-style: italic;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.entry:hover .entry-note {
  max-height: 3rem;
  opacity: 1;
  margin-top: 0.25rem;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.entry:hover .entry-tags {
  max-height: 2rem;
  opacity: 1;
  margin-top: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--tag-text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.entry-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(139, 94, 60, 0.08);
  border: 1px solid rgba(139, 94, 60, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---- Reading list ---- */

.reading-list {
  display: flex;
  flex-direction: column;
}

.reading-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}


a.reading-entry-link {
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.15s ease;
}

a.reading-entry-link:hover {
  background-color: var(--bg-subtle);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 4px;
}

.reading-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.reading-title {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}

.reading-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reading-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.reading-status {
  font-size: 0.75rem;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-current {
  color: var(--status-current);
}

.status-finished {
  color: var(--status-finished);
}

/* ---- Footer ---- */

.site-footer {
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .site-header {
    padding: 3rem 0 2rem;
  }

  .site-name {
    font-size: 2.2rem;
  }

  .site-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .entry {
    flex-direction: column;
    gap: 0.35rem;
  }

  .entry-meta {
    gap: 0.5rem;
  }

  .reading-entry {
    flex-direction: column;
    gap: 0.35rem;
  }

  .section {
    padding: 2rem 0;
  }
}
