/* Myrient-style clone */
:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888;
  --link: #6eb3f7;
  --link-hover: #9ecff9;
  --border: #333;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --font-sans: system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 2vw, 0.75rem);
  line-height: 1.2;
  margin: 0 auto 0.5rem;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.notice {
  background: rgba(200, 150, 50, 0.15);
  border: 1px solid rgba(200, 150, 50, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 0 auto 0.5rem;
  max-width: 560px;
  font-size: 0.9rem;
}

.notice-links {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.notice-links a {
  color: var(--link);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.5rem;
}

.main-nav a {
  color: var(--link);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.donate-prompt {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.donate-prompt a {
  color: var(--link);
}

.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--link);
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 600;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; font-weight: 500; font-style: italic; color: var(--text-muted); }

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

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-card);
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* Files listing table */
.files-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.files-table th,
.files-table td {
  padding: 0.5rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.files-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
}

.files-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.files-table .name { min-width: 200px; }
.files-table .size { width: 120px; color: var(--text-muted); }
.files-table .date { width: 140px; color: var(--text-muted); }

.files-table .dir::before {
  content: '📁 ';
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--link);
}

.page-title {
  margin-bottom: 0.5rem;
}

.donate-addresses {
  margin: 1rem 0;
}

.donate-addresses dt {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--text-muted);
}

.donate-addresses dt:first-child {
  margin-top: 0;
}

.donate-addresses dd {
  margin: 0.25rem 0 0;
  word-break: break-all;
}
