/* The listing pages (make-listing.sh): piccolo-site's colors (BLUE theme),
   the logo on top, the files below. */

:root {
  --bg: #1A2840;
  --band: #2A4068;
  --text: #E0E6F0;
  --muted: #AEBBD4;
  --shadow: #101828;
  --accent: #FFC93C;
  --link: #9DB8E8;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #E8EDF5;
    --band: #FFFFFF;
    --text: #1A2840;
    --muted: #4A5A78;
    --shadow: #B4C2DC;
    --link: #2A4068;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header { padding: 40px 0 24px; text-align: center; }
.logo { width: min(360px, 100%); height: auto; }

h1 {
  margin: 0 0 16px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  overflow-wrap: anywhere;
}

.files {
  background: var(--band); box-shadow: 6px 6px 0 var(--shadow);
  margin-bottom: 48px; overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 14px; text-align: left; white-space: nowrap; }
th {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--shadow);
}
tr + tr td { border-top: 1px solid var(--shadow); }
td.name { width: 100%; white-space: normal; overflow-wrap: anywhere; }
td.size, th.size { text-align: right; }
td.size, td.date { color: var(--muted); font-variant-numeric: tabular-nums; }
.dir a { font-weight: 700; }

@media (max-width: 600px) {
  th.date, td.date { display: none; }
}
