:root {
  --paper: #eef3f0;
  --sheet: #ffffff;
  --ink: #132017;
  --mute: #5d6e66;
  --pine: #14624f;
  --pine-soft: #d7efe6;
  --line: #d5e0da;
  --warn: #9a6b12;
  --ok: #14624f;
  --bad: #b4232a;
  --sun: #e07a2f;
  --display: "Syne", "Futura", sans-serif;
  --sans: "Figtree", "Helvetica Neue", sans-serif;
  --reel: 8rem;
  --page: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 80% -10%, #d9efe4 0%, transparent 60%),
    var(--paper);
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pine); }

.bar {
  width: var(--page);
  margin: 0 auto;
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 16px;
}

.dots { display: flex; gap: 7px; }
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #c5d2cb;
}
.dots i.on { background: var(--pine); width: 18px; }

.nav-right { justify-self: end; }
.back, .again {
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 15px;
  padding: 6px 0;
}

.ask, .desk {
  width: var(--page);
  margin: 0 auto;
  padding: 48px 0 96px;
}

.ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.reel {
  width: min(900px, 100%);
  height: var(--reel);
  overflow: hidden;
  margin: 0 auto 36px;
  text-align: center;
}

.reel-track {
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.reel h1 {
  height: var(--reel);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  padding: 0 8px;
  overflow: visible;
}

.panes { width: min(900px, 100%); }
.pane[hidden] { display: none; }
.pane.is-on { display: block; }

.pane.is-on .big,
.pane.is-on .hours-row,
.pane.is-on .days,
.pane.is-on .primary,
.pane.is-on .actions,
.pane.is-on .chips,
.pane.is-on .hint {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pane.is-on .chips { animation-delay: 0.08s; }
.pane.is-on .days { animation-delay: 0.06s; }
.pane.is-on .primary,
.pane.is-on .actions { animation-delay: 0.12s; }

.picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pick {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sheet);
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 40px -28px rgba(19, 32, 23, 0.45);
  transform: translateY(36px);
  opacity: 0;
}

.pane.is-on .pick {
  animation: rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pane.is-on .pick:nth-child(1) { animation-delay: 0.04s; }
.pane.is-on .pick:nth-child(2) { animation-delay: 0.14s; }
.pane.is-on .pick:nth-child(3) { animation-delay: 0.24s; }

.pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.pick span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 650;
  font-size: 16px;
}

.pick:hover img,
.pick:focus-visible img { transform: scale(1.09); }
.pick:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.pick.is-on { box-shadow: 0 0 0 3px var(--pine), 0 18px 40px -24px rgba(19, 32, 23, 0.4); }

.big {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 12px 0 18px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  outline: none;
}

.area {
  min-height: 180px;
  resize: vertical;
  font-size: clamp(24px, 3vw, 34px);
}

.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.hours { width: 180px; text-align: center; }
.unit { font-size: 24px; color: var(--mute); }

.chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 32px;
}
.chips button {
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
}
.chips button.is-on {
  background: var(--pine);
  border-color: var(--pine);
  color: white;
}

.primary, .ghost {
  margin-top: 28px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 650;
  font-size: 16px;
}
.primary { background: var(--ink); color: white; display: block; margin-left: auto; margin-right: auto; }
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
}

.actions { display: flex; gap: 10px; align-items: center; justify-content: center; }
.actions .primary { margin-left: 0; margin-right: 0; }

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.days label {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.days input { display: none; }
.days label:has(input:checked) {
  background: var(--pine);
  border-color: var(--pine);
  color: white;
}

.hint { color: var(--mute); font-size: 15px; text-align: center; }

.desk[hidden], .share[hidden], .back[hidden], .again[hidden] { display: none; }

.desk-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.step {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-height: 92px;
}
.step b { display: block; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; line-height: 1.35; }
.step.running { border-color: var(--sun); }
.step.done { border-color: var(--pine); background: var(--pine-soft); }
.step.fail { border-color: var(--bad); }

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.day {
  min-height: 280px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.day .when { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.day h3 {
  margin: 10px 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.day .meta { font-size: 13px; color: var(--pine); font-weight: 650; }
.day p { margin: 10px 0 0; font-size: 14px; color: var(--mute); line-height: 1.45; }
.day.hard { box-shadow: inset 0 0 0 1.5px var(--sun); }
.day.off { opacity: 0.75; }

.note {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 28px 0 8px;
}
.issues { text-align: center; font-size: 16px; }
.issues.ok { color: var(--ok); }
.issues.bad { color: var(--warn); }
.share, .status { text-align: center; }
.status { color: var(--mute); font-size: 15px; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --reel: 6.4rem; --page: calc(100% - 28px); }
  .picks { grid-template-columns: 1fr; }
  .pick { aspect-ratio: 16 / 9; }
  .week, .steps, .days { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .reel h1 { font-size: clamp(24px, 7vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { transition: none; }
  .pane.is-on .pick { animation: none; opacity: 1; transform: none; }
}
