/* The Ten Thousand Things
 * A meditative, bioelectric dark theme -- distinct from the site's
 * black-on-white courier pages, because this piece wants its own quiet room. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 24px 64px;
  font-family: "Courier New", Courier, monospace;
  color: #b9c6bd;
  background:
    radial-gradient(1200px 800px at 50% -10%, #10171d 0%, #080b0e 60%, #05070a 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #7fb0a3;
  text-decoration: none;
  border-bottom: 1px dotted #3d5a52;
}

a:hover {
  color: #d6e2d0;
  text-shadow: 0 0 8px rgba(127, 176, 163, 0.6);
}

.back_link {
  position: fixed;
  top: 18px;
  left: 22px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  z-index: 10;
}

header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

h1 {
  font-weight: normal;
  font-size: 2.1rem;
  letter-spacing: 0.32em;
  margin: 8px 0 4px;
  color: #e4ece2;
  text-shadow: 0 0 22px rgba(120, 200, 180, 0.18);
}

.subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #6f8078;
  margin: 0;
}

.statement {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 0.82rem;
  color: #8a9a90;
  text-align: center;
}

/* ---- main stage: canvas + side panel ---- */

.stage {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.canvas_wrap {
  position: relative;
  line-height: 0;
}

#field {
  width: 540px;
  max-width: 84vw;
  height: auto;
  aspect-ratio: 4 / 3;
  image-rendering: auto;
  border-radius: 4px;
  background: #05070a;
  box-shadow:
    0 0 0 1px rgba(90, 130, 120, 0.25),
    0 0 60px rgba(40, 120, 110, 0.18),
    inset 0 0 40px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
  touch-action: none;
}

.canvas_hint {
  line-height: 1.5;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #5c6c64;
  text-align: center;
}

/* ---- panel ---- */

.panel {
  width: 300px;
  max-width: 84vw;
  text-align: left;
}

.panel h2 {
  font-weight: normal;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6f8078;
  border-bottom: 1px solid #223029;
  padding-bottom: 6px;
  margin: 0 0 14px;
}

.readouts {
  margin-bottom: 26px;
}

.readout {
  margin-bottom: 14px;
}

.readout .label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8a9a90;
}

.readout .value {
  color: #d6e2d0;
}

.readout .attribution {
  font-size: 0.66rem;
  color: #566a61;
  font-style: italic;
}

.spark {
  width: 100%;
  height: 42px;
  display: block;
  margin-top: 6px;
  border-radius: 3px;
  background: rgba(10, 20, 18, 0.6);
  box-shadow: inset 0 0 0 1px rgba(60, 90, 82, 0.25);
}

/* ---- controls ---- */

.controls {
  margin-bottom: 26px;
}

.control_row {
  margin-bottom: 14px;
}

.control_row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8a9a90;
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: #5aa593;
  background: transparent;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

button {
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #b9c6bd;
  background: rgba(30, 50, 45, 0.5);
  border: 1px solid #2d4740;
  border-radius: 3px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

button:hover {
  color: #e4ece2;
  border-color: #5aa593;
  box-shadow: 0 0 12px rgba(90, 165, 147, 0.3);
}

button.active {
  color: #05070a;
  background: #7fb0a3;
  border-color: #7fb0a3;
}

.button_row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* ---- contemplation ---- */

.contemplation {
  max-width: 640px;
  margin: 44px auto 0;
  text-align: center;
  min-height: 96px;
}

.contemplation .quote {
  font-size: 1.02rem;
  font-style: italic;
  color: #c9d6cd;
  transition: opacity 1.4s ease;
}

.contemplation .source {
  display: block;
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #6f8078;
  font-style: normal;
  transition: opacity 1.4s ease;
}

.fade_out {
  opacity: 0;
}

footer {
  max-width: 720px;
  margin: 60px auto 0;
  font-size: 0.72rem;
  color: #4f5f57;
  text-align: center;
  line-height: 1.8;
}
