@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root {
  color-scheme:light;
  --paper:#f8f6f0;
  --ink:#343c32;
  --muted:#76796e;
  --orange:#bb4d31;
  --line:#deded2;
  --serif:'Libre Caslon Display',Georgia,serif;
  --sans:'DM Sans',sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}

button,input,textarea {
  font:inherit;
}

button,a,input,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
}

button {
  color:inherit;
}

button,a,input,textarea {
  outline-offset:4px;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:2px solid var(--orange);
}

button {
  transition:background .2s,transform .2s,color .2s;
}

a {
  color:inherit;
  text-decoration:none;
}

[hidden] {
  display:none!important;
}

.page-shell {
  max-width:1224px;
  margin:auto;
  padding:0 48px 48px;
}

.site-header {
  height:105px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:24px;
}

.wordmark {
  font-size:27px;
  font-weight:600;
  letter-spacing:-1.4px;
  display:flex;
  align-items:center;
}

.intro {
  text-align:center;
  padding:51px 0 43px;
}

h1 {
  font-family:var(--serif);
  font-size:clamp(28px,3.6vw,44px);
  font-weight:400;
  line-height:1.2;
  letter-spacing:-.6px;
  margin:0;
}

.decider-layout {
  display:grid;
  grid-template-columns:1fr 1.06fr;
  align-items:start;
  gap:54px;
  margin:0 auto;
  max-width:1020px;
}

.ideas-panel {
  padding:25px 0 0;
}

.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

h2 {
  font-family:var(--serif);
  font-size:30px;
  font-weight:400;
  letter-spacing:-.5px;
  margin:0;
}

.count {
  white-space:nowrap;
  font-size:11px;
  border:1px solid var(--line);
  padding:5px 10px;
  border-radius:20px;
  color:#65695e;
}

.panel-description {
  color:var(--muted);
  font-size:12px;
  margin:8px 0 24px;
}

.add-field {
  display:flex;
  gap:10px;
  align-items:center;
  padding:7px 7px 7px 15px;
  border:1px solid #d7d8cc;
  border-radius:9px;
  background:#fffef9;
  transition:border-color .2s;
}

.add-field:focus-within {
  border-color:var(--orange);
}

textarea {
  background:transparent;
  border:0;
  resize:vertical;
  flex:1;
  min-width:0;
  font-size:12px;
  line-height:24px;
  height:28px;
  max-height:120px;
  color:var(--ink);
  padding:2px 0;
}

textarea:focus {
  outline:0;
}

textarea::placeholder {
  color:#85877c;
}

.add-button {
  border:0;
  border-radius:6px;
  background:var(--ink);
  color:white;
  width:36px;
  height:36px;
  font-size:24px;
  font-weight:400;
  flex-shrink:0;
}

.add-button:hover {
  background:var(--orange);
}

.field-hint {
  font-size:10px;
  color:var(--muted);
  margin:9px 0 20px;
}

.form-message {
  font-size:12px;
  color:var(--orange);
  margin:0;
}

.form-message:not(:empty) {
  margin-bottom:12px;
}

.idea-list {
  list-style:none;
  margin:0;
  padding:0;
  max-height:346px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#d5d3c7 transparent;
}

.idea-row {
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #e5e4da;
  min-height:49px;
  padding:3px 1px;
}

.idea-number {
  height:25px;
  width:25px;
  border-radius:50%;
  background:var(--swatch);
  color:var(--swatch-ink);
  display:grid;
  place-items:center;
  font-size:10px;
  flex-shrink:0;
}

.idea-name {
  border:1px solid transparent;
  width:100%;
  min-width:0;
  padding:6px 4px;
  background:transparent;
  color:var(--ink);
  font-size:13px;
  border-radius:4px;
}

.idea-name:hover {
  background:#f0eee5;
}

.idea-name:focus {
  background:#fffef9;
  border-color:var(--line);
  outline-offset:1px;
}

.remove-button {
  border:0;
  background:transparent;
  width:32px;
  height:36px;
  flex-shrink:0;
  font-size:21px;
  font-weight:400;
  color:#929486;
}

.remove-button:hover {
  color:var(--orange);
  background:#f2e8df;
  border-radius:5px;
}

.idea-row.is-selected {
  background:#edf0e4;
  border-radius:5px;
}

.list-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  margin-top:14px;
  gap:12px;
}

.saved-dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#7b8965;
  margin-right:5px;
  vertical-align:middle;
}

.text-button {
  border:0;
  background:transparent;
  padding:6px 0;
  font-size:10px;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
}

.text-button:hover {
  color:var(--orange);
}

.text-button:disabled {
  opacity:.4;
}

.empty-state {
  text-align:center;
  border:1px dashed var(--line);
  border-radius:8px;
  padding:30px 15px;
}

.empty-state p {
  font-family:var(--serif);
  font-size:23px;
  margin:9px 0;
}

.empty-state small {
  color:var(--muted);
  font-size:11px;
}

.wheel-panel {
  position:relative;
  background:#efefe5;
  border:1px solid #e4e4d8;
  border-radius:160px 160px 15px 15px;
  text-align:center;
  padding:28px 31px 22px;
  overflow:hidden;
}

.wheel-stage {
  position:relative;
  margin:0 auto;
  width:100%;
  max-width:357px;
  padding-top:8px;
}

.wheel-wrap {
  position:relative;
  padding:8px;
  background:#faf9f1;
  border-radius:50%;
  border:1px solid #dadccc;
  box-shadow:0 7px 0 #e0e2d3,0 10px 18px #333c3210;
  aspect-ratio:1;
}

.wheel-wrap:after {
  content:'';
  position:absolute;
  inset:3px;
  border:1px dashed #c8caba;
  border-radius:50%;
  pointer-events:none;
}

#wheel {
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
  transform:rotate(0deg);
}

#wheel text {
  font-family:var(--sans);
  font-size:13px;
  font-weight:500;
  letter-spacing:.1px;
}

.wheel-hub {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:57px;
  height:57px;
  border:5px solid #ffffff60;
  background:#faf8ed;
  box-shadow:0 2px 5px #343c3218;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:Georgia,serif;
  font-size:33px;
  line-height:1;
  color:var(--orange);
  z-index:2;
}

.pointer {
  position:absolute;
  top:-9px;
  left:50%;
  transform:translateX(-50%);
  width:23px;
  height:33px;
  background:var(--ink);
  clip-path:polygon(0 0,100% 0,100% 40%,50% 100%,0 40%);
  z-index:3;
  filter:drop-shadow(0 2px 2px #0002);
}

.doodle {
  position:absolute;
  color:var(--orange);
  z-index:2;
}

.doodle-one {
  font-size:28px;
  left:-15px;
  top:30px;
  transform:rotate(12deg);
}

.doodle-two {
  font-size:30px;
  right:-14px;
  bottom:38px;
}

.result {
  margin:28px 0 21px;
  min-height:54px;
}

.result>p {
  font-size:8px;
  letter-spacing:1.8px;
  color:#737a65;
  margin:0 0 8px;
  font-weight:600;
}

.result h3 {
  font-family:var(--serif);
  font-size:29px;
  line-height:1.12;
  font-weight:400;
  margin:0;
  overflow-wrap:anywhere;
}

.result.is-revealed h3 {
  color:var(--orange);
  animation:reveal .5s ease-out;
}

.decide-button {
  width:100%;
  border:1px solid #aa452d;
  border-radius:7px;
  background:var(--orange);
  color:#fff9ec;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:14px;
  font-weight:500;
  box-shadow:0 3px 0 #993c26;
}

.decide-button>svg {
  height:20px;
  width:20px;
}

.decide-button>span:last-child {
  margin-left:auto;
  font-size:21px;
}

.decide-button>svg {
  margin-right:auto;
}

.decide-button {
  padding:0 19px;
}

.decide-button:hover:not(:disabled) {
  background:#a8422b;
  transform:translateY(-1px);
}

.decide-button:active:not(:disabled) {
  transform:translateY(2px);
  box-shadow:0 1px 0 #993c26;
}

.decide-button:disabled {
  opacity:.55;
}

.is-spinning .decide-button {
  opacity:.8;
}

.is-spinning .wheel-hub {
  animation:hub-pulse .8s ease-in-out infinite;
}

.wheel-hint {
  font-size:9px;
  color:#737a65;
  margin:15px 0 0;
}

.confetti {
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}

.confetti i {
  position:absolute;
  left:50%;
  top:40%;
  height:10px;
  width:6px;
  border-radius:1px;
  background:var(--color);
  animation:confetti 1.8s cubic-bezier(.1,.65,.4,1) var(--delay) both;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.no-script {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:var(--ink);
  color:white;
  padding:20px;
  text-align:center;
}

@keyframes confetti {
  0% {
    transform:translate(0,0) rotate(0);
    opacity:0;
  }
  8% {
    opacity:1;
  }
  100% {
    transform:translate(var(--x),var(--y)) rotate(var(--rotate));
    opacity:0;
  }
}

@keyframes reveal {
  from {
    opacity:0;
    transform:translateY(8px) scale(.97);
  }
  to {
    opacity:1;
    transform:none;
  }
}

@keyframes hub-pulse {
  50% {
    transform:translate(-50%,-50%) scale(1.08);
  }
}

@media(min-width:1500px) {
  .intro {
    padding-top:65px;
    padding-bottom:54px;
  }
  .decider-layout {
    gap:70px;
  }
}

@media(max-width:900px) {
  .page-shell {
    padding:0 28px 40px;
  }
  .decider-layout {
    gap:30px;
    grid-template-columns:1fr 1fr;
  }
  .wheel-panel {
    padding:26px 21px 22px;
  }
  h2 {
    font-size:26px;
  }
  .result h3 {
    font-size:26px;
  }
}

@media(max-width:680px) {
  .page-shell {
    padding:0 22px 32px;
  }
  .site-header {
    height:80px;
  }
  .wordmark {
    font-size:25px;
  }
  .intro {
    padding:36px 0 31px;
  }
  .decider-layout {
    grid-template-columns:1fr;
    gap:28px;
    max-width:440px;
  }
  .ideas-panel {
    padding-top:5px;
  }
  .panel-description {
    margin-bottom:19px;
  }
  h2 {
    font-size:29px;
  }
  .wheel-panel {
    padding:29px 27px 24px;
    border-radius:160px 160px 14px 14px;
  }
  .idea-name {
    font-size:14px;
  }
  .idea-row {
    min-height:48px;
  }
  .result {
    margin-top:28px;
  }
  .result h3 {
    font-size:30px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

