/* Compendo Audit (body.audit). Between the site's header and footer, the page speaks the language of the diagnostic page
   whose screenshots it shows: the site's Garamond for text and its Metropolis for figures and labels, as in the screenshots,
   on paper and ink (and their dark pair, by the visitor's theme), with hairlines instead of frames. Colour only signals: red, a solid dot, a line to correct;
   orange, a hollow ring, a line to check; one scale of blue for density. Neither red nor orange is used to decorate. */
html:has(body.audit){color-scheme:light dark;background:#111b29}
.audit{
  --a-bg:#f3f4f1;--a-ink:#15181c;--a-muted:#5e656b;--a-rule:#d3d7d1;--a-red:#c2281d;--a-orange:#d9730d;
  --a-b1:#dae2e7;--a-b2:#c3d0dd;--a-b3:#a9c0d8;--a-b4:#7a9cc0;--a-b5:#4b76a5;--a-b6:#285486;
  --a-serif:var(--serif);--a-sans:var(--sans);
  --a-gutter:clamp(20px,5vw,108px);--a-edge:#c9cec8;--a-bar:#eceeea;--a-shade:#15181c59;
  --a-text:clamp(1rem,.2vw + .95rem,1.0625rem);
  background:var(--a-bg);color:var(--a-ink)
}
@media(prefers-color-scheme:dark){.audit{
  --a-bg:#14171a;--a-ink:#e8eae6;--a-muted:#9aa19f;--a-rule:#2e3438;--a-red:#ff6b5e;--a-orange:#f0a040;
  --a-edge:#3a4147;--a-bar:#1a1e22;--a-shade:#000000d9;--a-b1:#1a252f;--a-b2:#213345;--a-b3:#294663;--a-b4:#356088;--a-b5:#4b7fb0;--a-b6:#73a3d3
}}

/* The site's header, on its own dark band */
.a-masthead{background:url(/assets/dither-v2.png) 0 0/128px 128px,var(--panel);color:#f1f3f6}
.a-masthead .wordmark{font-size:clamp(2rem,1.5vw + 1.5rem,4rem)}

/* The page leaves the site's header and reaches its footer by degrees: under the header the header's blue thins into the
   paper, above the first line of text; at the foot the paper deepens into the footer's blue, below the last one. The steps
   in between ease the slopes: a straight blend reads as a band. */
.a-main{--a-rise:clamp(72px,9vw,150px);--a-fade:clamp(200px,26vw,400px);font-family:var(--a-sans);
  padding-block:calc(var(--a-rise) + clamp(4px,1vw,16px)) calc(var(--a-fade) + clamp(24px,3vw,48px));
  background:
    linear-gradient(to bottom,var(--panel),color-mix(in oklab,var(--a-bg) 55%,var(--panel)) 35%,color-mix(in oklab,var(--a-bg) 88%,var(--panel)) 70%,var(--a-bg)) top/100% var(--a-rise) no-repeat,
    linear-gradient(to bottom,var(--a-bg) calc(100% - var(--a-fade)),color-mix(in oklab,var(--a-bg) 82%,var(--panel)) calc(100% - var(--a-fade)*.7),color-mix(in oklab,var(--a-bg) 45%,var(--panel)) calc(100% - var(--a-fade)*.35),var(--panel))}
.a-main a:focus-visible,.a-pan:focus-visible{outline:2px solid var(--a-ink);outline-offset:4px}
.a-col{width:min(1180px,100% - var(--a-gutter)*2);margin-inline:auto}

/* Opening: the name over a hairline, as at the top of a diagnostic page; the question, then what the service does. */
.a-label{margin:0;padding-bottom:clamp(14px,1.4vw,20px);border-bottom:1px solid var(--a-rule);font:500 var(--a-text)/1.3 var(--a-sans)}
/* One column, flush left: the question, the sentence and the button start on the same edge as the screenshot under them. */
.a-open-side{margin-top:clamp(18px,2vw,30px)}
.a-open .a-lead{max-width:46ch}
.a-open h1{margin:clamp(8px,1.4vw,24px) 0 0;font:italic 400 clamp(2.875rem,4.4vw + 1.3rem,5rem)/1 var(--a-serif);letter-spacing:-.005em;text-wrap:balance}
.a-lead{margin:0;font:400 clamp(1.375rem,.6vw + 1.2rem,1.6875rem)/1.34 var(--a-serif);max-width:32ch}
.a-action{display:flex;align-items:center;flex-wrap:wrap;gap:14px 28px;margin:clamp(20px,2vw,30px) 0 0}
.a-button{display:inline-block;padding:.8em 1.35em;border-radius:2px;background:var(--a-ink);color:var(--a-bg);font:500 var(--a-text)/1.3 var(--a-sans);transition:opacity .2s}
.a-button:hover{opacity:.82}
.a-mail{color:var(--a-muted);font-size:var(--a-text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.a-mail:hover{color:var(--a-ink)}

/* Screenshots sit in a window of their own, lifted off the page and labelled: set flush on the same paper, a screenshot
   read as part of this page, and its tabs and links as things to click. The three dots are neutral: red and orange keep
   their meaning. */
.a-shot{margin:0}
.a-hero{margin-top:clamp(36px,5vw,76px)}
.a-frame{border:1px solid var(--a-edge);border-radius:10px;overflow:hidden;background:var(--a-bg);box-shadow:0 1px 2px #0000000f,0 28px 60px -28px var(--a-shade)}
.a-frame-bar{position:relative;display:flex;align-items:center;justify-content:center;min-height:2.5rem;margin:0;padding:.5rem 4.5rem;border-bottom:1px solid var(--a-edge);background:var(--a-bar);font-size:.8125rem;line-height:1.3;letter-spacing:.02em;color:var(--a-muted);text-align:center}
.a-dots{position:absolute;left:1rem;top:50%;width:.625rem;height:.625rem;margin-top:-.3125rem;border-radius:50%;background:var(--a-edge);box-shadow:1rem 0 var(--a-edge),2rem 0 var(--a-edge)}
.a-pan{overflow-x:auto;padding:clamp(10px,1.6vw,26px) clamp(4px,1.2vw,18px)}
.a-pan picture{display:block}
.a-pan img{display:block;max-width:none;width:100%;height:auto}
.a-hero figcaption{margin-top:clamp(18px,2vw,30px);padding-top:clamp(14px,1.4vw,20px);border-top:1px solid var(--a-rule);max-width:none;font-size:var(--a-text);line-height:1.6;color:var(--a-muted)}
.a-example{display:block;margin-top:.35em;color:var(--a-ink)}   /* what the reader must know before trusting a title */
.a-hint{display:none}

.a-section{margin-top:clamp(72px,9vw,136px)}
.a-section>h2,.a-ask h2{margin:0 0 clamp(26px,3vw,44px);font:400 clamp(2.125rem,1.8vw + 1.5rem,3rem)/1.1 var(--a-serif);text-wrap:balance}

/* What the publisher receives: four results, each under the sign the diagnostic page gives it. */
.a-get{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(28px,3vw,44px) clamp(24px,3vw,48px)}
.a-get li{border-top:1px solid var(--a-rule);padding-top:clamp(16px,1.6vw,22px)}
.a-mark{display:flex;align-items:center;gap:0;height:2.25rem;margin-bottom:.7rem}
.a-dot::before,.a-ring::before{content:"";width:1.125rem;height:1.125rem;border-radius:50%}
.a-dot::before{background:var(--a-red)}
.a-ring::before{border:.2rem solid var(--a-orange)}
.a-scale i{width:1.05rem;height:.8rem;background:var(--a-b1)}
.a-scale i:nth-child(2){background:var(--a-b2)}.a-scale i:nth-child(3){background:var(--a-b3)}.a-scale i:nth-child(4){background:var(--a-b4)}.a-scale i:nth-child(5){background:var(--a-b5)}.a-scale i:nth-child(6){background:var(--a-b6)}
.a-score{font:500 1.5rem/1 var(--a-sans);color:var(--a-muted)}
.a-get h3{margin:0 0 .4em;font:500 var(--a-text)/1.35 var(--a-sans)}
.a-get p,.a-view figcaption p{margin:0;font-size:var(--a-text);line-height:1.6;color:var(--a-muted)}

/* A second view: a title and a sentence, then the screenshot. */
.a-view{border-top:1px solid var(--a-rule);padding-top:clamp(18px,1.8vw,26px)}
.a-view figcaption{display:grid;grid-template-columns:1fr 1.3fr;gap:8px clamp(32px,6vw,96px);align-items:baseline;margin-bottom:clamp(24px,3vw,44px)}
.a-view h2{margin:0;font:400 clamp(1.5625rem,.8vw + 1.35rem,2rem)/1.2 var(--a-serif)}
.a-view figcaption p{max-width:56ch}

/* The faults it finds: six short statements, set as large as the page's lead. */
.a-section>h2:has(+.a-intro){margin-bottom:clamp(10px,1.2vw,16px)}
.a-intro{margin:0 0 clamp(28px,3.2vw,48px);max-width:56ch;font-size:var(--a-text);line-height:1.6;color:var(--a-muted)}
.a-finds{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0 clamp(24px,3vw,48px)}
.a-finds li{border-top:1px solid var(--a-rule);padding-block:clamp(16px,1.6vw,22px) clamp(22px,2.4vw,34px);font:400 clamp(1.25rem,.4vw + 1.15rem,1.4375rem)/1.3 var(--a-serif);text-wrap:balance}

/* The questions: the heading on the left, the answers on the right, under hairlines. */
.a-faq{display:grid;grid-template-columns:1fr 1.3fr;gap:clamp(24px,3vw,44px) clamp(32px,6vw,96px);align-items:start}
.a-faq>h2{margin:0}
.a-faq ul{list-style:none;margin:0;padding:0}
.a-faq li{border-top:1px solid var(--a-rule);padding-block:clamp(16px,1.6vw,22px)}
.a-faq li:last-child{padding-bottom:0}
.a-faq h3{margin:0 0 .4em;font:500 var(--a-text)/1.35 var(--a-sans)}
.a-faq p{margin:0;max-width:56ch;font-size:var(--a-text);line-height:1.6;color:var(--a-muted)}

/* The one thing to do */
.a-ask{display:grid;grid-template-columns:1.15fr 1fr;gap:20px clamp(32px,6vw,96px);align-items:start;border-top:1px solid var(--a-rule);padding-top:clamp(28px,3vw,48px)}
.a-ask h2{margin:0}
.a-also{margin:clamp(28px,3vw,44px) 0 0;font-size:var(--a-text)}
.a-also a{color:var(--a-muted);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.a-also a:hover{color:var(--a-ink)}

@media(max-width:900px){
  .a-ask,.a-faq,.a-view figcaption{grid-template-columns:1fr}
  .a-get,.a-finds{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  /* A phone cannot show a wide screenshot whole and legible: it is shown at a readable size, and slides sideways. */
  .a-pan img{width:58rem}
  .a-hint{display:block;margin-top:.35em;font-style:italic}
}
@media(max-width:520px){
  .a-get,.a-finds{grid-template-columns:1fr}
}
