@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap");
/* Extra tones for the workbench. The brand colours themselves come from
   css/variables.css, which this page loads first. */
:root {
  --cream-soft: #fdf4f1;
  --cream-line: #f0dbd4;
  --paper: #ffffff;
  --ink: #3d2530;
  --muted: #8a6a72;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--cream-soft);
}
/* Everything below is scoped to <main>, so the shared site navigation and
   footer keep their own styling. */
main button,
main select,
main input {
  font: inherit;
}
main button,
main select {
  border: 1px solid var(--cream-line);
  background: white;
  color: var(--burgundy);
  border-radius: 7px;
  padding: 10px 13px;
  cursor: pointer;
}
main button:hover {
  background: var(--cream);
  border-color: var(--terracotta-light);
}
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}
main button.active {
  background: var(--burgundy);
  color: white;
  border-color: var(--burgundy);
}
main button:disabled {
  opacity: 0.45;
  cursor: default;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 32px 3%;
  font-family: "DM Sans", sans-serif;
  line-height: normal;
  color: var(--ink);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.9px;
  color: var(--muted);
}
main h1 {
  font-family: "Manrope", sans-serif;
  font-size: 44px;
  letter-spacing: -2px;
  margin: 5px 0 8px;
}
main h1 span {
  color: var(--terracotta);
}
main p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey-text);
  margin: 6px 0;
}
.live {
  font-size: 10px;
  letter-spacing: 1.6px;
  background: var(--cream);
  padding: 11px;
  border-radius: 20px;
  color: var(--burgundy);
}
.topbar {
  display: flex;
  gap: 9px;
  align-items: center;
  background: white;
  padding: 12px;
  border: 1px solid var(--cream-line);
  border-radius: 12px 12px 0 0;
}
.tools {
  display: flex;
  gap: 4px;
}
.spacer {
  flex: 1;
}
main kbd {
  font-size: 10px;
  opacity: 0.6;
  margin-left: 10px;
}
.workbench {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 225px;
  border: 1px solid var(--cream-line);
  border-top: 0;
  background: white;
  min-height: 550px;
}
.palette,
.inspector {
  padding: 24px 16px;
}
.palette {
  border-right: 1px solid var(--cream-line);
}
.palette p {
  font-size: 11px;
  margin: 12px 0 18px;
}
#parts {
  display: grid;
  gap: 6px;
}
#parts button {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 7px;
  font-size: 11px;
  gap: 8px;
}
#parts svg {
  width: 40px;
  height: 30px;
  flex-shrink: 0;
}
.palette-tip {
  font-size: 10px;
  line-height: 1.6;
  background: var(--cream-soft);
  border-radius: 6px;
  padding: 10px;
  margin-top: 18px;
  color: var(--grey-text);
}
.canvas-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}
.canvas-label {
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  pointer-events: none;
}
#canvas {
  width: 100%;
  flex: 1;
  min-height: 450px;
  touch-action: none;
  user-select: none;
}
#canvas.pen {
  cursor: crosshair;
}
#canvas.moving {
  cursor: grabbing;
}
.canvas-bottom {
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--grey-text);
  border-top: 1px solid var(--cream-line);
  min-height: 42px;
}
#status {
  color: var(--burgundy);
}
.inspector {
  border-left: 1px solid var(--cream-line);
}
main h2 {
  font:
    700 21px/1.35 "Manrope",
    sans-serif;
  letter-spacing: -0.6px;
  margin: 12px 0 25px;
}
.inspector label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 15px 0 8px;
}
.inspector select,
.inspector input[type="number"] {
  width: 100%;
}
.inspector input[type="number"] {
  padding: 8px;
  border: 1px solid var(--cream-line);
  border-radius: 5px;
}
.inspector select {
  font-size: 12px;
}
.inspector p {
  font-size: 10px;
}
.check {
  display: flex !important;
  gap: 5px;
  align-items: center;
}
.rule {
  height: 1px;
  background: var(--cream-line);
  margin: 22px 0;
  border-top: 1px solid var(--cream-line);
}
main input[type="range"],
main input[type="checkbox"] {
  accent-color: var(--terracotta);
}
main input[type="range"] {
  width: 100%;
}
#speed-label {
  float: right;
}
#selection button {
  font-size: 10px;
  padding: 7px;
  margin: 5px 3px 0 0;
}
#selection h3 {
  font:
    700 13px "DM Sans",
    sans-serif;
  color: var(--burgundy);
  margin: 0 0 4px;
}
.readings {
  background: var(--cream);
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.9;
}
.savebar {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 16px;
  background: var(--cream-soft);
  border: 1px solid var(--cream-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.savebar span {
  font-size: 9px;
  letter-spacing: 1.4px;
  flex: 1;
}
.savebar button {
  font-size: 11px;
}
main details {
  margin-top: 24px;
  border-bottom: 1px solid var(--cream-line);
  padding-bottom: 20px;
}
main summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--burgundy-light);
}
.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  padding: 15px 0;
}
.component {
  cursor: grab;
}
.component.selected .selection-ring {
  stroke: var(--terracotta);
  stroke-dasharray: 4 4;
}
.wire {
  cursor: pointer;
}
#canvas.pen .component {
  cursor: crosshair;
}
@media (min-width: 1450px) {
  .workbench {
    min-height: 650px;
  }
}
@media (max-width: 1000px) {
  .workbench {
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .inspector {
    grid-column: 1/-1;
    border-top: 1px solid var(--cream-line);
    padding: 15px;
  }
  .inspector h2 {
    display: none;
  }
  .savebar {
    flex-wrap: wrap;
  }
  .savebar span {
    flex-basis: 100%;
  }
  #canvas {
    min-height: 420px;
  }
  .palette {
    padding: 18px 10px;
  }
  .topbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  main {
    padding: 22px 10px;
  }
  main h1 {
    font-size: 36px;
  }
  .live {
    display: none;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .palette {
    border-right: 0;
    padding: 12px;
  }
  .palette > p,
  .palette-tip {
    display: none;
  }
  #parts {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10px;
  }
  #canvas {
    min-height: 340px;
  }
  .canvas-bottom {
    font-size: 8px;
  }
  .guide {
    grid-template-columns: 1fr;
  }
  .heading p {
    font-size: 11px;
  }
  .topbar button,
  .topbar select {
    font-size: 11px;
  }
  .spacer {
    display: none;
  }
}

#parts button span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#parts button {
  min-width: 0;
}
#canvas:focus:not(:focus-visible) {
  outline: none;
}

.savebar {
  flex-wrap: wrap;
}
.savebar input {
  min-width: 100px;
  width: 145px;
  border: 1px solid var(--cream-line);
  border-radius: 7px;
  padding: 9px;
  font-size: 11px;
}
.savebar select {
  font-size: 11px;
  max-width: 180px;
}

@media (min-width: 1001px) {
  .workbench {
    grid-template-columns: 175px minmax(0, 1fr) 225px;
  }
}
/* Keep the drawing coordinates steady when the settings panel changes. */
@media (min-width: 1001px) {
  .workbench {
    height: 700px;
    min-height: 0;
  }
  .palette,
  .inspector {
    overflow-y: auto;
  }
  #canvas {
    min-height: 0;
  }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .workbench {
    grid-template-rows: 650px auto;
  }
  .palette {
    overflow-y: auto;
  }
  #canvas {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .workbench {
    grid-template-rows: auto 380px auto;
  }
  #canvas {
    min-height: 0;
  }
}

.formats {
  flex-basis: 100%;
  font-size: 10px;
  line-height: 1.75;
  margin: 4px 0 0;
  color: var(--grey-text);
}
.formats b {
  color: var(--burgundy);
}

.ai-prompt p {
  max-width: 72ch;
}
.ai-prompt pre {
  background: var(--cream-soft);
  border: 1px solid var(--cream-line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 420px;
  overflow: auto;
  color: var(--ink);
}
#copy-prompt {
  font-size: 11px;
  margin-top: 10px;
}
main p.tagline {
  font-size: 15px;
  max-width: 46ch;
  color: var(--burgundy);
}
/* The why-bother strip: four short benefits, read before anyone touches the canvas. */
.pitch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.pitch li {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--grey-text);
}
.pitch strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  letter-spacing: -0.2px;
  color: var(--burgundy);
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .pitch {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pitch {
    grid-template-columns: 1fr;
  }
}
