:root {
  --bg: #ffffff;
  --surface: #f3f3f3;
  --ink: #0a0a0a;
  --muted: #3a3a3a;
  --accent: #2436ff;
  --field-1: #2436ff;
  --field-2: #ff3b1f;
  --field-3: #0a0a0a;
  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.95rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --margin: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Chillax, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }
.mast {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 22px var(--margin) 8px;
  background: #fff;
  color: var(--ink);
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.mast nav { display: flex; gap: 1rem; flex: 1; }
.mast nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  font: 500 1rem Chillax, sans-serif;
  cursor: pointer;
}
.mast .btn { background: var(--ink); color: #fff; }
.btn:hover, .btn:focus-visible { background: var(--field-2); color: var(--ink); }
.hero {
  background: #fff;
  color: var(--ink);
  padding: 28px var(--margin) 12px;
}
.hero h1 {
  margin: 12px 0 8px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(44px, 6vw, 84px);
}
.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--ink); }
.support {
  margin: 0;
  max-width: 42ch;
  font-size: 1.0625rem;
}
.search {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  width: min(640px, 100%);
}
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input, .filters input, .filters select {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 56px;
  border: 0;
  background: #f3f3f3;
  color: var(--ink);
  font: 400 1.05rem Chillax, sans-serif;
  padding: 0 16px;
}
.search button { min-height: 56px; background: var(--field-2); color: var(--ink); }
.list-block, .shelf-block, .faq, .page-head, .prose, .layout { padding: 36px var(--margin) 12px; }
.list-block { background: #fff; }
.list-block h2, .shelf-block h2, .faq h2, .page-head h1, .prose h1, .stat-block h2, .close h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 24px;
}
.list-block h2 { font-size: var(--step-head); }
.bars { display: grid; gap: 6px; }
.bar, .faq details {
  background: #f6f6f6;
  color: var(--ink);
}
.bar summary, .faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.bar summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.bar p, .faq details p { margin: 0; padding: 0 18px 18px; max-width: 62ch; }
.stat-block {
  background: #fff;
  color: var(--ink);
  padding: 28px var(--margin) 8px;
}
.stat-block h2 { font-size: clamp(28px, 3vw, 44px); }
.figure {
  margin: 0;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.caption { max-width: 36ch; font-size: 1.0625rem; }
.shelf { width: 100%; border-collapse: collapse; }
.shelf th, .shelf td { text-align: left; vertical-align: top; padding: 18px 12px 18px 0; }
.shelf th { font-weight: 500; }
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
a.card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  background: #f6f6f6;
  min-height: 100%;
  cursor: pointer;
}
a.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #ececec;
  display: block;
}
a.card .pad { padding: 12px 12px 14px; }
a.card strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
a.card em { display: block; margin-top: 4px; font-style: normal; font-weight: 500; }
a.card:hover { background: #ececec; }
a.card:hover strong { text-decoration: underline; }
.handle, .line, .flag, .status { display: block; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { text-decoration: none; font-weight: 500; }
.price.free { font-weight: 600; }
.faq { background: #fff; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.faq details + details { margin-top: 8px; }
.faq details[open] { background: var(--accent); color: #fff; }
.close {
  background: #fff;
  color: var(--ink);
  padding: 28px var(--margin) 20px;
}
.close h2 { font-size: var(--step-head); max-width: 16ch; }
.close .btn { align-self: flex-start; background: var(--accent); }
.site-foot {
  background: #fff;
  color: var(--ink);
  padding: 36px var(--margin) 64px;
}
.foot-name {
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 12px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.site-foot a { color: var(--ink); }
.page-head, .prose, .layout, .shelf-block { background: #fff; }
.page-head h1, .prose h1 { font-size: var(--step-head); }
.lede { max-width: 42ch; }
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.filters { display: grid; gap: 8px; align-content: start; }
.filters h2 { font-size: var(--step-lead); margin: 0; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chiprow button {
  min-height: 44px;
  border: 0;
  background: var(--surface);
  font: 500 1rem Chillax, sans-serif;
  padding: 0 12px;
  cursor: pointer;
}
.chiprow button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.results-meta, .pager { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; }
.pager button { min-height: 44px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-lead); margin-top: 1.6em; }
.glossary dt { font-weight: 600; margin-top: 1rem; }
.note, .empty { background: var(--surface); padding: 16px; }
.gate {
  position: fixed;
  inset: 0;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 5;
}
.gate[hidden] { display: none; }
.gate-card { max-width: 36ch; }
.gate-card h2 { font-size: var(--step-head); margin: 0 0 12px; }
.gate-actions { display: flex; gap: 16px; align-items: center; }
.gate-actions a { color: var(--ink); }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; }
@media (max-width: 800px) {
  .mast { flex-wrap: wrap; }
  .mast nav { display: none; }
  .hero h1 { font-size: 12vw; }
  .support { margin: 24px 0 0; text-align: left; }
  .search { flex-direction: column; }
  .faq, .layout { grid-template-columns: 1fr; padding: 48px 16px; }
  .list-block, .shelf-block, .page-head, .prose { padding: 48px 16px; }
  .shelf thead { display: none; }
  .shelf tr { display: block; padding: 16px 0; }
  .shelf td { display: block; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
