/* noahlampert.com/start, on top of site.css. */
.start-page [hidden] { display: none !important; } /* .btn sets display, which would beat [hidden] */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.start-head { padding-top: clamp(32px, 6vw, 72px); display: grid; gap: 12px; }
.start-head .head-text { display: grid; gap: 12px; }
.start-head .lede { margin-top: 4px; }

/* The questions: one at a time, big choices that light up like stars. */
/* Question 1 is in the HTML, so the page doesn't shift when start.js takes over; without the script, only the list. */
html:not(.js) .start-quiz { display: none; }
.start-quiz, .start-result { margin-top: clamp(28px, 5vw, 56px); }
.start-quiz { animation: rise 0.45s ease both; }
.start-q { margin-top: 8px; outline: none; }
/* Short labels and snug padding keep all seven on one line from 1200 px up; narrower, a cap
   on the row's width makes it 4 + 3 rather than 6 + 1. */
.start-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 3vw, 30px); }
@media (min-width: 720px) and (max-width: 1199px) { .start-choices { max-width: 40rem; } }
.start-page [data-acc="cream"] { --acc: var(--text); }
.start-choice {
  /* site.css's chip, with a bigger target and a star that lights on hover */
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; text-align: left; font-size: 0.9375rem; cursor: pointer;
  padding: 12px 18px 12px 15px; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.45s ease both;
}
/* Each answer's dot is its path's colour (data-acc), the same colour as its card in the list below. */
.start-choice::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); transition: box-shadow 0.2s ease; }
.start-choice:hover, .start-choice:focus-visible { border-color: color-mix(in srgb, var(--acc) 60%, transparent); transform: translateY(-2px); }
.start-choice:hover::before, .start-choice:focus-visible::before { box-shadow: 0 0 12px var(--acc); }
.start-choice:nth-child(2) { animation-delay: 0.04s; } .start-choice:nth-child(3) { animation-delay: 0.08s; }
.start-choice:nth-child(4) { animation-delay: 0.12s; } .start-choice:nth-child(5) { animation-delay: 0.16s; }
.start-choice:nth-child(6) { animation-delay: 0.2s; } .start-choice:nth-child(7) { animation-delay: 0.24s; }
.start-nav { margin-top: 18px; min-height: 2em; }
.start-back { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--soft); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.start-back::before { content: "← "; }
.start-back:hover { color: var(--text); }

/* The result: one sentence, then three cards joined by a thread. */
.start-line .q { color: var(--acc); }
.start-line { font-size: clamp(1.625rem, 3.4vw, 2.5rem); line-height: 1.2; margin-top: 10px; max-width: 30em; outline: none; animation: rise 0.45s ease both; }
/* --path: the chosen path's colour (start.js sets data-acc on #result); --tg: the thread's length. */
.start-result { --path: var(--acc); --tg: 44px; }
@media (min-width: 860px) { .start-result { --tg: 56px; } }
.start-cards { display: grid; gap: var(--tg); margin-top: clamp(22px, 3.4vw, 36px); }
@media (min-width: 860px) { .start-cards { grid-template-columns: repeat(3, 1fr); } }
.start-cards li { position: relative; animation: rise 0.5s ease both; }
.start-cards li:nth-child(2) { animation-delay: 0.1s; } .start-cards li:nth-child(3) { animation-delay: 0.2s; }
.start-cards a { display: grid; gap: 8px; grid-template-rows: auto auto 1fr auto; height: 100%; padding: clamp(18px, 2.4vw, 26px); }
.start-name { font-family: var(--display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.02em; }
.start-note { color: var(--soft); line-height: 1.5; }
.start-cards a:hover .game-go .go { transform: translate(2px, -2px); }
/* The first card glows in the path's colour before it's touched. */
.start-cards li:first-child .card { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.start-cards li:first-child .glow::before { opacity: 0.55; }
.start-cards li:first-child .glow:hover::before { opacity: 1; }
/* The thread from one card to the next, in the path's colour, with site.css's spark running
   along it (still under reduced motion): down on phones, turned to run across on wide screens. */
.start-cards li + li::before {
  content: ""; position: absolute; left: 50%; top: calc(-1 * var(--tg)); width: 1px; height: var(--tg);
  background: linear-gradient(transparent 20%, var(--text) 45%, transparent 70%) 0 200% / 100% 300% no-repeat,
    linear-gradient(var(--line-2), var(--path));
  animation: spark 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.start-cards li:nth-child(3)::before { animation-delay: 1.4s; }
.start-cards li + li::after { content: ""; position: absolute; left: calc(50% - 2.5px); top: -9px; width: 5px; height: 5px; border-radius: 50%; background: var(--path); box-shadow: 0 0 8px var(--path); }
@media (min-width: 860px) {
  .start-cards li + li::before { left: calc(var(--tg) / -2); top: calc(50% - var(--tg) / 2); transform: rotate(-90deg); }
  .start-cards li + li::after { left: -9px; top: calc(50% - 2.5px); }
}
.start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.start-more { margin-top: 16px; font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.03em; color: var(--dim); }
.start-more a { color: var(--butter); }

/* Every path, as a plain list (all of it without JS). */
.start-paths { padding-block: clamp(64px, 9vw, 120px); }
/* Two columns (4 + 3) rather than a grid, so the seventh card never sits alone in the last row. */
.start-list { columns: 2 22rem; column-gap: 14px; }
.start-list > li { break-inside: avoid; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 22px); background: rgba(31, 13, 24, 0.6); }
.start-list h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.start-list h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.start-list ul { display: grid; gap: 8px; }
.start-list li li { line-height: 1.45; display: grid; grid-template-columns: 3.9rem 1fr; gap: 10px; }
.start-k { padding-top: 0.3em; font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--butter); }
.start-list a { color: var(--text); }
.start-meta { color: var(--soft); font-size: 0.9375rem; }
.start-list > li > .start-meta { margin-top: 10px; }
.start-list > li > .start-meta a { color: var(--butter); font-size: 0.875rem; }
.sec-head a { color: var(--butter); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
