:root {
  color-scheme: light;
  --ink: #191714;
  --paper: #f3efe5;
  --line: #c7bfae;
  --acid: #d9ff43;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1440px, 100%); margin: auto; padding: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.topbar p { margin: 0; font-family: Georgia, serif; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; letter-spacing: .12em; font-size: 11px; }
.brand strong { font-family: Georgia, serif; font-size: 27px; letter-spacing: 0; }
.brand-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--acid); border: 1px solid; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .7fr); min-height: 720px; border-bottom: 1px solid var(--ink); }
.preview-panel { padding: 44px 44px 38px 0; border-right: 1px solid var(--ink); }
.preview-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.eyebrow, .section-number { font-size: 10px; letter-spacing: .18em; font-weight: 700; }
h1, h2 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(35px, 5vw, 72px); line-height: .95; }
h2 { font-size: 28px; }
.ghost, .text-button { border: 0; background: none; padding: 6px 0; cursor: pointer; border-bottom: 1px solid; }
.preview { min-height: 480px; border: 1px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); position: relative; overflow: hidden; }
.preview::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.45); pointer-events: none; }
.preview-label { position: absolute; left: 28px; bottom: 26px; z-index: 1; color: white; mix-blend-mode: difference; font-weight: 800; font-size: 12px; letter-spacing: .18em; }
.stop-track-wrap { margin-top: 34px; }
.stop-track { height: 16px; border: 1px solid var(--ink); position: relative; cursor: crosshair; }
.stop-marker { position: absolute; top: 50%; width: 24px; height: 34px; border: 2px solid var(--paper); outline: 1px solid var(--ink); transform: translate(-50%, -50%); cursor: grab; touch-action: none; }
.stop-marker.selected { height: 42px; outline-width: 3px; z-index: 2; }
.stop-marker:active { cursor: grabbing; }
.track-scale { display: flex; justify-content: space-between; font-size: 9px; margin-top: 9px; }
.control-panel { padding: 44px 0 38px 38px; }
.control-section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 17px; border: 1px solid; }
.segmented button { border: 0; border-right: 1px solid; padding: 11px 4px; background: transparent; cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--ink); color: var(--paper); }
.range-row { display: grid; grid-template-columns: 42px 1fr 48px; align-items: center; gap: 12px; margin-top: 20px; font-size: 12px; }
input[type="range"] { accent-color: var(--ink); width: 100%; }
.range-row output { border: 1px solid; padding: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.stop-list { margin-top: 13px; display: grid; gap: 7px; max-height: 210px; overflow: auto; }
.stop-row { display: grid; grid-template-columns: 38px 1fr 66px 28px; gap: 8px; align-items: center; border: 1px solid transparent; padding: 4px; }
.stop-row.selected { border-color: var(--ink); background: rgba(255,255,255,.32); }
.stop-row input[type="color"] { width: 38px; height: 32px; border: 1px solid; padding: 2px; background: none; cursor: pointer; }
.hex-input, .position-input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 6px 3px; text-transform: uppercase; }
.remove-stop { border: 0; background: none; font-size: 18px; cursor: pointer; }
.remove-stop:disabled { opacity: .25; cursor: not-allowed; }
.hint { font-family: Georgia, serif; font-style: italic; font-size: 12px; color: #625d53; margin: 12px 0 0; }
.code-section { border-bottom: 0; margin-bottom: 0; }
.copy-button { border: 1px solid; background: var(--acid); padding: 8px 12px; cursor: pointer; font-weight: 700; }
pre { margin: 14px 0 0; background: var(--ink); color: #f8f4e9; padding: 18px; min-height: 92px; white-space: pre-wrap; word-break: break-word; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-status { height: 18px; margin-top: 7px; font-size: 11px; }
.presets-section { display: grid; grid-template-columns: 260px 1fr; gap: 44px; padding: 42px 0 22px; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.preset { min-height: 110px; border: 1px solid; position: relative; cursor: pointer; padding: 0; overflow: hidden; }
.preset span { position: absolute; inset: auto 7px 7px; background: var(--paper); border: 1px solid; padding: 5px; font-size: 9px; letter-spacing: .1em; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; }
@media (max-width: 850px) {
  .shell { padding: 14px; }
  .topbar p { display: none; }
  .workspace { display: block; }
  .preview-panel { padding: 32px 0 35px; border-right: 0; border-bottom: 1px solid; }
  .preview { min-height: 54vh; box-shadow: 6px 6px 0 var(--ink); }
  .control-panel { padding: 34px 0 10px; }
  .presets-section { grid-template-columns: 1fr; gap: 22px; }
  .presets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .preview-head { align-items: start; gap: 10px; }
  .ghost { font-size: 11px; }
  .preview { min-height: 390px; }
  .stop-row { grid-template-columns: 36px 1fr 58px 26px; }
}
