/* Functional core only (reset, accessibility, menu/lightbox/form mechanics).
   All visual design for this site lives in theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #000; color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-banner { font-size: .82rem; text-align: center; padding: 7px 16px; }
/* mobile menu mechanics */
.mobile-menu { visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.mobile-menu.is-open { visibility: visible; opacity: 1; }
/* forms */
.field-error { display: none; font-size: .875rem; margin: 6px 0 0; color: #b3261e; }
.field.has-error .field-error { display: block; }
.form-success { display: none; padding: 28px 8px; }
.form-success.is-visible { display: block; }
/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8,9,12,.93); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 100%); object-fit: contain; }
.lightbox-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .95rem; padding: 0 60px; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox-btn:hover { background: rgba(255,255,255,.3); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* placeholder marker for real photos */
.photo-note { display: inline-block; font: 600 .74rem/1.3 system-ui, sans-serif; background: #fff8db; color: #5c4300; border: 1px dashed #b38f00; padding: 4px 9px; }
.ph { background: #fff3b0; color: #4d3b00; padding: 0 .25em; font-weight: 600; }
