:root {
  --paper: #f4f0e7;
  --ink: #171a20;
  --muted: #63656d;
  --line: #c9c2b4;
  --card: #fffdf8;
  --acid: #d7ff4f;
  --cyan: #50d7d3;
  --coral: #ff6b4a;
  --purple: #7455d9;
  --shadow: 0 12px 30px rgba(28, 25, 20, .09);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; overflow-x: clip; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.skip-link { position: absolute; left: -10000px; top: 8px; z-index: 20; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-header { max-width: 1240px; margin: 0 auto; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--acid); font: 700 12px var(--mono); transform: rotate(-3deg); }
nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav a { font: 600 13px var(--mono); text-decoration: none; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.professional-link { border-left: 1px solid var(--line); padding-left: 20px; color: var(--purple); }

main, footer { max-width: 1240px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.hero { position: relative; padding: 92px 0 84px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 200px; height: 200px; right: 4%; top: 48px; border: 2px solid var(--ink); border-radius: 44% 56% 57% 43%; transform: rotate(12deg); box-shadow: 18px 20px 0 var(--cyan), -14px -10px 0 var(--acid); opacity: .9; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--purple); font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 850px; font-size: clamp(3rem, 8vw, 7rem); }
.hero > p { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trust-row span { border: 1px solid var(--ink); padding: 6px 10px; background: var(--card); font: 600 12px var(--mono); }

.featured, .catalog { padding: 74px 0; }
.catalog { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.section-heading p { max-width: 390px; color: var(--muted); margin: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.featured-card, .catalog-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.featured-card { min-height: 280px; padding: 22px; }
.featured-card:nth-child(4n+1) { border-top: 8px solid var(--acid); }
.featured-card:nth-child(4n+2) { border-top: 8px solid var(--cyan); }
.featured-card:nth-child(4n+3) { border-top: 8px solid var(--coral); }
.featured-card:nth-child(4n+4) { border-top: 8px solid var(--purple); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.card-link:hover h3 { color: var(--purple); }
.card-icon { min-height: 34px; font-size: 1.55rem; }
.card-type { margin-bottom: 14px; color: var(--muted); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.featured-card h3 { font-size: 1.55rem; }
.catalog-card h3 { font-size: 1.15rem; }
.card-copy { color: var(--muted); font-size: .9rem; }
.featured-card .card-copy { margin: 14px 0 24px; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; font: 700 11px var(--mono); }
.status { color: #385e16; }
.star { position: absolute; right: 10px; top: 10px; z-index: 2; border: 1px solid var(--line); background: var(--card); width: 32px; height: 32px; cursor: pointer; }
.star[aria-pressed="true"] { background: var(--acid); border-color: var(--ink); }

.catalog-controls { display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; gap: 12px; margin-bottom: 28px; }
.search-field input { width: 100%; min-height: 46px; border: 1px solid var(--ink); background: var(--card); padding: 10px 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter, .quiet-button { min-height: 46px; border: 1px solid var(--ink); background: var(--card); padding: 8px 12px; cursor: pointer; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.filter[aria-pressed="true"], .quiet-button[aria-pressed="true"] { background: var(--ink); color: white; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card { min-height: 220px; padding: 18px; box-shadow: 4px 4px 0 var(--line); }
.catalog-card .card-copy { margin: 10px 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { background: #ece7dc; padding: 3px 7px; font: 600 10px var(--mono); }
.empty { border: 1px dashed var(--ink); padding: 28px; color: var(--muted); text-align: center; }

footer { border-top: 1px solid var(--line); padding-top: 34px; padding-bottom: 50px; display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .9rem; }
.footer-note { font-family: var(--mono); font-size: .75rem; }

@media (max-width: 920px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-controls { grid-template-columns: 1fr; }
  .hero::after { opacity: .25; }
}
@media (max-width: 650px) {
  .site-header { align-items: flex-start; }
  nav { justify-content: flex-end; gap: 12px; }
  .professional-link { border-left: 0; padding-left: 0; }
  .hero { padding: 64px 0; }
  .featured-grid, .catalog-grid { grid-template-columns: 1fr; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
