:root {
  /* From krisyotam.com default theme */
  --bg-color: hsl(0 0% 98%);
  --card-bg: hsl(0 0% 99%);
  --text-color: hsl(0 0% 20%);
  --text-muted: hsl(0 0% 50%);
  --border-color: hsl(0 0% 88%);
  --hover-bg: hsl(0 0% 92%);
  --muted-bg: hsl(0 0% 92%);

  /* Meta colors - matching Tailwind gray scale */
  --meta-strong: hsl(0 0% 11%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide original nginx content */
body > h1, body > pre, body > hr {
  display: none;
}

/* Main container */
.page-container {
  max-width: 672px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  transition: color 0.15s ease;
}

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

.back-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Header card */
.header-card {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.header-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.5rem;
}

.header-description {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.header-date {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Meta row with hover cards */
.header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
}

.header-meta .separator {
  color: var(--text-muted);
}

/* Meta item with hover card */
.meta-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: help;
  padding: 0.25rem 0;
}

.meta-item svg {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.7;
}

.meta-item.status-finished,
.meta-item.certainty-certain,
.meta-item.importance-high {
  color: var(--meta-strong);
}

/* Hover card - positioned BELOW */
.hover-card {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 100;
  margin-top: 0.5rem;
  pointer-events: none;
}

.hover-card h4 {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.hover-card p {
  white-space: pre-wrap;
  margin: 0;
}

.meta-item:hover .hover-card {
  opacity: 1;
  visibility: visible;
}

.header-divider {
  margin-top: 1rem;
  border-bottom: 1px solid var(--border-color);
}

/* Bottom decorative border */
.section-divider {
  margin: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Table styles - matching krisyotam.com archive.tsx */
.index-table {
  width: 100%;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.index-table thead tr {
  border-bottom: 1px solid var(--border-color);
  background: var(--muted-bg);
}

.index-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-color);
}

.index-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.index-table tbody tr {
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.index-table tbody tr:hover {
  background-color: var(--hover-bg);
}

.index-table tbody tr:last-child td {
  border-bottom: none;
}

.index-table a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.index-table a:hover {
  color: var(--text-muted);
}

/* Name column with icon */
.col-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.col-name svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Type column */
.col-type {
  color: var(--text-color);
}

/* Size column */
.col-size {
  color: var(--text-color);
}

/* Modified column */
.col-modified {
  color: var(--text-color);
}
