* {
  box-sizing:border-box
}
html {
  color-scheme:light
}
body {
  margin:0;
  background:#f9f8f5;
  color:#282532;
  font:15px/1.5 Geist,"Helvetica Neue",Arial,sans-serif
}
button,input,textarea {
  font:inherit
}
button,a,label.file-button {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,.file-button:focus-within {
  outline:3px solid #7351b9;
  outline-offset:4px
}
a {
  color:inherit;
  text-underline-offset:4px
}
.topbar,main,footer {
  max-width:1320px;
  margin:auto;
  padding-left:40px;
  padding-right:40px
}
.topbar {
  height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #dedbd5
}
.brand {
  font-size:24px;
  font-weight:700;
  letter-spacing:-1px;
  text-decoration:none
}
.brand span {
  display:inline-block;
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
  color:#65616f;
  margin-left:20px;
  padding-left:20px;
  border-left:1px solid #d4d0dc
}
.topbar>a:last-child {
  font-size:13px
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:54px 0 34px;
  gap:24px
}
.eyebrow {
  font-size:12px;
  color:#756389;
  letter-spacing:.04em;
  margin:0 0 14px
}
h1 {
  font-size:clamp(34px,3.6vw,52px);
  line-height:1.08;
  letter-spacing:-2px;
  font-weight:500;
  margin:0 0 18px
}
.intro p:last-child {
  color:#66616e;
  margin:0
}
.intro-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.subtle,.file-button {
  border:1px solid #c9c4d0;
  border-radius:7px;
  padding:10px 15px;
  background:transparent;
  font-size:12px;
  color:#413a50;
  cursor:pointer
}
.file-button {
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center
}
.file-button input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer
}
.workspace {
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  gap:30px;
  align-items:start
}
.controls {
  padding:24px;
  background:#fff;
  border:1px solid #dedbe2;
  border-radius:12px
}
.section-title,.code-heading,.preview-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}
h2 {
  font-size:15px;
  letter-spacing:-.2px;
  margin:0;
  font-weight:600
}
h3 {
  margin:0;
  font-size:13px;
  font-weight:500
}
.text-button {
  padding:4px 0;
  border:0;
  background:none;
  font-size:12px;
  color:#61468d;
  text-decoration:underline;
  text-underline-offset:3px
}
form {
  margin-top:24px
}
form label {
  display:block;
  font-size:12px;
  color:#575260;
  margin-bottom:17px
}
label span {
  float:right;
  color:#77717e
}
input[type=number],input[type=text],#class-name {
  width:100%;
  margin-top:7px;
  padding:9px 11px;
  border:1px solid #d7d2dd;
  background:#fbfafa;
  border-radius:6px;
  color:#282532;
  min-height:40px
}
.number-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 14px
}
input[type=range] {
  display:block;
  width:100%;
  margin:12px 0 0;
  accent-color:#79609b
}
output {
  display:block;
  text-align:right;
  margin-top:4px;
  color:#4c3d63
}
.color-row {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.color-row input {
  width:48px;
  height:30px;
  padding:2px;
  border:1px solid #d7d2dd;
  background:white;
  border-radius:4px
}
.switch {
  display:flex;
  gap:8px;
  align-items:center
}
.switch input {
  accent-color:#72549a;
  width:16px;
  height:16px;
  margin:0
}
.code-heading {
  border-top:1px solid #e9e5ec;
  padding-top:20px;
  margin-top:22px
}
textarea {
  resize:vertical;
  min-height:128px;
  width:100%;
  font:12px/1.6 "Courier New",monospace;
  background:#f5f3f7;
  border:1px solid #e3dfe8;
  border-radius:7px;
  padding:13px;
  margin:12px 0 16px;
  color:#453656;
  overflow-wrap:anywhere
}
.primary,.secondary {
  width:100%;
  border-radius:7px;
  padding:12px;
  font-size:12px;
  font-weight:600
}
.primary {
  background:#3d2c52;
  color:white;
  border:1px solid #3d2c52;
  display:flex;
  justify-content:space-between
}
.primary:hover {
  background:#513a6e
}
.secondary {
  background:white;
  color:#4b3b60;
  border:1px solid #d5cfdd;
  margin-top:8px
}
.local-note {
  font-size:10px;
  text-align:center;
  color:#716a78;
  margin:14px 0 0
}
.preview-toolbar {
  height:36px;
  margin:0 0 16px
}
.segmented {
  display:flex;
  gap:3px;
  padding:3px;
  border:1px solid #dcd7e1;
  border-radius:7px
}
.segmented button {
  border:0;
  border-radius:4px;
  padding:4px 15px;
  font-size:11px;
  color:#655c70;
  background:transparent
}
.segmented button[aria-pressed=true] {
  background:white;
  box-shadow:0 1px 4px #28253217;
  color:#352743
}
.preview-canvas {
  border-radius:13px;
  min-height:470px;
  display:grid;
  place-items:center;
  position:relative;
  padding:40px 25px 65px;
  background:#eae4f0;
  border:1px solid #ded6e7;
  transition:background .15s
}
.preview-canvas.dark {
  background:#2c2935;
  border-color:#37313f
}
.preview-card {
  width:280px;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 18px 38px -12px #2420383d
}
.card-art {
  height:126px;
  background:#dfd9e8;
  display:grid;
  place-items:center;
  overflow:hidden
}
.orb {
  width:104px;
  height:104px;
  border-radius:50%;
  background:radial-gradient(circle at 32% 25%,#fffdf5 0,#dad2e7 36%,#7a668f 78%,#4d3d60 100%);
  box-shadow:20px 20px 20px -17px #33214988;
  transform:translateY(12px)
}
.card-body {
  padding:24px 26px
}
.card-kicker {
  font-size:9px;
  color:#756781;
  margin:0 0 12px;
  text-transform:uppercase;
  letter-spacing:.06em
}
.card-body h3 {
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.8px;
  font-weight:500
}
.card-body>p:not(.card-kicker) {
  font-size:12px;
  line-height:1.6;
  color:#6f6876;
  margin:12px 0 22px
}
.card-link {
  font-size:11px;
  display:flex;
  justify-content:space-between;
  border-top:1px solid #e6e1eb;
  padding-top:14px
}
.preview-caption {
  position:absolute;
  bottom:22px;
  left:25px;
  right:25px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:10px;
  color:#62536e
}
.dark .preview-caption {
  color:#d1c7df
}
.presets-heading {
  margin:28px 0 16px
}
.presets-heading p {
  margin:5px 0 0;
  color:#766e7d;
  font-size:12px
}
.preset-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.preset {
  border:1px solid #dcd7e1;
  background:white;
  padding:15px;
  border-radius:9px;
  text-align:left;
  color:#42384e;
  min-width:0
}
.preset[aria-pressed=true] {
  border-color:#8f73ad;
  box-shadow:0 0 0 1px #8f73ad
}
.preset-sample {
  height:54px;
  width:68%;
  margin:8px auto 22px;
  background:#f6f3fa;
  border-radius:7px;
  display:block
}
.preset strong {
  font-size:11px;
  font-weight:500;
  display:block
}
.preset small {
  display:block;
  font-size:10px;
  color:#787080;
  line-height:1.5;
  margin-top:5px
}
.preset:hover {
  background:#fbf8ff
}
#error {
  font-size:12px;
  color:#a1263d;
  background:#fff0f2;
  border-radius:6px;
  padding:10px
}
#status {
  min-height:24px;
  margin:18px 0;
  color:#5d4777;
  font-size:12px
}
footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid #dedbd5;
  padding-top:20px;
  padding-bottom:24px;
  margin-top:14px;
  font-size:10px;
  color:#706979
}
@media(max-width:900px) {
  .topbar,main,footer {
    padding-left:24px;
    padding-right:24px
  }
  .workspace {
    grid-template-columns:270px minmax(0,1fr);
    gap:20px
  }
  .preset-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .controls {
    padding:20px
  }
  .preview-card {
    width:min(100%,260px)
  }
  .intro-actions {
    max-width:170px
  }
}
@media(max-width:650px) {
  .topbar,main,footer {
    padding-left:20px;
    padding-right:20px
  }
  .topbar {
    height:76px
  }
  .brand span {
    display:none
  }
  .intro {
    padding-top:36px;
    display:block
  }
  .intro-actions {
    max-width:none;
    margin-top:24px
  }
  h1 {
    letter-spacing:-1px
  }
  .workspace {
    display:flex;
    flex-direction:column
  }
  .controls,.preview-area {
    width:100%
  }
  .preview-area {
    order:-1
  }
  .preview-canvas {
    min-height:440px
  }
  .preset-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .preset small {
    display:none
  }
  .preset-sample {
    height:40px;
    margin-bottom:16px
  }
  .preview-caption {
    font-size:9px;
    left:16px;
    right:16px
  }
  .controls {
    padding:24px
  }
  .local-note {
    font-size:11px
  }
  footer {
    display:block
  }
  footer span {
    display:block;
    margin-bottom:8px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important
  }
}
