@import url('https://fonts.googleapis.com/css2?family=Saira+Semi+Condensed:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Saira Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --background: #000;
  --surface: #0a0a0a;
  --border: #262626;
  --muted: #858585;
  --text: #fff;
  --gutter: clamp(20px, 2.8vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--background); color: var(--text); }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(100% - (var(--gutter) * 2), 1920px); margin-inline: auto; }

.site-header { position: sticky; z-index: 5; top: 0; height: 56px; background: #000; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 20px; min-width: 0; text-decoration: none; }
.brand-mark { display: block; position: relative; flex: none; width: 40px; height: 30px; overflow: hidden; }
.brand-mark img { display: block; position: absolute; top: 0; left: 0; width: auto; max-width: none; height: 30px; }
.brand-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .075em; line-height: 1.2; text-transform: uppercase; }
.brand-title .separator { display: inline-block; padding-inline: 9px; color: var(--muted); font-weight: 400; }
.header-detail { flex: none; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

main { padding-top: clamp(35px, 4vw, 60px); }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.toolbar-label { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: clamp(23px, 2vw, 28px); font-weight: 500; line-height: 1.1; }
.result-count { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.search { display: flex; align-items: center; gap: 10px; width: min(100%, 310px); height: 44px; padding: 0 14px; border: 1px solid var(--border); color: var(--muted); background: #000; transition: border-color 160ms cubic-bezier(.2,0,0,1); }
.search:hover, .search:focus-within { border-color: #fff; }
.search svg { width: 16px; height: 16px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; }
.search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--muted); opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding-bottom: clamp(80px, 10vw, 140px); }
.card { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--border); background: var(--surface); text-decoration: none; transition: border-color 160ms cubic-bezier(.2,0,0,1); }
.card:hover, .card:focus-visible { border-color: #fff; }
.card:focus-visible, .brand:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.card[hidden] { display: none; }
.card-visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: #000; }
.card-index { position: absolute; top: 14px; left: 16px; z-index: 1; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.card-logo { display: block; width: 72%; max-width: 230px; height: 65%; max-height: 125px; object-fit: contain; transition: transform 600ms cubic-bezier(.2,0,0,1); }
.card:hover .card-logo, .card:focus-visible .card-logo { transform: scale(1.03); }
.card-info { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 78px; padding: 16px 18px; }
.card-info h2 { min-width: 0; margin: 0; font-size: 17px; font-weight: 500; line-height: 1.15; }
.card-arrow { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 160ms cubic-bezier(.2,0,0,1), color 160ms cubic-bezier(.2,0,0,1); }
.card-arrow svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card:hover .card-arrow, .card:focus-visible .card-arrow { transform: translate(3px, -3px); color: #fff; }
.empty { display: none; margin: 0 0 120px; padding: 48px 24px; border: 1px solid var(--border); font-size: 22px; }
.empty.show { display: block; }

footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 75px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 720px) {
  .header-detail { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 20px; }
  .search { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-info { min-height: 72px; padding: 14px; }
  .card-info h2 { font-size: 15px; }
}

@media (max-width: 620px) {
  .brand { gap: 11px; }
  .brand-title { font-size: 10px; letter-spacing: .04em; }
  .brand-title .separator { padding-inline: 5px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card-visual { aspect-ratio: 16 / 9; }
  .card-logo { width: 65%; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; gap: 6px; padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-logo, .card-arrow, .search { transition: none; }
  .card:hover .card-logo, .card:focus-visible .card-logo { transform: none; }
}
