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

:root {
  --bg:     #F5F0E8;
  --bg-w:   #FDFAF5;
  --navy:   #0D3B66;
  --text:   #1C1917;
  --muted:  #6B6560;
  --accent: #C4704A;
  --border: #DDD8CF;
}

body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent); }

.nav-sub {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* Main */
main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Fancyindex table */
#list {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-w);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

#list thead {
  background: var(--navy);
  color: var(--bg);
}

#list th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#list th a {
  color: var(--bg);
  text-decoration: none;
}

#list th a:hover { color: #FAF0CA; }

#list tbody tr {
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}

#list tbody tr:hover { background: var(--bg); }

#list td {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

#list td.link a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

#list td.link a:hover {
  color: var(--accent);
  text-decoration: underline;
}

#list td.size,
#list td.date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

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

@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  main { margin: 1rem auto; padding: 0 1rem; }
  #list td.date { display: none; }
}
