/* even.matic.sh: one page in matic.sh's clothes. Tokens copied from matic.sh's E · Specimen; --quiet is for small
   text that has to pass AA on the page grey; --faint is for hairlines and separators, never text. No web fonts, no motion. */
:root { --page:#ededed; --ink:#141414; --soft:#707070; --faint:#9e9e9e; --rule:#cfcfcf; --quiet:#5c5c5c; --wash:#e3e3e3;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --bar: 52px; }
* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; color: var(--ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.mono, code, pre { font-family: var(--mono); }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; margin: 0; }
p { margin: 0; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 6px 10px; z-index: 20; }
.skip:focus { left: 8px; }

/* The bar: name, sections, GitHub. Small spaced mono labels, as on matic.sh. */
.bar { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--rule); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 0 28px; min-height: var(--bar); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-height: var(--bar); font: 12px/1 var(--mono); letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; }
.bar nav a, .gh { font: 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--quiet); text-decoration: none; padding: 6px 0; }
.gh { display: inline-flex; align-items: center; min-height: 44px; }
.bar nav a:hover, .gh:hover { color: var(--ink); text-decoration: underline; }
.bar nav .no { color: var(--quiet); margin-right: 8px; }
.bar nav .nsub { display: none; }
.gh { margin-left: auto; color: var(--ink); }
.menu { display: none; }

main { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: end; padding: 72px 0 8px; }
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; }
.hero .lede { font-size: 19px; line-height: 1.5; margin-top: 18px; max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { position: relative; display: inline-block; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; line-height: 1.3; text-decoration: none; }
/* A hit box of 44 px or more around a control that draws smaller. */
.btn::after, button.copy::after { content: ""; position: absolute; inset: -3px 0; }
.btn.ink { background: var(--ink); color: var(--page); }
/* By hand and GitHub wrap together, so GitHub is never alone on a line. */
.manual { margin-top: 12px; font-size: 15px; }
.manual a { color: var(--quiet); display: inline-block; padding: 12px 0; margin: -12px 0; }
.manual a:hover { color: var(--ink); }
.btn:hover { text-decoration: underline; text-decoration-color: currentColor; }
.counts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 11px; letter-spacing: .1em; color: var(--quiet); }
.counts li { white-space: nowrap; }
.counts li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--faint); }
.counts a { color: var(--quiet); text-decoration: none; }
.counts a:hover { color: var(--ink); text-decoration: underline; }
.by { margin-top: 10px; color: var(--quiet); font-size: 14px; }

/* The contents under the hero: a white card, the four sections in two columns on a wide screen, and under each
   section its subsections, indented, one hairline row each. */
.toc { margin-top: 72px; }
.toc h2 { font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--quiet); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc .toc-secs { margin-top: 12px; background: #fff; border-radius: 12px; padding: 26px 28px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; align-items: start; }
.ts-h { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "n t"; column-gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.ts-h .t { grid-area: t; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.ts ol { padding-left: 42px; }
.ts li { border-bottom: 1px solid #ececec; }
.ts li a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "n t c" "n d d"; column-gap: 12px; padding: 11px 0; text-decoration: none; }
.toc .n { grid-area: n; font-size: 11px; color: var(--quiet); }
.ts li .n { padding-top: 4px; }
.ts li .t { grid-area: t; font-size: 16px; }
.toc .d { grid-area: d; font-size: 14px; color: var(--quiet); margin-top: 2px; }
.toc .c { grid-area: c; font-size: 11px; letter-spacing: .08em; color: var(--quiet); padding-top: 4px; white-space: nowrap; }
.toc a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 860px) { .toc .toc-secs { grid-template-columns: minmax(0, 1fr); } .toc { margin-top: 48px; } }
@media (max-width: 640px) { .toc .toc-secs { padding: 20px 18px 10px; gap: 26px; } .ts ol { padding-left: 14px; } .ts-h { grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; } .ts li a { grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 10px; } }

/* A glasses frame: graphite on the page grey, in a hairline well. */
.glass { margin: 0; }
.glass img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); padding: 4%; background: var(--page); }
figcaption { margin-top: 10px; font-size: 11px; line-height: 1.5; letter-spacing: .06em; color: var(--quiet); }

/* Sections: an ink rule, a number and title, a lede. Subsections: a hairline, a smaller title, a label, a lede */
.sec { margin-top: 128px; padding-top: 22px; border-top: 1px solid var(--ink); }
.sub { margin-top: 88px; padding-top: 18px; border-top: 1px solid var(--rule); }
.sec > .lede + .sub { margin-top: 48px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.sh h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.sh h2 a { text-decoration: none; }
.sh h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.k { font: 11px/1.5 var(--mono); letter-spacing: .12em; color: var(--quiet); }
.sec > .lede { margin-top: 12px; max-width: 40em; font-size: 19px; line-height: 1.5; color: var(--ink); }
.sub > .lede, .sub noscript .lede { margin-top: 10px; max-width: 44em; font-size: 17px; color: var(--ink); }
.sh h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; font-weight: 400; }
.sh h3 a { text-decoration: none; }
.sh h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.more-link { margin-top: 28px; color: var(--quiet); font-size: 14px; max-width: 48em; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.use { margin-top: 6px; color: var(--quiet); font-size: 14.5px; line-height: 1.5; }
code { font-size: .86em; background: var(--wash); padding: .1em .3em; border-radius: 3px; overflow-wrap: anywhere; }
pre { margin: 14px 0 0; padding: 12px 14px; background: var(--wash); border-radius: 3px; overflow-x: auto; font-size: 12px; line-height: 1.55; tab-size: 2; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.src { margin-top: 8px; font-size: 11px; letter-spacing: .04em; color: var(--quiet); }
.src a { color: var(--quiet); }

/* Glasses UI: a picture beside its code */
.specs { margin-top: 32px; border-top: 1px solid var(--rule); }
.spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.pic, .about { margin: 0; min-width: 0; }
.well { width: fit-content; max-width: 100%; border: 1px solid var(--rule); padding: 18px; }
.well.full { width: 100%; padding: 4%; }
.well svg { display: block; max-width: 100%; height: auto; }
.well.full svg { width: 100%; }
.well svg.px { shape-rendering: crispEdges; }
.pic .tw { margin-top: 18px; }
table.mini { font-size: 13px; }

/* Phone UI: live parts in a grid */
.parts { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.part { min-width: 0; display: flex; flex-direction: column; }
.part h4 { margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.static { font-size: 10px; font-weight: 400; letter-spacing: .12em; color: var(--quiet); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; }
.ph { min-height: 56px; }
.said { min-height: 1.6em; margin-top: 8px; font-size: 11px; letter-spacing: .04em; color: var(--quiet); }
.call { margin-top: 6px; font-size: 11px; color: var(--quiet); overflow-wrap: anywhere; }

.demo-pics { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 576px) minmax(0, 300px); justify-content: space-between; gap: 48px; align-items: start; }
.phone-shot { margin: 0; }
.phone-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 14px; }
.cols { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Tools: code, then what it printed */
.tool { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.tool:first-of-type { margin-top: 28px; border-top: 1px solid var(--rule); }
.io { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; margin-top: 6px; }
.io .k { margin-top: 14px; }
pre.out { margin-top: 6px; background: none; border-left: 2px solid var(--ink); border-radius: 0; padding: 4px 0 4px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Rows that open: findings and probes */
.topics { margin-top: 20px; font-size: 11px; letter-spacing: .08em; color: var(--quiet); }
.topics a { color: var(--ink); }
.topics .n, .tg-head .n { color: var(--quiet); font-weight: 400; font-size: 11px; letter-spacing: .06em; }
.topic-group { margin-top: 40px; }
.tg-head { padding-bottom: 10px; }
.tg-head p { margin-top: 4px; color: var(--quiet); font-size: 14.5px; max-width: 44em; }
details.f { border-top: 1px solid var(--rule); }
details.f:last-of-type { border-bottom: 1px solid var(--rule); }
details.f > summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; gap: 16px; align-items: baseline; padding: 11px 0; cursor: pointer; list-style: none; }
details.probe > summary { grid-template-columns: 56px minmax(0, 1fr) auto 16px; }
details > summary::-webkit-details-marker { display: none; }
details.f > summary::after, details.more > summary::after { content: "+"; font: 14px/1 var(--mono); color: var(--quiet); text-align: right; }
details[open].f > summary::after, details[open].more > summary::after { content: "−"; }
.hid, a.topic { position: relative; }
.hid::after, a.topic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.hid { font-size: 12px; letter-spacing: .08em; color: var(--quiet); text-decoration: none; }
.hid:hover { color: var(--ink); text-decoration: underline; }
.claim { font-size: 16px; line-height: 1.45; }
.topic { font-size: 11px; letter-spacing: .08em; color: var(--quiet); text-align: right; }
a.topic { color: var(--quiet); }
details.f > .md { padding: 2px 0 26px 72px; max-width: calc(44em + 72px); }
.open-note { margin-top: 16px; padding: 12px 0 0 72px; color: var(--quiet); font-size: 14.5px; }
.open-note .k { margin-bottom: 4px; }
details.more { border-top: 1px solid var(--rule); }
details.more > summary { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 15.5px; }
details.more > .md { padding: 0 0 24px; max-width: 46em; }
.setup { margin-top: 20px; }
.setup + .topic-group { margin-top: 32px; }
.guide, #plugin > details.more, #contribute > details.more:first-of-type { margin-top: 32px; }
.guide details.more:last-child, #contribute details.more:last-child, .lesson details.more:last-child, #plugin > details.more { border-bottom: 1px solid var(--rule); }

/* Review, probes, the probe, start */
.lessons { margin-top: 28px; }
.lesson { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 4px 40px; padding: 26px 0; border-top: 1px solid var(--rule); }
.lesson > .md, .lesson > details { grid-column: 2; }
.lesson > h4 { grid-row: 1 / span 9; }
.lesson > details.more:first-of-type { margin-top: 14px; }
.probes-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); margin-top: 28px; }
.probe-top { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); margin-top: 24px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li p:not(.k) { margin-top: 4px; color: var(--quiet); max-width: 44em; }
.steps pre { max-width: 44em; }
.lede-md { margin-top: 12px; max-width: 44em; font-size: 17px; }

/* Markdown from the repo */
.md { min-width: 0; font-size: 15px; line-height: 1.6; }
.md > :first-child { margin-top: 0; }
.md p, .md ul, .md ol { margin: 10px 0 0; }
.md ul, .md ol { padding-left: 1.3em; }
.md li + li { margin-top: 3px; }
.md li > ul, .md li > ol { margin-top: 3px; }
.md h4 { margin-top: 24px; font-size: 15.5px; }
.md h5, .md h6 { margin-top: 22px; font-size: 15px; font-weight: 600; }
.md strong { font-weight: 600; }
.md pre { margin-top: 12px; }
.tw { margin-top: 12px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.45; }
th { font: 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--quiet); text-align: left; padding: 0 14px 7px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td code { white-space: nowrap; overflow-wrap: normal; }

.foot { max-width: 1120px; margin: 104px auto 0; padding: 18px 28px 44px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; color: var(--quiet); font-size: 13px; }
.foot::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--rule); margin-bottom: 18px; }
.foot .labels { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: .12em; }
.foot .labels a { color: var(--quiet); text-decoration: none; }
.foot .labels a:hover { color: var(--ink); text-decoration: underline; }

/* Narrower screens */
@media (max-width: 1000px) {
  html.js .menu { display: flex; align-items: center; gap: 10px; margin-left: auto; min-height: var(--bar); background: none; border: 0; padding: 0; font-size: 11px; letter-spacing: .12em; color: var(--ink); cursor: pointer; }
  .menu i, .menu i::before, .menu i::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .menu i::before, .menu i::after { content: ""; position: absolute; left: 0; }
  .menu i::before { top: -5px; }
  .menu i::after { top: 5px; }
  .bar-in { flex-wrap: wrap; gap: 0 20px; }
  html.js .gh { margin-left: 0; order: 2; }
  html.js .menu { order: 1; }
  html.js .bar nav { display: none; order: 3; flex-basis: 100%; }
  html.js.menu-open .bar nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 18px; padding: 4px 0 14px; }
  html.js.menu-open .bar nav a { display: block; min-height: 44px; padding: 13px 0; font-size: 12px; }
  html.js.menu-open .bar nav .ns { color: var(--ink); }
  html.js.menu-open .bar nav .nsub { display: block; }
  html.js.menu-open .bar nav .nsub a { display: grid; grid-template-columns: 32px minmax(0, 1fr); padding-left: 12px; }
  html.js.menu-open .bar nav .nsub .no { margin-right: 0; }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero, .spec, .cols, .io, .demo-pics, .probes-cols, .probe-top, .lesson { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 36px; padding-top: 48px; }
  .hero-glass { max-width: 460px; }
  .demo-pics .phone-shot { max-width: 300px; }
  .lesson > .md, .lesson > details { grid-column: 1; }
  .lesson > h4 { grid-row: auto; }
  .sec { margin-top: 104px; }
  .sub { margin-top: 72px; }
}
@media (max-width: 640px) {
  main, .bar-in { padding-left: 20px; padding-right: 20px; }
  .foot { padding-left: 20px; padding-right: 20px; flex-direction: column; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 17px; }
  .sh h2 { font-size: 26px; }
  .sh h3 { font-size: 20px; }
  .sec > .lede { font-size: 17px; }
  .parts { grid-template-columns: minmax(0, 1fr); }
  .well { padding: 12px; }
  details.f > summary { grid-template-columns: 44px minmax(0, 1fr) 14px; gap: 10px; }
  details.probe > summary { grid-template-columns: 44px minmax(0, 1fr) auto 14px; }
  details.f > .md, .open-note { padding-left: 0; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sec { margin-top: 64px; }
  .sub { margin-top: 44px; }
  .sec > .lede + .sub { margin-top: 32px; }
}

/* Section numbers that match the contents. */
.sh h2 .no { display: inline-block; font-size: 13px; letter-spacing: .08em; color: var(--quiet); margin-right: 14px; vertical-align: .5em; }
.sh h3 .no { display: inline-block; font-size: 12px; letter-spacing: .06em; color: var(--quiet); margin-right: 12px; vertical-align: .25em; }

.toc + .sec { margin-top: 120px; }

/* With script, the bar is hidden on landing and comes in once the hero has scrolled away. Its links stay in the
   tab order, so a Tab past the skip link brings it in. */
html.js .bar { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-100%); transition: transform .16s ease; }
html.js.bar-on .bar, html.js.menu-open .bar, html.js .bar:focus-within { transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .bar { transition: none; } }

/* AI: the skills, the plugin, and setup text to copy */
.skills { margin-top: 28px; border-top: 1px solid var(--rule); }
.skill { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.skill .name { font-size: 14px; }
.skill .what > p:first-child { font-size: 16px; line-height: 1.45; }
.topics-line { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--quiet); }
.topics-line .sep, .links .sep { color: var(--faint); }
.skill .call { font-size: 11px; color: var(--quiet); white-space: nowrap; }
.ways { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.way { padding: 20px 0; border-top: 1px solid var(--rule); min-width: 0; }
.way p { margin-top: 4px; color: var(--quiet); font-size: 14.5px; }
.way pre { margin-top: 12px; }
.copybox { margin-top: 28px; max-width: 820px; border: 1px solid var(--rule); border-radius: 6px; background: var(--wash); }
.cb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--rule); }
pre.setup { margin: 0; max-height: 26em; overflow: auto; background: none; border-radius: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.6; }
.links { margin-top: 16px; font-size: 15px; color: var(--quiet); }
.links a { font-size: 13.5px; }
.prompts-h { margin-top: 40px; }
.prompts { list-style: none; margin: 12px 0 0; padding: 0; max-width: 820px; border-top: 1px solid var(--rule); }
.prompts li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.prompts .n { font-size: 11px; color: var(--quiet); }
.prompt { font-size: 15px; line-height: 1.45; }
button.copy { position: relative; font: 11px/1 var(--mono); letter-spacing: .1em; color: var(--page); background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 8px 14px; min-width: 72px; min-height: 32px; cursor: pointer; }
button.copy.sm { color: var(--ink); background: none; border-color: var(--faint); padding: 6px 10px; min-width: 64px; min-height: 30px; }
button.copy::after { inset: -7px 0; }
button.copy.sm::after { inset: -8px 0; }
button.copy:hover { text-decoration: underline; }
button.copy.sm:hover { border-color: var(--ink); }
html:not(.js) button.copy { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 860px) {
  .skill { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .prompts li { grid-template-columns: minmax(0, 1fr) auto; }
  .toc + .sec { margin-top: 64px; }
  .prompts .n { display: none; }
}
