@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #15181d;
  --ink: #f4f5f5;
  --muted: #abb0b9;
  --line: #2c313a;
  --accent: #ffd900;
  font: 400 16px/1.5 Geist, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1056px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 25px; z-index: 2; padding: 10px 14px; transform: translateY(-200%); background: var(--accent); color: #151200; }
.skip:focus { transform: translateY(0); }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; white-space: nowrap; }
.brand img { display: block; }
.brand strong { color: var(--accent); }
.network { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.network span { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

main { padding-block: clamp(48px, 8vw, 112px); }
.heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px 32px; margin-bottom: 32px; }
h1 { font-size: clamp(40px, 7vw, 90px); line-height: .99; letter-spacing: -.055em; }
h1 em { color: var(--accent); font-style: normal; }
.heading p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.search { display: grid; gap: 7px; width: min(270px, 100%); font-size: 14px; color: var(--muted); }
.search input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; padding-inline: 13px; }
.file-count { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.file {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.format { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 0; color: var(--accent); font-size: 13px; font-weight: 760; }
.file h2 { overflow-wrap: anywhere; font-size: 17px; line-height: 1.3; font-weight: 660; }
.file-folder, .file-size { color: var(--muted); font-size: 14px; }
.file-folder { overflow-wrap: anywhere; margin-top: 4px; }
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #141200;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 140ms, transform 140ms;
}
.button:hover { background: #ffe74d; transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.empty { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 21px; line-height: 1.25; margin-bottom: 8px; }

@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 72px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .network { font-size: 13px; gap: 6px; }
  .search { width: 100%; }
  .file { grid-template-columns: 39px minmax(0, 1fr) auto; gap: 6px 12px; }
  .file h2 { font-size: 16px; }
  .format { grid-row: 1 / 3; }
  .file-size { grid-column: 2; grid-row: 2; }
  .button { grid-column: 3; grid-row: 1 / 3; padding-inline: 10px; gap: 5px; font-size: 14px; }
  .button svg { width: 16px; height: 16px; }
  .empty { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
