/* /start: the free files page for the "Stop Retyping" reel. Builds on site.css (tokens, .hl, .btn, nav, footer). */

.start { padding: 120px 0 clamp(60px, 8vw, 110px); }
.start h1 { font-size: clamp(40px, 7.4vw, 104px); line-height: .96; letter-spacing: -.045em; margin: 20px 0 22px; max-width: 13ch; }
.start h2 { font-size: clamp(30px, 4.2vw, 56px); margin-bottom: clamp(20px, 3vw, 32px); }
.start .lead { font-size: clamp(18px, 1.5vw, 21px); opacity: .84; max-width: 58ch; }
.start code { font-family: var(--mono); font-weight: 600; font-size: .9em; font-variant-ligatures: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .note { color: var(--muted); }
.note { font-size: 16px; margin-top: 12px; }

/* the sentence */
.sentence { margin-top: clamp(28px, 4vw, 44px); background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); max-width: 900px; }
.label { font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#sentence { margin: 14px 0 22px; font: 600 clamp(17px, 1.7vw, 22px)/1.55 var(--mono); color: var(--paper); font-variant-ligatures: none; }
#sentence .gt { color: var(--lime); }

/* downloads */
.downloads { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.dl { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: center; height: 100%;
      padding: 20px 22px; border-radius: 20px; text-decoration: none; background: var(--lime); color: var(--ink); border: 2px solid var(--lime);
      transition: background-color .2s, border-color .2s; }
.dl svg { grid-row: span 2; width: 34px; height: 34px; }
.dl strong { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.dl span { font: 600 13px/1.4 var(--mono); opacity: .75; }
.dl em { font-style: normal; }
.dl:hover { background: var(--paper); border-color: var(--paper); }
.dl-alt { background: var(--ink-2); color: var(--paper); border-color: var(--line); }
.dl-alt svg { color: var(--lime); }
.dl-alt em { color: var(--lime); }
.dl-alt:hover { background: var(--ink-3); border-color: var(--lime); }

/* steps */
.how { margin-top: clamp(64px, 9vw, 120px); }
.runsteps { display: grid; gap: 10px; max-width: 900px; }
.runsteps > li { display: flex; gap: 18px; padding: clamp(18px, 2.4vw, 26px); border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
.runsteps .n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 600 15px var(--mono); background: var(--lime); color: var(--ink); }
.runsteps > li > div { min-width: 0; flex: 1; }
.runsteps p { margin-top: 8px; }
.runsteps p.note { margin-top: 10px; }
.ticks { margin-top: 8px; display: grid; gap: 6px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }

.code { position: relative; margin-top: 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.code code { display: block; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.code:has(.mini) code { padding-right: 76px; }
.code .ps { color: var(--muted); }
.mini { position: absolute; top: 10px; right: 10px; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--lime);
        background: transparent; color: var(--lime); font: 600 13px var(--mono); cursor: pointer; }
.mini:hover { background: var(--lime); color: var(--ink); }

/* answer key */
.key { margin-top: clamp(64px, 9vw, 120px); }
.keygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 900px; border: 2px solid var(--lime); border-radius: 22px; overflow: hidden; }
.keygrid > div { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.keygrid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.keygrid > div:nth-last-child(-n+2) { border-bottom: 0; }
.keygrid dt { font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.keygrid dd { font-size: 17px; line-height: 1.55; }
.keygrid code { overflow-wrap: anywhere; }

.fine { margin-top: clamp(40px, 6vw, 64px); }
.fine p { max-width: 900px; color: var(--muted); font-size: 16px; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(244, 242, 234, .25); }
.fine strong { color: var(--paper); }
.tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; }

.more { margin-top: clamp(64px, 9vw, 120px); }
.more p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 52ch; }
.more .cta { margin-top: 24px; }

@media (max-width: 720px) {
  .start { padding-top: 100px; }
  .downloads, .keygrid { grid-template-columns: 1fr; }
  .keygrid > div:nth-child(odd) { border-right: 0; }
  .keygrid > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .runsteps > li { gap: 14px; }
  .runsteps .n { width: 30px; height: 30px; font-size: 14px; }
  .copy { width: 100%; }
}
