/* Current look.
   Background: change --bg-image. Use none for a flat field.
   Previous look: in index.html, change the stylesheet href to styles-plain.css.
*/

:root {
  color-scheme: dark;
  --bg-image: url("skulldark.png");
  --bg: #050605;
  --text: #8dff9a;
  --muted: #3f8f55;
  --line: #1a3a22;
  --accent: #c6ff6a;
  --accent-ink: #061006;
  --detail: #080a08;
  --glow: 0 0 10px rgba(0, 255, 70, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.pane-art {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#art-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pane-catalog {
  background: var(--detail);
  min-height: 100vh;
  padding: 0.85rem 1rem 1.5rem;
  border-left: 1px solid var(--line);
}

header,
main {
  width: auto;
  margin: 0;
}

header {
  padding: 0 0 0.1rem;
}

h1 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

.fine {
  margin: 0 0 12px;
  font-size: 12px;
}

.fine a {
  color: var(--muted);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

main {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0 1.5rem;
}

#tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tool-btn {
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--text);
  background: #0a0c0a;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
}

.tool-btn:hover {
  border-color: #2d6b3a;
  color: #d8ffd0;
}

.tool-btn[aria-current="true"] {
  border-color: #00ff41;
  color: #eaffea;
  background: #101610;
  box-shadow: var(--glow);
}

#detail {
  background: var(--detail);
  border: 0;
  border-radius: 0;
  padding: 0.75rem 0.85rem 0.9rem;
}

#detail h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

.shot-btn {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0;
  border: 1px solid #142016;
  background: #050805;
  cursor: zoom-in;
}

.shot-btn:hover {
  border-color: #2d6b3a;
  box-shadow: var(--glow);
}

.shot-btn:focus-visible {
  outline: 1px solid #00ff41;
  outline-offset: 2px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 6, 3, 0.92);
}

.shot-lightbox[hidden] {
  display: none;
}

body.shot-lightbox-open {
  overflow: hidden;
}

.shot-lightbox-img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border: 1px solid #00ff41;
  box-shadow: var(--glow);
}

.shot-lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 1001;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #00ff41;
  background: #071207;
  color: var(--accent);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--glow);
}

.shot-lightbox-close:hover {
  background: #102010;
  color: #f3ffe8;
}

.download-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 36rem;
}

.version {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-version {
  margin: 0.35rem 0 0;
  font: 10px/1.2 Consolas, monospace;
  color: rgba(63, 143, 85, 0.55);
  letter-spacing: 0.06em;
}

#detail p {
  margin: 0.55rem 0 0;
}

.download {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid #00ff41;
  border-radius: 0;
  background: #071207;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--glow);
}

.download:hover {
  background: #102010;
  color: #f3ffe8;
}

.download:disabled {
  background: #121212;
  border-color: #2a2a2a;
  color: #6a6a6a;
  box-shadow: none;
  cursor: not-allowed;
}

:focus-visible {
  outline: 1px solid #00ff41;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
  }

  .pane-art {
    min-height: 42vh;
  }

  .pane-catalog {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  main {
    grid-template-columns: 1fr;
  }

  #tool-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
