@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600&family=Noto+Serif+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Monochrome "ink on paper" palette, taken from the logo itself */
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #14130f;
  --muted: #8b867c;
  --border: #e5e1d8;
  --accent: #14130f;
  --radius: 0;   /* fully square corners throughout */

  --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ---------- Logo ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

/* The badge is circular with fine engraving — below ~64px it turns to mush,
   so it is never scaled down further than this. */
.brand img {
  height: 72px;
  width: 72px;
  display: block;
}

.brand .wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .wrap { padding: 40px 20px 72px; }
  .brand img { height: 64px; width: 64px; }
}

/* ---------- Typography ---------- */

h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 40px;
  max-width: 46ch;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- Drop zone ---------- */

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 0;
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: var(--surface);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #fffdf9; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }
.dropzone .big {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 5px;
}

/* ---------- File lists ---------- */

.filelist { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
}
.file-row .name { font-weight: 500; word-break: break-word; }
.file-row .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.file-row .status { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Buttons ---------- */

a.btn, button.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
a.btn:hover, button.btn:hover { opacity: 0.82; }

button.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
button.btn.ghost:hover { border-color: var(--accent); opacity: 1; }

.divider { height: 1px; background: var(--border); margin: 44px 0; }

/* ---------- Forms ---------- */

input[type=text], input[type=password] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); }
th {
  font-family: var(--font-display);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fffdf9; }

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 0;
  background: #efece6;
  color: var(--muted);
}
.badge.on { background: var(--accent); color: #fff; }

.empty { color: var(--muted); font-size: 14px; padding: 24px 0; }
