* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--hs-text); background: var(--hs-sky); font: 1rem/1.5 var(--hs-sans);
}
button, input, select, textarea { font: inherit; color: inherit; }
.intake { width: min(91%, 1320px); margin-inline: auto; }
.start {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro form" "art form"; align-content: center;
  gap: 2rem clamp(40px, 7vw, 115px); padding-block: clamp(3rem, 7vw, 8rem);
}
.introduction { grid-area: intro; align-self: end; }
h1, h2 { font-family: var(--hs-display); font-weight: 400; letter-spacing: -.055em; line-height: .99; margin: 0; }
h1 { font-size: clamp(3.25rem, 6.9vw, 6.9rem); }
.introduction h1 { max-width: 11ch; }
.introduction p { font-size: clamp(1.05rem, 1.45vw, 1.35rem); line-height: 1.45; max-width: 38ch; margin: 1.1rem 0 0; }
.mascot-scene {
  grid-area: art; position: relative; overflow: hidden; align-self: start; isolation: isolate;
  height: clamp(170px, 17vw, 245px); border: 1px solid #555f7b;
  background-color: var(--hs-sky);
  background-image: linear-gradient(90deg,#65749a80 1px,transparent 1px),linear-gradient(#65749a80 1px,transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.mascot-scene img { position: absolute; height: 105%; width: auto; left: 50%; bottom: -9%; transform: translateX(-50%) rotate(-7deg); }
.stripes { position: absolute; left: 10%; top: -18%; width: 21%; height: 140%; transform: rotate(-35deg); background: repeating-linear-gradient(90deg,var(--hs-ink) 0 12%,transparent 12% 27%); }
.discs { position: absolute; left: 53%; right: 5%; top: 48%; height: 25%; background: radial-gradient(circle closest-side,#008df3 99%,transparent 100%) left / auto 100% repeat-x,white; background-size: 50px 50px,auto; }
.import-card, .continuation form:not(#sign-in) {
  background: var(--hs-paper); color: var(--hs-text); border: 1px solid var(--hs-ink);
}
.import-card { grid-area: form; align-self: center; box-shadow: 7px 7px 0 #08082f; }
#intake, #connection { padding: clamp(20px, 2.6vw, 42px); }
.source-choice { min-width: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 0; padding: 0; margin: 0 0 24px; }
.source-choice legend, #connection h2 { font: 400 clamp(1.8rem, 2.6vw, 2.7rem)/1.06 var(--hs-display); letter-spacing: -.05em; padding: 0; margin: 0 0 1.2rem; }
.source-choice label { position: relative; min-width: 0; cursor: pointer; }
.source-choice label + label { margin-left: -1px; }
.source-choice span {
  display: grid; min-height: 44px; place-items: center; text-align: center;
  font-weight: 600; font-size: .95rem; padding: .55rem .25rem; border: 1px solid var(--hs-rule);
}
.source-choice input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.source-choice input:checked + span { background: var(--hs-action); color: var(--hs-on-action); border-color: var(--hs-action); }
.source-choice input:focus-visible + span, .upload-area:focus-within, :focus-visible { outline: 3px solid #a56a00; outline-offset: 3px; }
.upload-area {
  position: relative; display: grid; justify-items: center; align-content: center; gap: .4rem;
  padding: 1.25rem; min-height: 144px; background: #f4efff; color: var(--hs-ink); border: 1px dashed #8b76ae; text-align: center;
}
.upload-area:hover { background: #eee5ff; border-color: var(--hs-accent); }
.upload-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .2rem; border: 1px solid var(--hs-ink); background: #d6c1ff; font: 1.55rem/1 var(--hs-sans); }
.upload-title { font-size: 1.05rem; font-weight: 640; overflow-wrap: anywhere; }
.upload-area input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.intake label:not(.upload-area,.consent), .intake small { font-size: .92rem; }
.intake small { display: block; }
.intake label:not(.upload-area,.consent) { font-weight: 600; }
.intake input:not([type=file],[type=radio],[type=checkbox]), .intake select, .intake textarea {
  display: block; min-height: 44px; width: 100%; margin: 5px 0 8px; padding: 10px 12px;
  border: 1px solid #818196; border-radius: 0; background: var(--hs-paper);
}
.intake textarea { font: .875rem/1.5 ui-monospace,monospace; resize: vertical; }
#temporary-preview { max-width: 720px; margin-block: 1rem; padding: 1rem; border: 1px solid var(--hs-rule); }
#temporary-preview a { margin-inline-start: 1rem; }
#connection input, #temporary-preview input { font-family: ui-monospace, monospace; }
.consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .94rem; margin-top: 1rem; }
.consent input { margin: .2em 0 0; width: 17px; height: 17px; accent-color: var(--hs-accent); flex: none; }
.intake button, #open-preview {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px;
  padding: .68rem 1.05rem; border: 1px solid var(--hs-action); border-radius: 0; font-weight: 600;
  background: var(--hs-paper); color: var(--hs-text); cursor: pointer; text-decoration: none;
}
.intake .primary, #connection #copy { color: var(--hs-on-action); background: var(--hs-action); }
#intake .primary { width: 100%; margin-top: 1.1rem; }
.intake button:hover:not(:disabled), #open-preview:hover { color: white; background: #38296e; }
.intake button:disabled { opacity: .6; cursor: wait; }
.privacy, .status, #claim-result { color: var(--hs-muted); overflow-wrap: anywhere; }
.privacy { margin: 0; padding: 1rem clamp(20px, 2.6vw, 42px); border-top: 1px solid var(--hs-rule); font-size: .9rem; }
.status { margin: 0 1.25rem 1rem; }
.status:empty, #claim-result:empty { display: none; }
.intake progress { display: block; width: 100%; height: .6rem; accent-color: var(--hs-accent); margin: 1rem 0; }
.import-card progress { width: calc(100% - 2.5rem); margin-inline: 1.25rem; }
#connection a { margin-left: 1rem; }
.intake a { color: inherit; text-underline-offset: 3px; }
.continuation { flex: 1; padding-block: 2.6rem; }
.continuation h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
.continuation p { margin: .9rem 0; }
.continuation form:not(#sign-in) { padding: 1rem; max-width: 590px; }
#sign-in { margin-block: 1rem; }
#resources, #claim { margin-bottom: 1rem; }
#website-preview {
  display: block; width: 100%; height: max(430px, 69vh); margin: 1.3rem 0;
  background: white; border: 1px solid var(--hs-ink); box-shadow: 4px 4px 0 #08082f;
}
.continuation > a, .continuation > button { margin: .25rem 1rem .25rem 0; }
@media (prefers-color-scheme: dark) {
  :root { --hs-sky: #222b42; --hs-text: #f2f1ff; --hs-paper: #202137; --hs-muted: #c9c8dc; --hs-rule: #686a82; --hs-action: #dfd4ff; --hs-on-action: #19112f; color-scheme: dark; }
  .mascot-scene { background-color: #9fbddd; }
  .import-card { border-color: #80869f; }
  .upload-area { background: #332c48; color: var(--hs-text); }
  .upload-area:hover { background: #403452; }
  .upload-icon { color: var(--hs-ink); }
}
@media (max-width: 800px) {
  .start { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "form" "art"; width: min(90%,580px); gap: 1.5rem; padding-block: 2.5rem; }
  .introduction h1 { max-width: none; font-size: clamp(3rem, 9.8vw, 4.5rem); }
  .mascot-scene { height: 150px; }
  .import-card { box-shadow: 4px 4px 0 var(--hs-ink); }
}
@media (max-width: 400px) {
  .start { width: calc(100% - 32px); }
  #intake, #connection { padding: 16px; }
  .source-choice span { font-size: .87rem; }
}
