:root {
  --ink: #111214;
  --panel: #1a1c1f;
  --panel-2: #222529;
  --line: #4b4f54;
  --soft: #a7aaad;
  --paper: #e1e1df;
  --red: #d91920;
  --red-hot: #ff2b31;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink);
  overflow-x: hidden;
}

::selection { background: var(--red-hot); color: #fff; }
button, input { font: inherit; }
a { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

main { max-width: var(--max); margin: 0 auto; border-left: 1px solid #26282b; border-right: 1px solid #26282b; }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-index {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 34px 0;
  text-align: right;
  border-right: 1px solid var(--line);
  font: 900 54px/1 "Arial Narrow", Arial, sans-serif;
  color: #34373b;
}
.hero-copy { align-self: center; padding: 48px 58px 46px 48px; }
.eyebrow { margin: 0 0 15px; color: var(--red-hot); font: 700 10px/1.3 "Courier New", monospace; letter-spacing: .18em; }
.hero-title {
  margin: 0;
  width: max-content;
  max-width: 100%;
  display: grid;
  justify-items: start;
  font: 900 clamp(58px, 7.1vw, 108px)/.78 "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.065em;
}
.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-line-top { letter-spacing: -.07em; }
.hero-line-mid {
  margin-top: -.015em;
  color: transparent;
  -webkit-text-stroke: 1px #8d9195;
  text-stroke: 1px #8d9195;
  font-size: .675em;
  letter-spacing: -.035em;
}
.hero-line-bottom {
  margin-top: .015em;
  font-size: .93em;
  letter-spacing: -.075em;
}
.file-zone { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
.rail {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0 35px;
  color: var(--soft);
  font: 700 10px/1 "Courier New", monospace;
  letter-spacing: .14em;
}
.rail > span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-count { color: var(--paper); font-size: 19px; letter-spacing: 0; }

.catalog { min-width: 0; }
.catalog-head {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  padding: 32px 34px 26px 42px;
  border-bottom: 1px solid var(--line);
}
h2 { margin: 0; font: 900 clamp(38px, 5vw, 74px)/.9 "Arial Narrow", Arial, sans-serif; letter-spacing: -.055em; }
.file-heading { display: flex; align-items: baseline; gap: .26em; width: max-content; max-width: 100%; }
.catalog-tools { display: flex; align-items: end; gap: 10px; }
.search-wrap { display: grid; gap: 7px; color: var(--soft); font: 700 9px/1 "Courier New", monospace; letter-spacing: .14em; }
.search-wrap input {
  width: min(32vw, 310px);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #141517;
  color: var(--paper);
  padding: 0 12px;
  font: 700 13px/1 "Courier New", monospace;
}
.search-wrap input:focus { border-color: var(--red-hot); box-shadow: inset 4px 0 0 var(--red-hot); }
.refresh {
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: 900 11px/1 "Courier New", monospace;
}
.refresh:hover, .refresh:focus-visible { background: #fff; color: #111; border-color: #fff; }

.status-line {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font: 700 9px/1 "Courier New", monospace;
  letter-spacing: .11em;
}

.file-table { counter-reset: files; }
.file-row {
  counter-increment: files;
  display: grid;
  grid-template-columns: 54px minmax(180px, 1fr) 90px 100px 180px 150px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid #393c40;
  position: relative;
}
.file-row::before {
  content: counter(files, decimal-leading-zero);
  grid-column: 1;
  color: #6b6f74;
  font: 700 10px/1 "Courier New", monospace;
  text-align: center;
}
.file-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 0;
  background: var(--red-hot);
  transition: width .12s ease;
}
.file-row:hover { background: #202226; }
.file-row:hover::after { width: 5px; }
.file-name {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 18px;
  font: 800 16px/1.15 "Courier New", monospace;
}
.file-ext {
  grid-column: 3;
  color: var(--red-hot);
  font: 700 10px/1 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.file-size {
  grid-column: 4;
  color: var(--soft);
  font: 700 10px/1.25 "Courier New", monospace;
}
.file-date {
  grid-column: 5;
  color: var(--soft);
  font: 700 10px/1.25 "Courier New", monospace;
}
.download {
  grid-column: 6;
  justify-self: end;
  align-self: center;
  width: 118px;
  height: 36px;
  margin-right: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #4b4f54;
  border-bottom-color: var(--red);
  background: #151719;
  color: #ededeb;
  font: 900 9px/1 "Courier New", monospace;
  letter-spacing: .09em;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.download:hover {
  background: #1c1f22;
  border-color: #72777d;
  border-bottom-color: var(--red-hot);
  color: #fff;
}
.download:focus-visible {
  background: #1c1f22;
  border-color: var(--red-hot);
  color: #fff;
  outline: 1px solid var(--red-hot);
  outline-offset: 2px;
}

.empty { min-height: 220px; display: grid; place-content: center; text-align: center; gap: 10px; color: var(--soft); font: 700 11px/1.4 "Courier New", monospace; }
.empty[hidden] { display: none; }
.empty strong { color: var(--red-hot); font: 900 38px/1 "Arial Narrow", Arial, sans-serif; }


.error-code { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.error-code h1 { margin: 0; color: var(--red-hot); font: 900 clamp(64px, 12vw, 150px)/.8 "Arial Narrow", Arial, sans-serif; letter-spacing: -.07em; }
.error-code a { font: 700 11px/1 "Courier New", monospace; }

@media (max-width: 1000px) {
  .file-row { grid-template-columns: 40px minmax(0, 1fr) 90px 142px; min-height: 76px; }
  .file-row::before { grid-column: 1; }
  .file-name { grid-column: 2; font-size: 13px; }
  .file-ext, .file-date { display: none; }
  .file-size { grid-column: 3; }
  .download { grid-column: 4; width: 118px; margin-right: 10px; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 54px 1fr; min-height: 470px; }
  .hero-index { font-size: 34px; }
  .hero-copy { padding: 56px 26px; }
  .file-zone { grid-template-columns: 54px 1fr; }
  .catalog-head { grid-template-columns: 1fr; align-items: start; padding: 28px 20px; }
  .catalog-tools { width: 100%; }
  .search-wrap { flex: 1; }
  .search-wrap input { width: 100%; }
  .status-line { padding: 0 20px; }
}

@media (max-width: 520px) {
  .hero { grid-template-columns: 34px 1fr; min-height: 430px; }
  .hero-index { font-size: 24px; }
  .hero-copy { padding: 44px 18px 24px; }
  .hero-title { font-size: clamp(42px, 15vw, 72px); line-height: .8; }
  .hero-line-mid { font-size: .63em; }
  .hero-line-bottom { font-size: .9em; }
  .file-zone { grid-template-columns: 34px 1fr; }
  .rail-count { font-size: 13px; }
  .catalog-head { padding-left: 14px; padding-right: 14px; }
  .catalog-tools { flex-direction: column; align-items: stretch; }
  .refresh { width: 100%; }
  .status-line { padding: 0 14px; }
  .file-row { grid-template-columns: minmax(0, 1fr) 112px; min-height: 72px; padding-left: 14px; }
  .file-row::before, .file-size { display: none; }
  .file-name { grid-column: 1; padding-right: 10px; }
  .download {
    grid-column: 2;
    width: 102px;
    height: 36px;
    margin-right: 7px;
    padding: 0 8px 0 10px;
    font-size: 8px;
    letter-spacing: .045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Plain Lumi wordmark. */
.mast { justify-content: flex-start; }
.mark {
  color: var(--paper);
  font: 900 22px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  padding: 0 20px;
  border-right: 0;
}
