:root {
  --paper: #f4f1e8;
  --paper-deep: #ebe6d9;
  --ink: #182523;
  --muted: #64706c;
  --line: #d8d3c6;
  --accent: #ef6a3a;
  --accent-soft: #f9d9c9;
  --card: rgba(255, 255, 255, 0.58);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(29, 40, 37, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(239, 106, 58, 0.13), transparent 27rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.wordmark small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 1.3rem;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}

.source-link:hover { color: var(--ink); }

.hero {
  display: grid;
  justify-items: start;
  padding: clamp(74px, 11vw, 132px) 0 clamp(78px, 10vw, 120px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.2vw, 6.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

h1 em { color: var(--accent); font-weight: 400; }

.intro {
  max-width: 580px;
  margin: 42px 0 38px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.search {
  display: flex;
  align-items: center;
  width: min(720px, 100%);
  min-height: 66px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search:focus-within {
  transform: translate(3px, 3px);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.search svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 18px 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.search input::placeholder { color: #8b928f; }

kbd {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.75rem;
  box-shadow: 0 2px 0 var(--line);
}

.summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.8rem;
}

.summary strong { color: var(--ink); font-size: 1rem; }
.summary i { width: 3px; height: 3px; margin: 0 5px; border-radius: 50%; background: var(--accent); }

.catalog {
  padding: clamp(58px, 8vw, 92px) 0 110px;
  border-top: 1px solid var(--line);
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-heading .eyebrow { margin-bottom: 10px; }
h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 400; letter-spacing: -0.055em; }
#result-count { margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; }

.filters {
  display: flex;
  gap: 8px;
  margin: 36px 0 30px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: 150ms ease;
}

.filter-button:hover { border-color: var(--ink); color: var(--ink); }
.filter-button[aria-pressed="true"] { border-color: var(--ink); color: var(--paper); background: var(--ink); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.brand-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: #b8b1a1;
  box-shadow: var(--shadow);
}

.card-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.72rem; }
.country { font-weight: 750; }
.checked { font-variant-numeric: tabular-nums; }
.brand-card h3 { margin: 29px 0 26px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1.05; letter-spacing: -0.045em; }
.brand-card dl { display: grid; gap: 16px; margin: 0 0 25px; }
.brand-card dl div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.brand-card dt { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-card dd { margin: 0; font-size: 0.83rem; line-height: 1.45; }
.brand-card dd a { color: inherit; font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.brand-card dd a:hover { color: var(--accent); }
.brand-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 750; }
.brand-link span { color: var(--accent); font-size: 1rem; }

.empty-state { padding: 85px 20px; text-align: center; }
.empty-state > span { color: var(--accent); font-size: 3rem; }
.empty-state h3 { margin: 12px 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.empty-state p { color: var(--muted); }
.empty-state button { margin-top: 12px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 999px; color: #fff; background: var(--ink); cursor: pointer; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p { margin: 0; }
footer a { color: var(--ink); font-weight: 700; text-decoration: none; }

@media (max-width: 880px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 76px; }
  .source-link { font-size: 0; }
  .source-link span { font-size: 1.1rem; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(1.95rem, 9vw, 3.2rem); }
  .intro { margin-top: 32px; }
  .search { min-height: 59px; box-shadow: 4px 4px 0 var(--ink); }
  kbd { display: none; }
  .summary { flex-wrap: wrap; }
  .catalog-heading { align-items: start; flex-direction: column; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 290px; }
  footer { flex-direction: column; }
}

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