/* Styles of the billet page. */
/* One 70rem column. Sections vary their composition inside it, not their width. */
main { --gap: clamp(4rem, 8vw, 6.5rem); --overlap: clamp(4rem, 13vw, 10rem); display: grid; gap: var(--gap); grid-template-columns: minmax(0, 70rem); justify-content: center; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 0; }
main section { scroll-margin-top: 6rem; }
.dot.proposed { background: var(--billet-proposed); }
.dot.ready { background: var(--billet-ready); }
.dot.in-progress { background: var(--billet-ember); }
.button { align-items: center; border-radius: 999px; display: inline-flex; font-size: .95rem; font-weight: 700; gap: .55rem; justify-content: center; min-height: 2.9rem; padding: 0 1.4rem; text-decoration: none; }
.button.primary { background: var(--billet-ink); color: var(--billet-pane); }
.button.primary:hover { background: color-mix(in srgb, var(--billet-ink) 85%, var(--billet-pane)); }
.button.secondary { background: var(--billet-pane); border: 1px solid color-mix(in srgb, var(--billet-ink) 18%, var(--billet-pane)); color: var(--billet-ink); }
.button.secondary:hover { background: var(--billet-hover); }
.button.large { font-size: 1rem; min-height: 3.25rem; min-width: 14rem; }
.button.is-pending { border: 1px dashed color-mix(in srgb, var(--billet-ink) 25%, var(--billet-pane)); color: var(--billet-ink2); }
/* Screenshots sit on the sky with the pane's radius and soft shadow. */
main figure { margin: 0; }
main picture { display: block; }
main picture[hidden] { display: none; }
.shot { aspect-ratio: 16 / 10; border-radius: 28px; box-shadow: var(--shadow-shot); display: block; height: auto; width: 100%; }
/* The hero pane, with the app overlapping its lower edge. */
.hero { justify-items: center; justify-self: center; padding-block: clamp(2.25rem, 6vw, 3.5rem) calc(var(--overlap) + clamp(2rem, 4vw, 3rem)); text-align: center; width: min(100%, 46rem); }
.hero-title { align-items: center; display: flex; gap: clamp(.75rem, 2.5vw, 1.25rem); justify-content: center; }
.hero-icon { display: block; filter: drop-shadow(0 4px 10px var(--billet-shadow)); height: auto; width: clamp(3.25rem, 8vw, 4.75rem); }
.lead { color: var(--billet-ink); font-size: clamp(1.05rem, 1.8vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .5rem; }
.meta { font-size: .85rem; }
.hero-shot { margin-top: calc(-1 * (var(--gap) + var(--overlap))); position: relative; }
/* The story: step cards in a well, like the app's list, beside the board they change. */
.story { align-items: start; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
.story-side { background: var(--billet-well); border-radius: 20px; display: grid; gap: .9rem; padding: .9rem; }
.story-side header { background: var(--billet-pane); border-radius: 18px; box-shadow: var(--shadow-card); display: grid; gap: .6rem; padding: 1.25rem 1.25rem 1.35rem; }
.story-side header p { font-size: .92rem; }
.steps { display: grid; gap: .65rem; list-style: none; margin: 0; padding: 0; }
.step { background: var(--billet-pane); border-radius: 18px; box-shadow: var(--shadow-card); }
.step button { background: none; border: 0; border-radius: 18px; color: inherit; cursor: pointer; display: grid; font: inherit; gap: .3rem; padding: .9rem 1rem; text-align: left; width: 100%; }
.step button:hover { background: var(--billet-hover); }
.step-status { align-items: center; color: var(--billet-ink2); display: flex; font-size: .8rem; font-weight: 700; gap: .45rem; }
.step-status code { background: none; color: var(--billet-ink2); font-size: .74rem; font-weight: 400; margin-left: auto; padding: 0; }
.step strong { font-size: .98rem; line-height: 1.35; }
.step-detail { display: grid; gap: .75rem; padding: 0 1rem 1rem; }
.step-detail > p { font-size: .88rem; line-height: 1.6; }
.story.is-interactive .step:not(.is-current) .step-detail { display: none; }
.story.is-interactive .step.is-current { box-shadow: 0 0 0 2px var(--billet-ink), var(--shadow-card); }
.story.is-interactive .step.is-current button:hover { background: none; }
.story-stage { display: grid; gap: 1.5rem; position: sticky; top: 6rem; }
.changes { background: var(--billet-selected); border-radius: 12px; display: grid; font-family: var(--billet-mono); font-size: .72rem; gap: .5rem; padding: .7rem .8rem; }
.changes p { border-top: 1px solid color-mix(in srgb, var(--billet-ink) 8%, var(--billet-selected)); font-size: inherit; line-height: 1.5; padding-top: .5rem; }
.changes dl { display: grid; gap: .3rem; margin: 0; }
.changes dl > div { display: grid; gap: .75rem; grid-template-columns: 4.4rem minmax(0, 1fr); }
.changes dt { color: var(--billet-ink2); }
.changes dd { display: flex; flex-wrap: wrap; gap: 0 .4rem; margin: 0; overflow-wrap: anywhere; }
.changes del, .changes dd span { color: var(--billet-ink2); }
.changes ins { color: var(--billet-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.changes .is-running ins { color: var(--billet-ember-text); }
/* Files: the explanation beside the real file. */
.files { align-items: start; gap: 2rem clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.files-copy { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.tree { margin: .5rem 0 0; overflow-x: auto; }
.tree code { background: none; color: var(--billet-ink2); font-size: .8rem; line-height: 1.7; padding: 0; }
.code-frame { background: var(--billet-selected); border-radius: 18px; min-width: 0; overflow: hidden; }
.code-frame figcaption { border-bottom: 1px solid color-mix(in srgb, var(--billet-ink) 8%, var(--billet-selected)); color: var(--billet-ink2); font-family: var(--billet-mono); font-size: .75rem; overflow: hidden; padding: .8rem 1.1rem; text-overflow: ellipsis; white-space: nowrap; }
.code-frame pre { margin: 0; overflow-x: auto; padding: 1rem 1.1rem 1.25rem; }
.code-frame code { background: none; font-size: .8rem; line-height: 1.6; padding: 0; }
/* The views, in the app's two groups: each a bar like its title strip, with a switch at the right. */
.views { display: grid; gap: clamp(3rem, 6vw, 4.5rem); grid-template-columns: minmax(0, 1fr); }
.viewer { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
.viewer.is-tabbed { gap: 1.25rem; }
.title-strip { align-items: center; background: var(--billet-pane); border-radius: 28px; box-shadow: var(--shadow-pane); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; padding: .7rem .7rem .7rem clamp(1.1rem, 3vw, 1.75rem); }
.title-strip h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.view-switch { background: var(--billet-selected); border-radius: 999px; display: flex; gap: .15rem; max-width: 100%; overflow-x: auto; padding: .25rem; scrollbar-width: none; }
.view-switch[hidden], .view[hidden] { display: none; }
.view-switch button { align-items: center; background: none; border: 0; border-radius: 999px; color: var(--billet-ink2); cursor: pointer; display: inline-flex; flex: 0 0 auto; font: inherit; font-size: .9rem; font-weight: 700; gap: .45rem; min-height: 2.5rem; padding: 0 .95rem; }
.view-switch button:hover { color: var(--billet-ink); }
.view-switch kbd { background: none; color: inherit; font-size: .72rem; font-weight: 400; opacity: .75; padding: 0; }
.view-switch button[aria-selected="true"] { background: var(--billet-ink); color: var(--billet-pane); }
.view-switch button:focus-visible { outline-offset: 1px; }
.view { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.view figcaption { align-items: baseline; gap: .5rem clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem); }
.view h3 { font-size: 1.15rem; }
/* Overlaps: a screenshot with its pane resting over a lower corner. */
.overlap { display: grid; grid-template-columns: minmax(0, 1fr); }
.overlap > * { grid-area: 1 / 1; }
.overlap picture { margin: 0 0 clamp(5rem, 12vw, 9rem) clamp(0rem, 14vw, 12rem); }
.overlap .pane { align-self: end; position: relative; width: min(100%, 30rem); }
.overlap.is-right picture { margin: 0 clamp(0rem, 14vw, 12rem) clamp(5rem, 12vw, 9rem) 0; }
.overlap.is-right .pane { justify-self: end; }
/* Find: two screenshots side by side over one wide pane. */
.find { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.find .shot { border-radius: 20px; }
.find-copy { align-items: baseline; gap: .5rem clamp(2rem, 5vw, 4rem); grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
/* Skills: one row, the intro pane and a well per phase, like board columns. */
.skills { align-items: start; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.install { align-items: center; background: var(--billet-selected); border-radius: 22px; display: grid; gap: .9rem 1.5rem; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; padding: 1.35rem 1.5rem; }
.install h2 { font-size: 1.05rem; }
.install p { font-size: .92rem; max-width: 70ch; }
.install .provenance { color: var(--billet-ink2); font-size: .8rem; }
.install .provenance code { background: none; font-size: .8rem; padding: 0; }
.install-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.install-folders { grid-column: 1 / -1; }
.install-folders summary { color: var(--billet-ink2); cursor: pointer; font-size: .85rem; }
.install-folders summary:hover { color: var(--billet-ink); }
.install-folders > div { display: grid; gap: .6rem; padding-top: .8rem; }
.install-folders ul { columns: 2; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.install-folders li { break-inside: avoid; color: var(--billet-ink2); font-size: .85rem; margin-bottom: .35rem; }
.install-folders li strong { color: var(--billet-ink); display: inline-block; min-width: 8.5rem; }
.install-folders li code { background: none; font-size: .8rem; padding: 0; }
.skills-copy { padding: 1.5rem; }
.skills-copy p { font-size: .92rem; }
.repo { align-items: center; background: var(--billet-selected); border-radius: 18px; color: var(--billet-ink); display: flex; gap: .75rem; margin-top: .25rem; padding: .8rem 1rem; text-decoration: none; }
.repo > span { display: grid; flex: 1 1 auto; gap: .05rem; min-width: 0; }
.repo strong { font-family: var(--billet-mono); font-size: .9rem; }
.repo span span { color: var(--billet-ink2); font-size: .8rem; }
.repo:hover { background: color-mix(in srgb, var(--billet-ink) 12%, var(--billet-pane)); }
.well { background: var(--billet-well); border-radius: 20px; padding: .65rem; }
.well-head { align-items: center; display: flex; font-size: .9rem; gap: .55rem; padding: .35rem .4rem .85rem; }
.well dl { display: grid; gap: .65rem; margin: 0; }
.card { background: var(--billet-pane); border-radius: 18px; box-shadow: var(--shadow-card); padding: .9rem 1rem; }
.card dt code { background: none; font-size: .86rem; font-weight: 700; padding: 0; }
.card dd { color: var(--billet-ink2); font-size: .86rem; line-height: 1.6; margin: .3rem 0 0; }
/* The walkthrough: one pane, with a title strip, the player, and its caption. */
.motion-frame { background: var(--billet-pane); border-radius: 28px; box-shadow: var(--shadow-shot); padding: clamp(.6rem, 1.5vw, .8rem); }
.motion-head { display: grid; gap: .35rem; padding: clamp(.9rem, 2.5vw, 1.25rem) clamp(.9rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.25rem); }
.motion-head p { font-size: .92rem; max-width: 62ch; }
.motion-screen { aspect-ratio: 16 / 9; background: #111214; border-radius: 20px; overflow: hidden; }
.motion-screen iframe { border: 0; display: block; height: 100%; width: 100%; }
.motion-caption { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding: clamp(.9rem, 2vw, 1.1rem) clamp(.5rem, 1.5vw, .85rem) clamp(.2rem, 1vw, .35rem); }
.motion-caption span { color: var(--billet-ink2); font-size: .85rem; }
.motion-caption a { align-items: center; display: inline-flex; font-size: .85rem; font-weight: 700; gap: .35rem; text-decoration: none; white-space: nowrap; }
.motion-caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq-pane { align-items: start; gap: 1.5rem clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.faq-intro { display: grid; gap: 1rem; }
.faq { interpolate-size: allow-keywords; }
.faq details { border-top: 1px solid var(--billet-line); }
.faq details:first-child { border-top: 0; }
.faq summary { align-items: center; border-radius: 14px; cursor: pointer; display: flex; font-size: 1.02rem; font-weight: 700; gap: 1.5rem; justify-content: space-between; list-style: none; margin-inline: -.75rem; min-height: 3.5rem; padding: .8rem .75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--billet-hover); }
.faq summary svg { flex: 0 0 auto; fill: none; height: 1.1rem; stroke: var(--billet-ink2); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 1.1rem; }
.faq details[open] summary svg { rotate: 180deg; stroke: var(--billet-ink); }
.faq details::details-content { block-size: 0; overflow: clip; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 2.5rem 1.2rem 0; }
/* The close: why I use it, beside where to get it. */
.closing { align-items: center; gap: 2rem clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
main blockquote { margin: 0; }
main blockquote p { color: var(--billet-ink); font-size: clamp(1.25rem, 2.4vw, 1.65rem); letter-spacing: -.01em; line-height: 1.45; }
.download { background: var(--billet-selected); border-radius: 22px; display: grid; gap: 1rem; justify-items: center; padding: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.platforms { display: flex; gap: clamp(1.25rem, 4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.platforms li { align-items: center; color: var(--billet-ink2); display: grid; font-size: .82rem; gap: .4rem; justify-items: center; }
.platforms img { height: 22px; opacity: .8; width: 22px; }
@media (prefers-color-scheme: dark) {
  .platforms img { filter: invert(92%); }
}
.small { font-size: .85rem; }
.more-link { align-items: center; background: var(--billet-pane); border-radius: 999px; box-shadow: var(--shadow-pill); color: var(--billet-ink2); display: inline-flex; font-size: .9rem; gap: .45rem; justify-self: center; margin-top: calc(var(--gap) * -.6); min-height: 2.75rem; padding: 0 1.2rem; text-decoration: none; }
.more-link:hover { color: var(--billet-ink); }
/* Motion stays small: quick state changes, nothing pulses. */
@media (prefers-reduced-motion: no-preference) {
  .button, .step button, .view-switch button, .faq summary, .repo, .motion-caption a { transition: color .18s ease; }
  .faq details::details-content { transition: block-size .3s cubic-bezier(.2, .8, .2, 1), content-visibility .3s allow-discrete; }
  .faq summary svg { transition: rotate .3s cubic-bezier(.2, .8, .2, 1), stroke .18s ease; }
  .story.has-switched .story-stage picture:not([hidden]), .viewer.has-switched .view:not([hidden]) { animation: board-in .3s ease; }
}
@keyframes board-in { from { opacity: 0; } }
@media (max-width: 1000px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-stage { order: -1; position: static; }
  .files, .faq-pane, .closing, .install { grid-template-columns: minmax(0, 1fr); }
  .overlap { gap: 1rem; }
  .overlap > * { grid-area: auto; }
  .overlap picture, .overlap.is-right picture { margin: 0; }
  .overlap .pane { width: 100%; }
  .view figcaption, .find-copy { grid-template-columns: minmax(0, 1fr); }
  .title-strip { border-radius: 22px; padding: .9rem; }
  .title-strip h2 { padding-inline: .35rem; }
  .view-switch { width: 100%; }
}
@media (max-width: 640px) {
  .skills, .find { grid-template-columns: minmax(0, 1fr); }
  .install-folders ul { columns: 1; }
  .install-folders li strong { display: block; min-width: 0; }
  .view-switch kbd { display: none; }
  .shot { border-radius: 16px; }
  .motion-frame { border-radius: 22px; }
  .motion-head { padding-inline: .8rem; }
  .motion-screen { border-radius: 16px; }
  .motion-caption { padding-inline: .35rem; }
  .faq details p { padding-right: 0; }
  .actions { width: 100%; }
  .actions .button { flex: 1 1 100%; }
  .button.large { width: 100%; }
}
