/* style.css (UPDATED: remove sticky styles) */
:root {
  --text: #111;
  --muted: rgba(0, 0, 0, 0.55);
  --rule: rgba(0, 0, 0, 0.15);
  --underline: rgba(80, 160, 255, 0.55);
  --underline-hover: rgba(80, 160, 255, 0.85);
  --underline-active: rgba(80, 160, 255, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.page { padding: 18px; }

.layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.sketch-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

#sketch-holder canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.controls {
  flex: 0 0 260px;
  max-width: 340px;
}

.controls h1 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px 0;
}

.section-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.links a {
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--underline);
  padding-bottom: 2px;
}

.links a:hover { border-bottom: 2px solid var(--underline-hover); }
.links a.active { border-bottom: 2px solid var(--underline-active); }


/* bigger +/- only */
.links a.bigbtn {
  font-size: 16px;
  line-height: 1;
}

.status {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}


hr.dotted{
  border: none;
  margin: 15px 0;
  border-top: 2px dotted rgba(0,0,0,0.4);
}

/* Mobile: stack, put text BELOW cubes */
@media (max-width: 740px) {
  .layout { flex-direction: column; gap: 16px; }
  .controls { flex: 1 1 auto; max-width: none; }
  .controls h1 { font-size: 15px; }
  .links a { font-size: 13px; }
  .links a.bigbtn { font-size: 17px; }
}
