/* ==========================================================================
   BASE: reset, shared bits, buttons, music button.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-type);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Page can't scroll until the visitor clicks "Enter the case". */
body:not(.go) { overflow: hidden; }
html.modal body { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a { color: var(--ochre); }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 8px; top: -60px; z-index: 999;
  background: var(--cream); color: var(--ink); padding: 10px 14px;
}
.skip:focus { top: 8px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons. min-height 44px = comfortable touch target. */
.btn {
  min-height: 44px; padding: 0 16px;
  font: 16px var(--font-type);
  cursor: pointer;
  border: 2px solid var(--ochre);
  background: var(--navy); color: var(--cream);
}
.btn:hover { background: var(--ochre); color: var(--ink); }
.nav-btn { display: inline-flex; align-items: center; text-decoration: none; letter-spacing: .06em; }
.btn-light { background: var(--cream); color: var(--ink); border-color: #000; }

/* Top-right music button (single note; slashed when off). Appear after the visitor enters. */
.controls {
  position: fixed; right: 14px; top: 12px; z-index: var(--z-controls);
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .8s 2s;
}
.go .controls { opacity: 1; pointer-events: auto; }

/* Devices that ask for reduced motion get no animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .type { width: auto !important; border: 0 !important; }
}

.music-btn { width: 44px; padding: 0; font-size: 22px; position: relative; }
.music-btn[aria-pressed="false"] { opacity: .6; }
.music-btn[aria-pressed="false"]::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 3px solid var(--crimson); rotate: -40deg; }
