/* Manrope is shared with the landing page, which serves it from the site root. */
@font-face{font-family:"Manrope";font-style:normal;font-weight:400 800;font-display:swap;src:url("/fonts/manrope-latin.woff2") format("woff2")}

/* Colors come from the icon: its green for the page, its pencil yellow for anything to click. */
:root{--forest:#0e4237;--leaf:#0a7560;--pencil:#f2cf5b;--paper:#f5f7f2;--mist:#c9dcd3;color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:var(--forest);color:#fff;font:16px/1.5 Manrope,"Segoe UI",system-ui,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
.sprites{position:absolute;width:0;height:0;overflow:hidden}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.brand{display:flex;align-items:center;gap:12px;width:min(960px,100% - 32px);margin:0 auto;padding-top:26px;font-weight:700;letter-spacing:-.01em}
.brand img{border-radius:8px}
main{width:min(960px,100% - 32px);margin:0 auto;padding:clamp(24px,5vh,52px) 0 64px;text-align:center}

/* The script sets the mode from the toolbar pin state; nothing shows until it does. */
.step{display:none}
[data-mode="pin"] .step-pin,[data-mode="usage"] .step-use,[data-mode="guide"] .step{display:block}
[data-mode="guide"] .step+.step{margin-top:112px}

h2{margin:0;font-size:clamp(36px,5.2vw,60px);line-height:1.04;letter-spacing:-.04em;font-weight:800;text-wrap:balance}
.moves{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 40px;margin:26px 0 34px;padding:0;list-style:none;font-size:18px;font-weight:650;color:#e6f0eb}
.moves li{display:flex;align-items:center;gap:12px;text-align:left}
.num{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--pencil);color:var(--forest);font-size:19px;font-weight:800}
.key{display:inline-grid;place-items:center;width:30px;height:30px;margin:0 3px;border-radius:8px;background:var(--paper);color:#5f6368;vertical-align:middle}
.key svg{width:20px;height:20px}
.moves strong{font-weight:800;color:#fff}

/* Two ways to edit. Each choice is a plain link to its own steps further down. */
.ways-lead{margin:20px 0 0;font-size:18px;font-weight:650;color:#e6f0eb}
.ways{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:760px;margin:22px auto 0}
.way-link{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 14px;padding:18px 20px 18px 24px;border-radius:14px;background:var(--pencil);color:var(--forest);text-align:left;text-decoration:none}
.way-link:hover{background:#f7dd85}
.way-link:focus-visible,.swap a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.way-link strong{font-size:20px;line-height:1.25;font-weight:800;letter-spacing:-.02em}
.way-link span{grid-column:1;font-size:15px;font-weight:600}
.way-link svg{grid-column:2;grid-row:1/span 2;width:26px;height:26px}
.way{margin-top:88px;scroll-margin-top:24px}
/* Tall enough that a jump to the last way lands with its heading at the top, like the first. */
.way:last-child{min-height:calc(100svh - 88px)}
h3{margin:0;font-size:clamp(28px,3.6vw,40px);line-height:1.1;letter-spacing:-.03em;font-weight:800;text-wrap:balance}
.swap{margin:24px 0 0;color:var(--mist);font-size:16px}
.swap+.swap{margin-top:6px}
.swap a{color:var(--pencil);font-weight:700;text-underline-offset:3px}

.shot{margin:0 auto;max-width:clamp(560px,(100svh - 300px) * var(--ratio),960px)}
.shot>svg{display:block;width:100%;height:auto;overflow:visible;font-family:system-ui,"Segoe UI",sans-serif;filter:drop-shadow(0 28px 50px rgb(0 0 0/.28))}

/* Browser drawing */
.t-tab{font-size:14px;fill:#3c4a44}
.t-url{font-size:14px;fill:#5b6b64}
.t-x{fill:none;stroke:#7b8a83;stroke-width:1.8;stroke-linecap:round}
.t-title{font-size:18px;font-weight:700;fill:#1f2a26}
.t-row{font-size:15.5px;font-weight:600;fill:#1f2a26}
.t-quiet{font-size:14px;fill:#3c4a44}
.t-menu{font-size:14.5px;fill:#2b3833}
.t-strong{font-weight:700}
.t-panel{font-size:13px;font-weight:600;fill:#3c4a44}
.t-site{font-size:16px;font-weight:700;fill:#16241f}
.t-link{font-size:13px;font-weight:600;fill:#0a7560}
.t-save{font-size:14.5px;font-weight:700;fill:#fff}
.t-small{font-size:12.5px;fill:#5b6b64}
.t-pick{font-size:13px;font-weight:600;fill:#0a7560}
.t-dark{fill:#16241f}
.t-headline{font-size:26px;font-weight:800;letter-spacing:-.02em;fill:#16241f}
.t-code{font:12px ui-monospace,Consolas,monospace;fill:#0a7560}

/* Callouts: yellow arrows and numbers */
.callout{filter:url(#outline)}
.ring{fill:none;stroke:var(--pencil);stroke-width:5}
.shaft path,.head path{fill:none;stroke:var(--pencil);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.badge circle{fill:var(--pencil)}
.badge text{fill:var(--forest);font:800 26px Manrope,"Segoe UI",sans-serif;text-anchor:middle;dominant-baseline:central}

.live{display:none;align-items:center;justify-content:center;gap:10px;margin:30px 0 0;color:var(--mist);font-size:15px}
[data-mode="pin"] .live{display:flex}
.live::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--pencil)}
.pinned{display:none;align-items:center;gap:7px;margin:0 0 18px;padding:6px 15px 6px 10px;border-radius:999px;background:rgb(242 207 91/.14);color:var(--pencil);font-size:15px;font-weight:700}
[data-mode="usage"] .pinned{display:inline-flex}
.pinned svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:700px){
  .brand{font-size:15px;padding-top:20px}
  .moves{flex-direction:column;align-items:flex-start;width:fit-content;margin-inline:auto;font-size:17px}
  .ways{grid-template-columns:1fr}
  .way{margin-top:64px}
  /* On narrow screens zoom in on the right side, where the clicks happen. */
  .crop{overflow:hidden;border-radius:14px}
  .crop>svg{width:165%;margin-left:-65%;filter:none}
}

/* Arrows draw in the order they should be followed, starting once their picture is on screen. The script marks that with .seen. */
[data-mode] .shot:not(.seen) .callout *{animation-play-state:paused}
@media(prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .shaft path{stroke-dasharray:1 2;animation:draw .5s cubic-bezier(.6,0,.3,1) var(--t) both}
  .head{animation:appear .15s calc(var(--t) + .45s) both}
  .ring{animation:appear .3s calc(var(--t) + .4s) both}
  .badge{transform-box:fill-box;transform-origin:center;animation:pop .4s cubic-bezier(.3,1.6,.5,1) var(--t) both}
  .live::before{animation:breathe 2.4s ease-in-out infinite}
  .pinned{animation:pop .45s cubic-bezier(.3,1.6,.5,1) both}
  /* Starting just past the dash keeps its round cap from showing as a dot before the arrow draws. */
  @keyframes draw{from{stroke-dashoffset:1.05}to{stroke-dashoffset:0}}
  @keyframes appear{from{opacity:0}}
  @keyframes pop{from{opacity:0;transform:scale(.4)}}
  @keyframes breathe{50%{opacity:.35}}
}
