:root {
  color-scheme: light;
  --bg: #f8f7fd;
  --paper: #fff;
  --soft: #f2ecff;
  --ink: #23183f;
  --muted: #62597a;
  --primary: #5935cf;
  --brand: #6d40ed;
  --primary-dark: #4423a9;
  --line: #e6e0f2;
  --green: #16533b;
  --green-bg: #e7f8ee;
  --amber: #714010;
  --amber-bg: #fff1de;
  --radius: 18px;
  --shadow: 0 8px 28px #2813560a;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button[disabled] { cursor: default; opacity: .7; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.65rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .85rem; }
:focus-visible { outline: 3px solid #8256ff; outline-offset: 4px; }
.skip { position: absolute; z-index: 20; top: .7rem; left: .7rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.container { width: min(1120px, calc(100% - 2.25rem)); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted, small { color: var(--muted); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 72px; display: flex; gap: 1.1rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: .6rem; align-items: center; flex-shrink: 0; font-weight: 850; font-size: 1.18rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.brand img { flex: 0 0 auto; display: block; }
.brand-em { color: var(--primary); }
.navigation, .header-actions, .tags, .actions, .footer-links { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.navigation a { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; padding: .62rem .48rem; }
.navigation a[aria-current="page"], .navigation a:hover { color: var(--primary); }
.btn, .chip { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 44px; padding: .56rem .95rem; border: 1px solid transparent; border-radius: 11px; background: var(--primary); color: #fff; font-weight: 730; font-size: .92rem; line-height: 1.35; text-align: center; text-decoration: none; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.secondary, .chip { color: var(--primary-dark); background: var(--paper); border-color: var(--line); }
.btn.secondary:hover, .chip:hover { background: var(--soft); color: var(--primary-dark); border-color: #cab7ff; }
.btn[aria-pressed="true"], .chip[aria-current="page"] { color: var(--primary-dark); background: var(--soft); border-color: #cab7ff; }
.hero-wrapper { padding-block: 1.75rem 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 340px; isolation: isolate; overflow: hidden; border: 1px solid #e8ddff; border-radius: 27px; padding: clamp(1.4rem, 5.2vw, 3.7rem); background: radial-gradient(ellipse at 86% 34%, #e8dcff, transparent 56%), linear-gradient(120deg, #f8f2ff, #f1eaff 75%); }
.hero-copy { position: relative; z-index: 1; width: min(620px, 100%); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.65rem); max-width: 12ch; }
.hero-title-accent { color: var(--primary); }
.hero p { max-width: 46ch; margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.12rem); color: var(--muted); }
.hero-search { display: flex; max-width: 515px; gap: .5rem; border: 1px solid #e2d7f9; background: var(--paper); border-radius: 14px; padding: .38rem; box-shadow: var(--shadow); }
.hero-search input { min-width: 0; width: 0; border: 0; padding: .5rem .65rem; flex: 1 1 auto; background: transparent; }
.radar { position: absolute; z-index: -1; aspect-ratio: 1; width: min(440px, 46%); right: -1.5%; top: 50%; transform: translateY(-50%); overflow: hidden; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 45px, #bba8f1 46px 47px, transparent 48px 56px), conic-gradient(from 25deg, transparent 0 4%, #cebbfc 14%, #e8ddff00 17% 100%); mask-image: radial-gradient(circle, #000 44%, #0009 62%, #0000 72%); }
.radar::before, .radar::after { position: absolute; content: ""; border-radius: 50%; }
.radar::before { width: 10px; height: 10px; top: 49%; left: 49%; background: #8758ee; box-shadow: 102px -63px 0 -1px #895cee, 55px 79px 0 2px #a37afa, -94px -79px 0 -1px #986cf6; }
.radar::after { inset: 20%; border: 1px dashed #bda7f5; }
.quick { margin-top: 1rem; }
.chip { min-height: 40px; border-radius: 999px; padding: .45rem .8rem; color: var(--ink); font-size: .85rem; }
.section { margin-block: 2rem; }
.section-head { display: flex; gap: .65rem 1rem; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-block-end: 1rem; }
.section-head p { margin: .45rem 0 0; }
.section-head > a { font-weight: 740; text-underline-offset: .2em; }
.page-intro { padding-block: 1rem .5rem; }
.page-intro p { margin-top: .65rem; max-width: 69ch; color: var(--muted); }
.grid { display: grid; gap: .9rem; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .panel, .empty, .category, .info-strip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel, .empty { padding: clamp(1rem, 3vw, 1.7rem); }
.empty { background: linear-gradient(125deg,#fff,#fbf8ff); }
.empty h2, .empty h3 { margin-bottom: .45rem; }
.empty p { color: var(--muted); }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.card-media, .hero-media { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--soft); }
.card-main { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.card-top { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.card .organizer { color: var(--muted); font-size: .83rem; font-weight: 700; }
.card h3 { overflow-wrap: anywhere; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--primary-dark); text-decoration: underline; }
.card p { font-size: .9rem; margin: .45rem 0 .75rem; color: var(--muted); }
.card-meta { margin-top: auto; display: flex; gap: .3rem .55rem; flex-wrap: wrap; align-items: center; font-size: .82rem; }
.card-actions { margin-top: .75rem; padding-top: .68rem; border-top: 1px solid var(--line); display: flex; gap: .4rem; flex-wrap: wrap; }
.card-actions[data-local-actions][hidden], .tags[data-local-actions][hidden] { display: flex !important; visibility: hidden; }
.card-actions button { min-height: 38px; padding: .3rem .55rem; font-size: .78rem; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: .14rem .54rem; color: var(--primary-dark); background: var(--soft); border-radius: 999px; font-size: .73rem; font-weight: 760; }
.badge.free { color: var(--green); background: var(--green-bg); }
.badge.paid { color: var(--amber); background: var(--amber-bg); }
.badge.unknown { color: #514a63; background: #f0edf5; }
.category { color: var(--ink); text-decoration: none; padding: 1rem; display: flex; gap: .7rem; align-items: center; font-weight: 740; }
.category:hover { color: var(--primary-dark); border-color: #cab7ff; }
.category-icon, .feature-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: var(--soft); color: var(--primary-dark); font-size: 1.1rem; }
.breadcrumb { margin-top: 1.1rem; color: var(--muted); font-size: .85rem; }
.breadcrumb ol { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: flex; gap: .5rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: #857c9a; }
.breadcrumb a { text-decoration: none; }
.list-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-block: 1.4rem .8rem; }
.list-header h2 { font-size: 1.2rem; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.panel h2, .prose h2 { margin-bottom: .7rem; }
.panel h3, .prose h3 { margin-block: 1.1rem .4rem; }
.field { display: grid; gap: .24rem; width: 100%; color: var(--ink); }
.field label, label.field { font-size: .9rem; font-weight: 675; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, input.field, select.field, textarea.field { width: 100%; min-width: 0; color: var(--ink); background: var(--paper); padding: .48rem .6rem; min-height: 44px; border: 1px solid #d5cae7; border-radius: 9px; font-weight: 450; }
.field textarea { min-height: 6rem; }
.filters { margin-top: 1rem; }
.filters summary { cursor: pointer; font-weight: 750; color: var(--primary-dark); }
.filters details[open] summary { margin-bottom: .8rem; }
.filters details { margin-block: .65rem; }
.filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .85rem; }
.filter-search { grid-column: span 2; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: 0; margin-block: 1.5rem; list-style: none; }
.pager .chip { min-width: 41px; }
.detail-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.detail-main h1 { margin-top: .5rem; }
.detail-main .lead { font-size: clamp(1.12rem, 2vw, 1.4rem); margin-block: .6rem 1rem; color: var(--muted); }
.detail-main .panel { margin-bottom: .9rem; }
.detail-main .actions { margin-top: 1rem; }
.detail-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-block: 1rem; }
.detail-metadata div { border-top: 1px solid var(--line); padding-top: .55rem; }
.detail-metadata dt { color: var(--muted); font-size: .8rem; font-weight: 720; }
.detail-metadata dd { margin: 0; overflow-wrap: anywhere; }
.detail-main figure { margin: 0 0 1rem; }
.detail-main figcaption { font-size: .8rem; padding: .5rem .7rem; color: var(--muted); }
.prose { max-width: 76ch; overflow-wrap: anywhere; }
.prose > h2:not(:first-child) { margin-top: 1.35rem; }
.prose ul, .prose ol { margin: .5rem 0 1rem; padding-left: 1.25rem; }
.prose li + li { margin-top: .3rem; }
.sources { padding: 0; margin-bottom: 0; list-style: none; }
.sources li { padding-block: .55rem; border-top: 1px solid var(--line); }
.sources li a { overflow-wrap: anywhere; }
.signal { margin-top: 1rem; }
.info-strip { padding: 1.2rem; display: flex; gap: .8rem 1.1rem; align-items: center; flex-wrap: wrap; }
.info-strip > div { flex: 1 1 330px; }
.info-strip p { color: var(--muted); margin: .3rem 0 0; }
.site-footer { margin-top: 2.7rem; background: var(--paper); border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 1.25rem; }
.site-footer p { max-width: 40ch; margin-top: .5rem; color: var(--muted); font-size: .86rem; }
.footer-links { gap: .45rem .9rem; align-content: start; }
.footer-links a { color: var(--muted); font-size: .86rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary-dark); text-decoration: underline; }
.notice { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); margin: 0 0 1rem; }
.notice.error { background: #fff0ef; border-color: #f2c4cd; color: #73182b; }
.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; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: .25rem .8rem; padding-block: .65rem .35rem; }
  .navigation { order: 3; width: 100%; gap: .25rem .35rem; }
  .navigation a { padding-inline: .4rem; }
  .cards-compact, .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar { right: -3%; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 1.5rem); }
  .site-header .btn { padding-inline: .58rem; font-size: .8rem; }
  .navigation { gap: .05rem .3rem; }
  .navigation a { font-size: .82rem; }
  .hero-wrapper { padding-top: .9rem; }
  .hero { border-radius: 21px; min-height: 275px; align-items: start; padding: 1.35rem 1rem; }
  .hero h1 { font-size: clamp(2.25rem, 10.7vw, 3.2rem); }
  .hero p { margin-top: .65rem; }
  .hero-search .btn { padding-inline: .55rem; }
  .radar { display: none; }
  .cards, .detail-main, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .section { margin-block: 1.5rem; }
  .section-head { align-items: start; }
}
@media (max-width: 380px) {
  .header-inner { column-gap: .35rem; }
  .header-actions { gap: .25rem; }
  .brand { gap: .32rem; font-size: 1.04rem; }
  .brand img { width: 28px; height: 28px; }
  .navigation { column-gap: .15rem; }
  .navigation a { padding-inline: .3rem; }
  .category { padding: .7rem; gap: .5rem; }
  .category-icon { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
