/* Native form controls (date pickers, checkboxes, dropdown lists, scrollbars) in the dark style */
:root { color-scheme: dark; }

/* ============================================
   Still Sonic Media — Brand layer (SSM rebrand, Oct 2026)
   Loaded LAST on every page so it overrides the page's own styles.

   Brand tokens
   · Ink    #0f0d0b  (background)
   · Cream  #f7f2ea  (text / "bone" in the monogram)
   · Amber  #c8a97e  (accent / the M in the monogram)
   · Redaction for display type, Space Mono for small labels
   ============================================ */

/* Space Mono, served from our own fonts/ folder (faster than Google Fonts) */
@font-face { font-family: 'Space Mono'; src: url('fonts/SpaceMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/SpaceMono-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Photos carry width/height so the page doesn't jump while they load;
   this keeps their real shape when CSS sets the width. */
:where(img[width][height]) { height: auto; }

/* Small uppercase labels → Space Mono.
   Mono runs wider than Redaction, so tracking is pulled in a little. */
.nav-links a,
.hero-eyebrow, .section-eyebrow, .gallery-hero-eyebrow, .page-hero-eyebrow, .page-hero-sub, .form-eyebrow, .field label,
.hero-subtitle, .gallery-hero-subtitle, .hero-scroll, .hero-cta,
.project-card-label, .project-card-meta, .project-card-soon-badge,
.gallery-item-label, .vlog-label, .vlog-meta, .vlog-cta a,
.stat-label, .tier-label, .tier-from, .tier-cta, .prints-cta,
.post-meta, .blog-filter, .read-more, .post-nav .label, .post-figure figcaption,
footer, .footer-back, .footer-instagram {
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  letter-spacing: 0.14em !important;
}
.nav-links a { font-size: 0.7rem; }

/* Monogram sizing in the nav */
.nav-logo svg { height: 34px; width: auto; display: block; }

/* Keyboard focus on gallery photos (Tab to reach, Enter to open) */
.gallery-item:focus-visible { outline: 2px solid #c8a97e; outline-offset: 3px; }

/* Visitors who prefer less motion: no zooms or fades */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   FOOTER (option B: three even columns)
   Same on every page. Left: the page's back link (or Prints · Book on Home).
   Middle: monogram + copyright, always dead centre. Right: socials + Cookies.
   ============================================ */
footer.ssm-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 1rem; padding: 2.25rem 3rem; border-top: 1px solid #241f1a; background: transparent; text-align: left; flex-direction: initial; }
footer.ssm-footer a { color: #a39a8e; text-decoration: none; transition: color 0.2s; }
footer.ssm-footer a:hover, footer.ssm-footer button:hover { color: #c8a97e; }
.ssm-footer-left { justify-self: start; display: flex; align-items: center; gap: 0.75rem; font-family: 'Space Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ssm-footer-left a { padding: 0.75rem 0; }
footer.ssm-footer .ssm-footer-back { color: #c8a97e; }
footer.ssm-footer .ssm-footer-back:hover { color: #f7f2ea; }
.ssm-footer-dot { color: #4a443d; }
.ssm-footer-mid { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
footer.ssm-footer .ssm-footer-mark { font-family: 'Redaction35', Georgia, serif; font-size: 1.6rem; line-height: 1; letter-spacing: 0; text-transform: none; color: #f7f2ea; }
.ssm-footer-mark span { color: #c8a97e; }
.ssm-footer-mark .ssm-footer-logo { height: 26px; width: auto; display: block; }
.ssm-footer-copy { font-family: 'Space Mono', monospace !important; font-size: 0.62rem; letter-spacing: 0.14em !important; text-transform: uppercase; color: #7a7268; }
.ssm-footer-right { justify-self: end; display: flex; align-items: center; gap: 0.25rem; }
.ssm-footer-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.ssm-footer-rule { width: 1px; height: 18px; background: #2e2821; margin: 0 0.6rem; }
footer.ssm-footer .ssm-cookie-link { background: none; border: none; cursor: pointer; padding: 0.75rem 0.25rem; color: #a39a8e; opacity: 1; font-family: 'Space Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
footer.ssm-footer a:focus-visible, footer.ssm-footer button:focus-visible { outline: 1px solid #c8a97e; outline-offset: 3px; }
/* second tier: copyright on the left, small text links on the right */
.ssm-footer-base { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; padding-top: 1.1rem; border-top: 1px solid #1d1915; }
.ssm-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.9rem; }
footer.ssm-footer .ssm-footer-links .ssm-footer-link, footer.ssm-footer .ssm-footer-links .ssm-cookie-link { padding: 0.6rem 0.15rem; white-space: nowrap; }
@media (max-width: 768px) {
  footer.ssm-footer { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 1rem 2.25rem; text-align: center; }
  .ssm-footer-left, .ssm-footer-right { justify-self: auto; }
  .ssm-footer-left { order: 1; } .ssm-footer-mid { order: 2; } .ssm-footer-right { order: 3; } .ssm-footer-base { order: 4; }
  .ssm-footer-base { width: 100%; flex-direction: column-reverse; justify-content: center; gap: 0.4rem; margin-top: 0.25rem; }
  .ssm-footer-links { justify-content: center; gap: 0 0.7rem; }
  footer.ssm-footer .ssm-footer-links .ssm-footer-link, footer.ssm-footer .ssm-footer-links .ssm-cookie-link { letter-spacing: 0.1em; padding: 0.7rem 0.1rem; }
}

/* ============================================
   MENU (shared by every page - markup comes from tools/layout/nav.html)
   ============================================ */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 3rem; background: linear-gradient(to bottom, rgba(15,13,11,0.95) 0%, transparent 100%); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #7a7268; font-size: 0.7rem; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.nav-active { color: #f7f2ea; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-instagram { color: #7a7268; text-decoration: none; display: flex; align-items: center; transition: color 0.3s; }
.nav-instagram:hover { color: #f7f2ea; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1px; background: #a39a8e; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-links a:focus-visible, .nav-hamburger:focus-visible, .nav-instagram:focus-visible, .nav-logo:focus-visible { outline: 1px solid #c8a97e; outline-offset: 4px; }
@media (max-width: 1100px) { .nav-links { gap: 1.6rem; } nav { padding: 1.5rem 2rem; } }
@media (max-width: 860px) {
  nav { padding: 1.2rem 1.5rem; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav-hamburger { display: flex; position: relative; z-index: 2001; }
  .nav-links { display: none; position: fixed; inset: 0; background: rgba(15,13,11,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem; z-index: 2000; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; letter-spacing: 0.2em; }
}

/* Footer: Prints link sits beside Cookies */
footer.ssm-footer .ssm-footer-link { font-family: 'Space Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.75rem 0.5rem; }

/* Lightbox extras added by ui.js: caption + "3 / 12" counter */
.lightbox-meta { position: absolute; left: 0; right: 0; bottom: 1.25rem; display: flex; justify-content: center; align-items: baseline; gap: 1.25rem; font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a39a8e; pointer-events: none; padding: 0 1rem; text-align: center; }
.lightbox-count { color: #c8a97e; white-space: nowrap; }
.lightbox-close, .lightbox-nav { min-width: 44px; min-height: 44px; }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 1px solid #c8a97e; outline-offset: 2px; }

/* Stop double-tap zooming on phones; pinch zoom still works. */
html, body { touch-action: manipulation; }

/* === No highlighting or dragging on the public site ===
   Text and photos can't be selected or dragged off the page, and a long press
   on a photo doesn't offer "Save image" on phones. Form fields still work
   normally. (This deters casual copying; it can't stop screenshots.) */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, video, a { -webkit-user-drag: none; }
