/* Lem's page on GitHub Pages. The look is the board's (skills/lem/assets/lem.css): its six hues
   with the same values, its round boxes and the system type. The page follows the visitor's theme,
   light or dark, and has no switch: the background and the text are the browser's Canvas and
   CanvasText, warmed with the ochre of the logo, and every other color is a mix of these. */
:root {
  color-scheme: light dark;
  --lead: #33a6a0;
  --lem: #9a5d9e;
  --you: #b4902e;
  --bad: #ae4022;
  --gate: #3d73b6;
  --ok: #629742;
  --bg: color-mix(in srgb, var(--you) 5%, Canvas);
  --fg: color-mix(in srgb, CanvasText 90%, Canvas);
  --card: color-mix(in srgb, var(--fg) 4.5%, var(--bg));
  --card-hi: color-mix(in srgb, var(--fg) 8%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--fg) 22%, transparent);
  --dim: color-mix(in srgb, var(--fg) 64%, var(--bg));
  --faint: color-mix(in srgb, var(--fg) 46%, var(--bg));
  --you-ink: color-mix(in srgb, var(--you) 58%, var(--fg));
  --lem-ink: color-mix(in srgb, var(--lem) 58%, var(--fg));
  --link: color-mix(in srgb, var(--gate) 62%, var(--fg));
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main, footer { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--mono); font-size: .9em; }
p code, li code { padding: 1px 6px; border-radius: 6px; background: var(--card-hi); border: 1px solid var(--line); white-space: nowrap; }
b { font-weight: 650; }
:focus-visible { outline: 2px solid var(--gate); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- the opening: the logo, the line and the install, all in the first screen ---- */
.opening { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0 72px; }
.top { align-self: stretch; display: flex; justify-content: flex-end; gap: 26px; padding: 22px 0 30px; font-size: 14px; }
.top a { color: var(--dim); text-decoration: none; }
.top a:hover { color: var(--fg); }
.logo { margin: 0 0 30px; line-height: 0; }
.logo img { display: block; width: 560px; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--you) 45%, transparent); }
.lead { margin: 0; max-width: 23em; font-size: 31px; line-height: 1.25; font-weight: 700; letter-spacing: -.018em; text-wrap: balance; }
.sub { margin: 14px 0 0; max-width: 38em; font-size: 17px; color: var(--dim); text-wrap: balance; }
.opening .install { margin-top: 26px; }
.needs { margin: 14px 0 0; font-size: 14px; color: var(--dim); }
.needs code { font-size: 13px; }

/* the two install lines, each with its copy button */
.install {
  width: 100%; max-width: 640px; text-align: left;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.cmd { display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border-radius: 9px; }
.cmd:hover { background: var(--card-hi); }
.cmd code { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.cmd code::before { content: "$ "; color: var(--you-ink); user-select: none; }
.copy {
  flex: none; font: inherit; font-size: 12px; font-weight: 600; line-height: 1; color: var(--dim); cursor: pointer;
  padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg);
}
.copy:hover { color: var(--fg); border-color: color-mix(in srgb, var(--you) 60%, transparent); }

/* ---- the sections after it ---- */
section + section { border-top: 1px solid var(--line); padding: 84px 0; }
.eyebrow { margin: 0 0 10px; font: 650 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--you-ink); }
h2 { margin: 0 0 14px; font-size: 32px; line-height: 1.2; font-weight: 720; letter-spacing: -.018em; }
.intro { margin: 0 0 30px; max-width: 46em; font-size: 17px; color: var(--dim); }
.text p { margin: 0 0 14px; max-width: 40em; }
.text p:last-child { margin-bottom: 0; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 34px; }

/* the diagram: one row for each track, in seven columns, so that both rows end at one pull request and one merge */
.flow { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px 18px; display: flex; flex-direction: column; gap: 18px; }
.track { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; }
.track h3 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--dim); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px; }
.fast .step:nth-child(2) { grid-column: span 3; }
.step {
  position: relative; min-height: 62px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; justify-content: center; gap: 1px; font-size: 14px; line-height: 1.3;
}
.step b { font-weight: 640; }
.step span { color: var(--dim); font-size: 12.5px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -19px; width: 14px; height: 1.5px; background: var(--faint);
}
.step:not(:last-child)::before {
  content: ""; position: absolute; top: calc(50% - 3.25px); right: -20px; width: 5px; height: 5px;
  border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg);
}
.step.you { border-color: color-mix(in srgb, var(--you) 70%, transparent); background: color-mix(in srgb, var(--you) 13%, var(--bg)); }
.step.you b { color: var(--you-ink); }
.legend { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--you); }

/* an example dialog, as in the README: who speaks, and what */
.dialog { margin: 0; }
.msgs { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.msg { margin: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.sub-msg { margin-top: -6px; }
.who { font-weight: 700; }
.who.you { color: var(--you-ink); }
.who.lem { color: var(--lem-ink); }
.dialog figcaption, .shot figcaption, .showcase figcaption { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--faint); }

/* the three points */
.points { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: point; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.points li {
  counter-increment: point; position: relative; padding: 20px 20px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
}
.points li::before {
  content: counter(point); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--bg); background: color-mix(in srgb, var(--you) 78%, var(--fg));
}
.points b { font-size: 17px; line-height: 1.3; }
.points span { color: var(--dim); font-size: 15px; }

/* the board's pictures: a computer and a phone side by side, at one height. The phone's column is
   the share of the computer's that gives both frames the same height (390/844 against 1440/900, with the phone's 6 px bezel). */
.showcase { margin: 56px 0 0; align-self: stretch; }
.screens {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .2967fr); gap: 22px; align-items: end;
  width: min(1240px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%);
}
.frame {
  overflow: hidden; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card);
  box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--fg) 50%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--fg) 12%, transparent);
}
.frame img { display: block; width: 100%; height: auto; }
.frame.hand { border-radius: 28px; border: 6px solid #1c1c1c; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 70px -34px color-mix(in srgb, var(--fg) 50%, transparent); }
.showcase figcaption { text-align: center; margin-top: 18px; }

/* the four views, each with the mark of its actor as on the board */
.views { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.views li { --c: var(--lead); padding: 16px 18px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--c); display: flex; flex-direction: column; gap: 4px; }
.views .v-you { --c: var(--you); }
.views .v-backlog { --c: var(--gate); }
.views .v-activity { --c: var(--lem); }
.views b { font-size: 16px; }
.views span { color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.tabs-line { margin: 18px 0 0; color: var(--dim); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--fg); font-size: 13px; line-height: 1.6; white-space: nowrap; }

/* the two example dialogs, one over the other */
.dialogs { display: flex; flex-direction: column; gap: 22px; }

/* the phone: what it gives, and the setup in a card */
.phone-cols { margin-top: 10px; align-items: stretch; }
.phone-cols .intro { margin-bottom: 18px; color: var(--fg); font-size: 19px; line-height: 1.5; }
.note { color: var(--dim); font-size: 15px; }
.setup { padding: 22px 24px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.setup ol { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.setup li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; }
.setup li::before {
  content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--bg); background: color-mix(in srgb, var(--you) 78%, var(--fg));
}
.setup .more { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--dim); }

/* many tasks at once: three cards, then the verdict of a pull request beside a task's picture */
.cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards li { padding: 18px 20px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cards b { font-size: 16.5px; line-height: 1.3; }
.cards span { color: var(--dim); font-size: 15px; }
.verdict { margin-top: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.verdict h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.reasons { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.reasons li { position: relative; padding-left: 20px; color: var(--dim); }
.reasons li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.verdict .text p:last-child { font-weight: 650; }
.verdict .text p:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.shot { margin: 0; }
/* the task's picture, cut to its panel: from 61.5% to the right edge, and from 5% to 76% of its
   height. The picture is 1440 x 900, so its width is 1 / 0.385 of the frame's, and its height 0.625 of that. */
.frame.crop { aspect-ratio: 1 / 1.152; }
.frame.crop img { width: 259.7%; max-width: none; margin-left: -159.7%; margin-top: -8.1%; }

/* the main tools */
.tools { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 3px 11px; border-radius: 999px; background: var(--card-hi); border: 1px solid var(--line); font-size: 14px; }
.tools .optional { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--dim); }

/* the install again */
#install .install { margin-bottom: 26px; }

/* the footer */
footer { border-top: 1px solid var(--line); padding-top: 44px; padding-bottom: 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }
.repo { margin: 0; font-size: 15px; }

/* a narrow window: the columns stack, and each track reads from top to bottom */
@media (max-width: 1100px) {
  .views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  main, footer { padding: 0 20px; }
  .lead { font-size: 25px; }
  h2 { font-size: 26px; }
  .top { flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
  .columns, .points, .cards, .verdict { grid-template-columns: minmax(0, 1fr); }
  .track { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fast .step:nth-child(2) { grid-column: auto; }
  .step { min-height: 0; }
  .step:not(:last-child)::after { top: auto; right: auto; bottom: -13px; left: 24px; width: 1.5px; height: 10px; }
  .step:not(:last-child)::before { top: auto; right: auto; bottom: -14px; left: 21.75px; transform: rotate(135deg); }
  .verdict { margin-top: 40px; }
}
/* a phone: the phone's picture first and alone at a size to read, then the computer's */
@media (max-width: 640px) {
  .screens { width: auto; margin-left: 0; transform: none; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .frame.hand { order: -1; width: min(280px, 78%); justify-self: center; }
  .views { grid-template-columns: minmax(0, 1fr); }
  .install .cmd code { font-size: 13px; }
}
