/* "Get started": the dialog that asks which way (start-chooser.js). The homepage and every page
   the server's layout renders load it, so it brings its own colors and type, and is light only,
   like the site. Phones: a bottom sheet. */
.sc{
  --sc-ink:#131117; --sc-ink-2:#55505e; --sc-line:#e7e3ec; --sc-brand:#8a2be2; --sc-brand-deep:#6b1cc4; --sc-wash:#f3ebfd; --sc-err:#8c2f2f;
  --sc-font:Barlow, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme:light; box-sizing:border-box; width:min(720px, calc(100% - 32px)); max-width:none; max-height:none;
  margin:auto; padding:0; border:2px solid var(--sc-ink); border-radius:18px; background:#fff; color:var(--sc-ink);
  box-shadow:6px 6px 0 var(--sc-brand); overflow:hidden; font:400 17px/1.5 var(--sc-font); text-align:left
}
.sc::backdrop{background:rgba(17,15,22,.62)}
.sc *{box-sizing:border-box}
/* The box scrolls inside, so a click on its scrollbar never lands on the dialog itself (which closes it). */
.sc-in{position:relative; display:grid; gap:18px; padding:28px; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain}
.sc .sc-h{margin:0; padding-right:48px; font:800 clamp(26px,4vw,34px)/1.08 var(--sc-font); letter-spacing:-.03em; color:var(--sc-ink); text-wrap:balance}
.sc-x{position:absolute; top:14px; right:14px; width:44px; height:44px; display:grid; place-items:center; padding:0; border:0; border-radius:10px;
  background:transparent; color:var(--sc-ink); font:400 32px/1 var(--sc-font); cursor:pointer}
.sc-choices{display:grid; gap:12px}
@media(min-width:640px){.sc-choices{grid-template-columns:1fr 1fr}}
.sc-choice{display:grid; gap:6px; align-content:start; width:100%; min-height:64px; margin:0; padding:18px 20px; border:2px solid var(--sc-ink); border-radius:14px;
  background:#fff; color:var(--sc-ink); font:inherit; text-align:left; cursor:pointer; transition:transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s}
.sc-choice:active{transform:none; box-shadow:none}
/* Hover only where there is one: on a phone, a tapped choice would keep the look. */
@media (hover:hover){
  .sc-x:hover{background:var(--sc-wash)}
  .sc-choice:hover{transform:translate(-2px,-2px); box-shadow:4px 4px 0 var(--sc-brand)}
}
.sc-t{font-size:20px; font-weight:800; line-height:1.2; letter-spacing:-.01em}
.sc-line{color:var(--sc-ink-2); font-size:15.5px; line-height:1.45}
.sc-last{font-size:14px; font-weight:700; color:var(--sc-brand-deep)}
.sc-last[hidden]{display:none}
/* While one choice opens the designer, neither can be pressed again: the other one fades. */
.sc-choice[aria-disabled="true"]{cursor:progress; opacity:.55; transform:none; box-shadow:none}
.sc-choice[data-opening]{opacity:1}
.sc-err{margin:0; color:var(--sc-err); font-size:15px; font-weight:600}
.sc-err:empty{display:none}
.sc-err a{color:inherit; text-underline-offset:3px; overflow-wrap:anywhere}
.sc .sc-choice:focus-visible, .sc .sc-x:focus-visible, .sc .sc-err a:focus-visible{outline:3px solid var(--sc-brand); outline-offset:3px}
.sc .sc-choice:focus-visible{border-radius:14px}
@media(max-width:639px){
  .sc{width:100%; margin:auto 0 0; border-width:2px 0 0; border-radius:18px 18px 0 0; box-shadow:none}
  .sc-in{gap:16px; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px);
    padding:22px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px))}
  .sc-x{top:10px; right:max(8px, env(safe-area-inset-right, 0px))}
  .sc[open]{animation:sc-up .24s cubic-bezier(.2,.7,.3,1)}
}
@keyframes sc-up{from{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){
  .sc[open]{animation:none}
  .sc-choice{transition:none}
  .sc-choice:hover{transform:none}
}
