/* Only browser normalization, accessibility and utility dialogs are shared.
   Brand typography, colors, layout, navigation and section styles live in themes/*.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
img { object-fit: cover; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -100px; background: white; color: black; padding: 15px; }
.skip-link:focus { top: 10px; }
.menu-toggle { display: none; }
.dialog-open { overflow: hidden; }
.demo-tools { position: fixed; bottom: 12px; right: 12px; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 9px 13px; color: #181818; background: #fffef7ed; border: 1px solid #2223; border-radius: 6px; box-shadow: 0 3px 20px #0002; font: 10px/1.4 system-ui, sans-serif; backdrop-filter: blur(10px); }
.demo-tools > span { color: #666; border-left: 1px solid #bbb; padding-left: 12px; }
.demo-tools button { border: 0; padding: 0; background: transparent; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
dialog { padding: 0; border: 0; width: 760px; max-width: calc(100vw - 30px); max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper, #fff); color: var(--ink, #161616); font: 14px/1.65 var(--body, system-ui, sans-serif); }
dialog::backdrop { background: #111c; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 3; top: 12px; right: 12px; border: 0; border-radius: 50%; width: 42px; height: 42px; color: #161616; background: #fffef8; font: 28px/1 system-ui, sans-serif; }
.detail-dialog > img { width: 100%; height: 330px; }
.dialog-content { padding: 35px; }
.utility-label { font: 10px/1.5 system-ui, sans-serif; letter-spacing: .08em; }
.dialog-content h2, .review-dialog h2 { font-size: 35px; line-height: 1.15; letter-spacing: -.04em; margin: 20px 0; }
.dialog-content p { max-width: 600px; }
.ui-button { display: inline-flex; margin-top: 25px; padding: 13px 20px; background: var(--ink, #161616); color: var(--paper, white); border: 1px solid currentColor; font-size: 13px; }
.lightbox { background: #151515; color: white; width: 1100px; padding: 15px; }
.lightbox > img { width: 100%; max-height: 75dvh; height: auto; object-fit: contain; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; font: 12px/1.5 system-ui, sans-serif; }
.lightbox-controls button { background: transparent; color: white; border: 1px solid #ffffff60; padding: 8px 16px; font-size: 20px; }
.review-dialog { padding: 40px; width: 600px; }
.review-dialog label { display: block; margin: 20px 0 8px; font-size: 12px; font-weight: 600; }
.review-dialog textarea, .review-dialog select { width: 100%; padding: 12px; color: inherit; background: var(--paper, white); border: 1px solid #8888; border-radius: 0; }
.review-dialog textarea { resize: vertical; }
.save-message { font-size: 12px; margin-top: 15px; }
@media (max-width: 700px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid currentColor; background: transparent; font-size: 12px; }
  #main-nav { display: none; }
  .menu-open #main-nav { display: flex; }
  .demo-tools { font-size: 9px; gap: 10px; bottom: 8px; right: 8px; }
  .demo-tools > span { display: none; }
  .demo-tools button { font-size: 9px; }
  .review-dialog, .dialog-content { padding: 35px 22px 25px; }
  .detail-dialog > img { height: 240px; }
  .lightbox-controls { font-size: 10px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
