:root {
  color-scheme: dark;
  --background: #090b10;
  --surface: #11151d;
  --surface-hover: #171d28;
  --text: #f4f6fa;
  --muted: #939baa;
  --line: #252c38;
  --accent: #7c9cff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, rgba(124, 156, 255, 0.1), transparent 34rem),
    var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  width: min(1100px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  padding: 28px 0 25px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active {
  border-bottom-color: var(--accent);
}

.centered {
  min-height: calc(100vh - 79px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.development {
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.development h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.documents-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.page-heading {
  margin-bottom: 48px;
}

.page-heading h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.page-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.file-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 21, 29, 0.82);
}

.file-row {
  min-height: 84px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row:hover,
.file-row:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.file-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.file-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-details strong,
.file-details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-details strong {
  font-size: 1rem;
}

.file-details small,
.file-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.file-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
  white-space: nowrap;
}

.empty-state {
  padding: 50px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 600px) {
  .site-header {
    width: min(100% - 28px, 1100px);
    min-height: 68px;
  }

  nav {
    gap: 18px;
  }

  nav a {
    padding: 23px 0 21px;
    font-size: 0.9rem;
  }

  .documents-page {
    width: min(100% - 28px, 900px);
    padding-top: 54px;
  }

  .file-row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 17px 16px;
  }

  .file-meta {
    grid-column: 2;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }
}
