/* Vuerso Resources — public site. Neutral, simple: category list on the left, three links per row. */
@font-face { font-family: Satoshi; src: url('fonts/Satoshi-Variable.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: Sentient; src: url('fonts/Sentient-Variable.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: Sentient; src: url('fonts/Sentient-VariableItalic.woff2') format('woff2'); font-weight: 200 700; font-style: italic; font-display: swap; }

:root {
  --bg: #FAFAFA;
  --surface: #F0F0EF;
  --surface-2: #E8E8E6;
  --line: #E4E4E2;
  --ink: #141414;
  --ink-2: #3A3A3A;
  --muted: #6B6B6B;
  --soft: #8C8C8C;
  --white: #FFFFFF;
  --sans: Satoshi, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: Sentient, Georgia, serif;
  --r: 12px;
  --r-s: 10px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: 8px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 8px; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; font-size: 17px; letter-spacing: -.01em; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); }
.brand:hover span { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.adminlink { color: var(--ink); padding: 6px 12px; border-radius: 999px; background: var(--surface); transition: background-color .2s; }
.adminlink:hover { background: var(--surface-2); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: end; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(32px, 4.5vw, 56px); }
.hero h1 { margin: 0; font: 300 clamp(40px, 5.2vw, 72px)/1 var(--serif); letter-spacing: -.03em; }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero p { margin: 0 0 6px; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.u { border-bottom: 1px solid currentColor; }

/* layout */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.side { position: sticky; top: 24px; display: grid; gap: 16px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 36px 0 38px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--surface); color: var(--ink);
  font: 400 15px var(--sans); outline: none; -webkit-appearance: none; appearance: none; transition: background-color .2s, border-color .2s; }
.search input::placeholder { color: var(--muted); }
.search input:hover { background: var(--surface-2); }
.search input:focus { background: var(--white); border-color: var(--ink); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search kbd { position: absolute; right: 10px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--white);
  border: 1px solid var(--line); font: 500 12px var(--sans); color: var(--muted); transition: opacity .2s; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.cats { display: grid; gap: 2px; }
.cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink-2);
  font-size: 15px; transition: background-color .2s, color .2s; }
.cats a:hover { background: var(--surface); color: var(--ink); }
.cats a .n { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; transition: color .2s; }
.cats a[aria-current] { background: var(--ink); color: var(--white); font-weight: 500; }
.cats a[aria-current] .n { color: rgba(255,255,255,.6); }

/* list */
main { min-width: 0; outline: none; }
.list-head { display: grid; gap: 6px; margin-bottom: 28px; min-height: 44px; }
.list-head h2 { margin: 0; font: 400 clamp(28px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; }
.list-head .count { font: 500 13px var(--sans); color: var(--muted); vertical-align: 6px; margin-left: 2px; }
.list-head p { margin: 0; max-width: 60ch; color: var(--muted); }
.list-head p:empty { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card a { display: block; }
.shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.shot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20,20,20,.07); pointer-events: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s var(--ease); }
.card a:hover .shot img { transform: scale(1.035); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(20,20,20,.08); }
.title { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.title .ar { flex: none; color: var(--muted); opacity: 0; transform: translate(-3px, 3px); transition: opacity .25s, transform .45s var(--ease); }
.card a:hover .title .ar, .card a:focus-visible .title .ar { opacity: 1; transform: none; }
.dom { display: block; margin-top: 2px; font-size: 13px; color: #737373; }
.desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.card.enter { animation: enter .5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.empty, .empty-all { padding: 56px 0; }
.empty p, .empty-all { margin: 0; font: 400 clamp(22px, 2.2vw, 28px)/1.25 var(--serif); letter-spacing: -.015em; }
.empty .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14px; cursor: pointer; transition: background-color .2s; }
.pill:hover { background: var(--ink-2); }
.pill.ghost { background: var(--surface); color: var(--ink); }
.pill.ghost:hover { background: var(--surface-2); }

.pager { display: flex; justify-content: flex-end; gap: 6px; margin-top: 56px; }
.pager button { min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink-2); font-size: 14px;
  font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, color .2s; }
.pager button:hover:not(:disabled) { background: var(--surface); }
.pager button[aria-current] { background: var(--ink); color: var(--white); }
.pager button:disabled { color: var(--soft); cursor: default; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top { height: 64px; }
  .upd { display: none; }
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .side { position: sticky; top: 0; z-index: 20; gap: 10px; margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad) 12px; background: rgba(250,250,250,.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
  .search kbd { display: none; }
  .cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .cats::-webkit-scrollbar { display: none; }
  .cats a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); gap: 8px; font-size: 14px; }
  .list-head { margin-bottom: 20px; }
  .foot { flex-direction: column; gap: 4px; }
  .pager { justify-content: center; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
