:root {
  --bg: #3b1112;
  --bg2: #5a1b1c;
  --card: #f6f0df;
  --card2: #fffaf0;
  --text: #171717;
  --muted: #4b4b4b;
  --link: #0b5bd3;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --brand-img-size: clamp(96px, 14vw, 160px);
  --index-brand-img-height: calc((28px * 1.2) + 6px + (16px * 1.45) + 10px + (14px * 1.2) + 10px + (14px * 1.2));
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: radial-gradient(1200px 700px at 50% -200px, var(--bg2), var(--bg));
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 18px;
}

.brand {
  display: grid;
  grid-template-columns: var(--brand-img-size) 1fr;
  gap: 16px;
  align-items: center;
}

.brand--tall {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.brand__img {
  width: var(--brand-img-size);
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand__img--tall {
  width: auto;
  height: var(--index-brand-img-height);
}

.brand__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.brand__subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.brand__meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.brand__meta a {
  color: #ffe08a;
}

.nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
}

.nav__link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
}

.main {
  padding: 14px 0 60px;
}

.card {
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card__header {
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
}

.card__title {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card__body {
  padding: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.spacer {
  height: 14px;
}

.col-name {
  width: 45%;
}

.filters__label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

select,
button,
input[type="submit"] {
  font: inherit;
}

select {
  height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: var(--card2);
  color: var(--text);
}

button,
input[type="submit"] {
  height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 0;
  background: #0b5bd3;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background: #084cad;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.table th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.03);
}

.table a {
  color: #0b5bd3;
  font-weight: 700;
}

.prebox {
  margin: 0;
  padding: 14px 14px 18px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre;
}

.footer {
  padding: 18px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-align: center;
}

.footer a {
  color: #ffe08a;
}

@media (max-width: 640px) {
  .brand {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand--tall {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .brand__img {
    margin: 0 auto;
  }

  .brand__img--tall {
    width: var(--brand-img-size);
    height: auto;
  }

  .nav {
    justify-content: center;
  }

  .filters {
    justify-content: center;
  }
}
