* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.6; word-break: keep-all; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { color: #fff; background: var(--primary); }
.skip-link { position: fixed; z-index: 10000; top: 8px; left: 8px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; transform: translateY(-160%); transition: transform .18s; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.page-main { min-height: calc(100vh - var(--header-h)); overflow: hidden; }
.wide, .content { width: var(--content); margin-inline: auto; }
.wide { width: var(--wide); }
.screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.empty { display: grid; min-height: 190px; place-items: center; padding: 32px; border: 1px dashed #e5cdb9; border-radius: var(--radius-md); color: var(--muted); text-align: center; background: rgba(255,255,255,.42); }
.placeholder-art { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  :root { --wide: calc(100% - 32px); --content: calc(100% - 32px); --header-h: 72px; }
  body { font-size: 16px; }
}
