:root {
  font-family: system-ui, sans-serif;
  color: #f0ece4;
  background: #101113;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
.page { max-width: 1120px; margin: auto; padding: 24px clamp(18px, 4vw, 48px) 48px; }
.header { display: flex; align-items: center; gap: 30px; padding: 12px 0 24px; }
.brand { display: block; width: min(250px, 40vw); height: auto; object-fit: contain; }
.badge, .eyebrow { color: #e7c796; font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.badge { display: inline-block; border: 1px solid #8e7757; padding: 5px 10px; border-radius: 999px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.15; margin: 12px 0; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; }
.muted, .card p, .test p { color: #bfb9ae; }
.navigation { display: flex; flex-wrap: wrap; gap: 10px 24px; border-block: 1px solid #393630; padding: 16px 0; }
a { color: #f4d8ac; }
a:focus-visible, button:focus-visible, .file-button:focus-within { outline: 3px solid #f4d8ac; outline-offset: 3px; }
section { scroll-margin-top: 20px; padding-top: 42px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.count { color: #c5b495; font-size: .85rem; }
.cards, .tests { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tests { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.card, .test { min-width: 0; border: 1px solid #41403c; border-radius: 14px; background: #1b1c1e; padding: 16px; }
.card-art { height: 170px; border: 1px solid #6f6658; border-radius: 9px; display: grid; place-items: center; margin-bottom: 16px; }
.card-art span { font-size: 3rem; font-weight: 700; color: #e1d3bc; opacity: .8; }
.card-art-one { background: linear-gradient(140deg, #293d47, #151b21); }
.card-art-two { background: linear-gradient(140deg, #554332, #211a1b); }
.card-art-three { background: linear-gradient(140deg, #484c55, #191c24); }
.card p, .test p { margin-top: 6px; font-size: .9rem; }
button, .file-button { display: inline-block; margin-top: 14px; border: 1px solid #b79767; border-radius: 8px; background: #e6c797; color: #171410; padding: 10px 14px; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
input[type="file"] { display: block; width: 100%; margin-top: 10px; color: #d7d0c3; }
.test .status, .status { color: #f0d7b4; min-height: 1.5em; margin-top: 12px; overflow-wrap: anywhere; }
.preview { display: block; max-width: 100%; max-height: 240px; margin-top: 12px; object-fit: contain; }
.preview[hidden] { display: none; }
footer { border-top: 1px solid #393630; margin-top: 46px; padding-top: 18px; color: #aaa396; font-size: .85rem; }
@media (max-width: 640px) {
  .header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .brand { width: min(250px, 80vw); }
  .cards, .tests { grid-template-columns: 1fr; }
  .card-art { height: 130px; }
  .section-title { align-items: flex-start; flex-direction: column; }
}
