/* Kym Bledsoe Creative
   One idea carries the look: Kym's own wordmark, a slab serif printed with the
   cyan and red plates knocked slightly out of register. Everything else stays
   quiet so the work does the talking.
   Colour pairs are held at 7:1 or better (WCAG 1.4.6). */

/* Headline face as two static weights, each with a WOFF fallback: the most widely
   supported way to ship it, including older and locked-down Safari engines. */
@font-face{font-family:"Josefin Slab";src:url("fonts/josefin-slab-700.woff2") format("woff2"),url("fonts/josefin-slab-700.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Josefin Slab";src:url("fonts/josefin-slab-300.woff2") format("woff2"),url("fonts/josefin-slab-300.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("fonts/atkinson-next.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("fonts/atkinson-next-italic.woff2") format("woff2");font-weight:200 800;font-style:italic;font-display:swap}

/* Fallbacks matched in width to the real fonts, so text does not reflow when they arrive. */
@font-face{font-family:"KB text fallback";src:local("Arial"),local("Liberation Sans"),local("Helvetica");size-adjust:99.3%}
@font-face{font-family:"KB display fallback";src:local("Times New Roman Bold"),local("Times New Roman"),local("Liberation Serif Bold"),local("Liberation Serif"),local("Times");size-adjust:101%}

:root{
  color-scheme:light dark;
  --paper:#ffffff;
  --ink:#000000;
  --quiet:#3d3d3d;          /* secondary text, 10.9:1 on paper */
  --link:#00376b;           /* 12.1:1 on paper */
  --wash:#eef3f6;           /* panel behind artwork */
  --rule:#000000;
  --cyan:#00aeef;           /* plates: decoration only, never text */
  --red:#ef3b24;
  --plate-c:rgba(0,174,239,.5);
  --plate-r:rgba(239,59,36,.45);
  --display:"Josefin Slab","KB display fallback","Times New Roman",Times,serif;
  --text:"Atkinson Hyperlegible Next","KB text fallback",Arial,Helvetica,sans-serif;
  --measure:62ch;
  --gutter:clamp(1rem,2.5vw,2.5rem);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#000000;--ink:#ffffff;--quiet:#d0d0d0;--link:#a9d8ff;--wash:#16191b;--rule:#ffffff;
    --plate-c:rgba(0,174,239,.6);--plate-r:rgba(239,59,36,.62);
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#000000;--ink:#ffffff;--quiet:#d0d0d0;--link:#a9d8ff;--wash:#16191b;--rule:#ffffff;
  --plate-c:rgba(0,174,239,.6);--plate-r:rgba(239,59,36,.62);
}
:root[data-theme="light"]{color-scheme:light}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-block:1rem}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--text);font-size:1rem;line-height:1.5;overflow-wrap:break-word}
@media (min-width:110em){body{font-size:1.125rem}}
img{max-width:100%;height:auto;display:block;aspect-ratio:var(--w)/var(--h)}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.1;margin:0;text-wrap:balance}
p{margin:0;max-width:var(--measure)}
p + p{margin-top:1em}               /* baseline to baseline 2.5em = 1.67 x line spacing (WCAG 1.4.8) */
ul,ol{margin:0;padding:0;list-style:none}
abbr[title]{text-decoration:underline dotted;text-underline-offset:.2em;cursor:help}

a{color:var(--link);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.2em}
a:hover{text-decoration-thickness:.2em}
/* Focus: a 3px outline in the text colour, 2px off the control (21:1 against the page).
   Kept tight so it never lands on neighbouring text, rules or controls. */
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
/* Links inside running text fill with the text colour instead, so the indicator stays
   inside the link and never lands on the lines above and below or the next word. */
p a:not(.btn):focus-visible,dd a:focus-visible{outline:none;background:var(--ink);color:var(--paper);text-decoration-color:var(--paper)}

/* The page uses the screen it is given: full width up to a very wide cap. */
.wrap{width:100%;max-width:120rem;margin-inline:auto;padding-inline:var(--gutter)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The skip link opens a space above the header when focused, rather than covering it. */
.skip{display:block;width:fit-content;height:0;overflow:hidden;margin-inline:var(--gutter);padding:0 1.2rem;background:var(--ink);color:var(--paper);font-weight:700}
.skip:focus,.skip.keep{height:auto;overflow:visible;padding:.75rem 1.2rem;margin-block:.6rem}

/* The off-register print: red plate up and left, cyan plate down and right. */
.offreg{text-shadow:.035em .035em 0 var(--plate-c),-.035em -.035em 0 var(--plate-r)}

/* ---------- header: one row, always. The name and the menu, nothing else. ---------- */
.masthead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 .25rem;padding-block:.5rem;border-bottom:2px solid var(--rule)}
.wordmark{font-family:var(--display);font-weight:700;font-size:clamp(1rem,5vw,1.45rem);line-height:1.1;color:var(--ink);text-decoration:none;display:inline-flex;flex-wrap:wrap;align-items:center;min-height:2.75rem}
.wordmark:hover{text-decoration:underline;text-decoration-thickness:.08em}
.wordmark .bar{font-weight:300;margin-inline:.3em}
.btn{white-space:nowrap;font:inherit;font-weight:700;color:var(--ink);background:var(--paper);border:2px solid var(--ink);padding:.4rem .9rem;min-height:2.75rem;min-width:2.75rem;cursor:pointer;border-radius:0}
.btn:hover{background:var(--ink);color:var(--paper)}
.btn[hidden]{display:none}
/* Light and dark: a moon when the page is light, a sun when it is dark. */
.icon-btn{display:inline-grid;place-items:center;width:2.75rem;height:2.75rem;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.icon-btn:hover{background:var(--ink);color:var(--paper)}
.icon-btn[hidden]{display:none}
.icon-btn .i-sun,.icon-btn[data-showing="dark"] .i-moon{display:none}
.icon-btn[data-showing="dark"] .i-sun{display:block}
.masthead .wordmark{margin-right:auto}
.masthead #theme-button{order:1}
.masthead #menu-button{order:2;padding-inline:.6rem;margin-left:.4rem}  /* room for either button's outline */
.masthead .sitenav{order:3}

/* Small screens: the menu opens beneath the name. */
.sitenav{flex-basis:100%;border-top:1px solid var(--rule);margin-top:.35rem}
.sitenav a{display:flex;align-items:center;min-height:2.75rem;min-width:2.75rem;padding-inline:.5rem;color:var(--ink);text-decoration:none;font-weight:700;white-space:nowrap}
/* In the opened menu each row is ruled off from the next, so the outline is drawn inside the row. */
.sitenav a:focus-visible{outline-offset:-3px}
.sitenav a:hover{text-decoration:underline;text-decoration-thickness:.15em}
.sitenav a[aria-current]{text-decoration:underline;text-decoration-thickness:.2em;text-decoration-color:var(--red)}
.sitenav .sub a{font-weight:400;padding-left:1.25rem}
.sitenav > ul > li + li{border-top:1px solid var(--rule)}
.js .sitenav[data-open="false"]{display:none}
/* Wide enough for everything: the menu sits on the same line as the name. */
@media (min-width:72em){
  .wordmark{white-space:nowrap;flex-wrap:nowrap}
  .js .sitenav[data-open="false"]{display:block}
  #menu-button{display:none}
  .masthead{flex-wrap:nowrap;gap:0 .75rem}
  .masthead .sitenav{order:0}
  .sitenav{flex:0 1 auto;border:0;margin:0}
  .sitenav > ul{display:flex;align-items:center;gap:0 2.25rem}
  .sitenav > ul > li + li{border-top:0;margin-left:-1.15rem}
  .sitenav > ul > li:nth-child(2){margin-left:0}
  .sitenav .has-sub{display:flex;align-items:center;gap:0 1.1rem}
  .sitenav .sub{display:flex;gap:0 1.1rem}
  .sitenav a{padding-inline:0}
  .sitenav a:focus-visible{outline-offset:2px}
  .sitenav .sub a{padding-left:0}
}

/* ---------- page furniture ---------- */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
main{display:block;flex:1 0 auto;padding-block:1.25rem 2rem}
.page-title{font-size:clamp(2.1rem,3.4vw,3.1rem);letter-spacing:-.01em;margin-bottom:.6rem}
.intro{font-size:1rem}

/* ---------- home: the front door ---------- */
a.btn{display:inline-flex;align-items:center;text-decoration:none}
.front{display:grid;gap:1.5rem 3rem;padding-block:1rem 2rem;align-items:center}
.front h1{font-size:clamp(2.5rem,5.6vw,5.75rem);line-height:.98;letter-spacing:-.015em;max-width:13ch}
.front .lede{margin-top:1.25rem;font-size:1.125rem;max-width:46ch}
.front-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem;max-width:none}
.front-piece .tile img{width:100%}
@media (min-width:60em){
  .front{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);min-height:calc(100vh - 5.5rem);min-height:calc(100svh - 5.5rem);padding-block:1rem}
  .front-piece .frame img{max-height:calc(100svh - 12rem);width:auto;max-width:100%;margin-inline:auto}
  .front-piece .frame{background:none}
  .front-piece .tile{width:fit-content;margin-inline:auto}
}
.section-head{font-size:clamp(1.5rem,2.4vw,2.1rem);margin-bottom:.9rem;padding-top:.75rem;border-top:2px solid var(--rule)}
.section-head.second{margin-top:2.5rem}
#work{scroll-margin-top:0}

.tile{position:relative}
.tile .frame{display:block;background:var(--wash)}
.tile img{width:100%}
.tile a{display:block;color:var(--ink);text-decoration:none;padding-top:.45rem;min-height:2.75rem}
.tile a::after{content:"";position:absolute;inset:0}
.js .tile a{cursor:zoom-in}
.tile .t{display:block;font-family:var(--display);font-weight:700;font-size:1.25rem;line-height:1.15}
.tile .s{display:block;color:var(--quiet);font-size:.9375rem;margin-top:.1rem}
.tile:hover .frame,.door:hover .frame{box-shadow:.4rem .4rem 0 var(--cyan),-.4rem -.4rem 0 var(--red)}
.tile:hover .t,.door:hover .n{text-decoration:underline;text-decoration-thickness:.08em}
/* A piece's link covers the whole tile, so the outline goes round the whole tile. */
.tile a:focus-visible{outline:none}
.tile:has(a:focus-visible){outline:3px solid var(--ink);outline-offset:2px}
/* Arriving at one piece from a link: mark which one. */


/* Six doors: one per discipline, fronted by one piece. */
.doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem}
.door{display:grid;grid-template-columns:minmax(0,1fr);gap:0 .75rem;align-items:baseline;color:var(--ink);text-decoration:none}
@media (min-width:48em){.door{grid-template-columns:minmax(0,1fr) auto}}
.door .frame{grid-column:1 / -1;display:block;background:var(--wash);margin-bottom:.5rem}
.door img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.door .n{font-family:var(--display);font-weight:700;font-size:clamp(1.25rem,2.2vw,1.9rem);line-height:1.1}
.door .c{color:var(--quiet);font-size:.9375rem;white-space:nowrap}
.door .d{grid-column:1 / -1;color:var(--quiet);font-size:.9375rem}
@media (min-width:48em){.door .d{grid-row:3}}
@media (min-width:48em){.doors{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.5rem}.door img{aspect-ratio:2/1}.door .frame{margin-bottom:.3rem}}
@media (min-width:120em){.doors{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* The career in three bodies of work. Pieces in a row share one height, uncropped. */
.chapter{display:grid;gap:.75rem 2.5rem;padding-block:1.25rem;border-top:1px solid var(--rule)}
.chapter:first-of-type{border-top:0;padding-top:0}
.chapter h3{font-size:clamp(1.35rem,2vw,1.75rem);margin-bottom:.35rem}
.chapter-text p{color:var(--quiet);max-width:38ch}
.strip{columns:2;column-gap:1rem}
.strip li{break-inside:avoid;margin-bottom:1rem}
@media (min-width:48em){
  .strip{columns:auto;display:flex;gap:1.25rem;align-items:flex-start;max-width:calc(var(--sum) * 19rem)}
  .strip li{flex:var(--ar) 1 0%;min-width:0;margin:0}
}
@media (min-width:60em){.chapter{grid-template-columns:15rem minmax(0,1fr);align-items:start}}

.closing{margin-top:1.5rem;padding-block:1.5rem 1rem;border-top:2px solid var(--rule)}
.closing h2{font-size:clamp(1.5rem,2.4vw,2.1rem);margin-bottom:.4rem}

/* ---------- category pages: title inset on the left, coverflow on the right ---------- */
.cat{display:grid;gap:1.25rem 3rem}
.cat-head .intro p + p{margin-top:.5em}
.cat-head .count{color:var(--quiet);margin-top:.75rem}
.pager{display:flex;flex-wrap:wrap;gap:0 1.5rem;margin-top:1rem}
.pager a{display:inline-flex;align-items:center;min-height:2.75rem;font-weight:700}
@media (min-width:64em){
  .cat{grid-template-columns:minmax(15rem,22rem) minmax(0,1fr);gap:0 2rem;align-items:center;min-height:calc(100svh - 7rem)}
  .cat-head{padding-left:clamp(1rem,4vw,4.5rem)}
}

/* The strip: a native horizontal scroller that snaps each piece to the centre. */
.flow{--slide:min(78vw,30rem);--stage:min(52svh,26rem);container-type:inline-size;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--quiet) transparent;padding-block:1rem 1.25rem}
.flow:focus-visible{outline-offset:-3px}
.works{--overlap:0px;display:flex;align-items:flex-start;width:max-content;padding-inline:calc(50cqi - var(--slide) / 2 + var(--overlap))}
@media (min-width:64em){.flow{--slide:min(40cqi,32rem)}}
.work{flex:none;width:var(--slide);scroll-snap-align:center;scroll-snap-stop:always;position:relative}
.work figure{margin:0}
.work .art{display:grid;place-items:center;height:var(--stage);background:var(--wash);padding:.75rem;overflow:hidden}
.work .art picture{display:contents}
.work .art img{max-width:100%;max-height:calc(var(--stage) - 1.5rem);width:auto;height:auto;object-fit:contain;cursor:pointer}
.work figcaption{padding-top:.75rem}
.work h2{font-size:1.4rem;line-height:1.15}
.work .cap{margin-top:.4rem}
.specs{margin:.6rem 0 0;border-top:1px solid var(--rule)}
.specs div{display:grid;grid-template-columns:minmax(5.5rem,32%) minmax(0,1fr);gap:.75rem;padding:.2rem 0;border-bottom:1px solid var(--rule)}
.specs dt{color:var(--quiet)}
.specs dd{margin:0;font-weight:700}
.work .specs{font-size:.9375rem}
.work .links,.lb .links{margin-top:.5rem}
.work .links a,.lb .links a{display:inline-flex;align-items:center;min-height:2.75rem;font-weight:700}
.zoom{margin-top:.75rem;padding:.25rem .9rem}

/* Coverflow, in CSS alone. Each piece's position in the strip drives its tilt, size
   and stacking, and only the centred piece shows its card. Browsers without
   scroll-driven animation get a plain snapping strip with every card showing. */
@supports (animation-timeline: view(inline)) {
  .works{gap:0;--overlap:calc(var(--slide) * .2)}
  .work{margin-inline:calc(var(--overlap) * -1);view-timeline:--piece inline;animation:flow linear both;animation-timeline:--piece;animation-range:cover}
  .work figure{transform-origin:50% 40%}
  .work figure,.work figcaption{animation:inherit;animation-timeline:--piece;animation-range:cover}
  .work figure{animation-name:tilt}
  .work figcaption{animation-name:card}
  @keyframes flow{0%,30%{z-index:1}42%{z-index:5}50%{z-index:10}58%{z-index:5}70%,100%{z-index:1}}
  @keyframes tilt{
    0%{transform:perspective(1100px) translateX(-14%) rotateY(-58deg) scale(.7)}
    38%{transform:perspective(1100px) translateX(-4%) rotateY(-50deg) scale(.78)}
    46%,54%{transform:none}
    62%{transform:perspective(1100px) translateX(4%) rotateY(50deg) scale(.78)}
    100%{transform:perspective(1100px) translateX(14%) rotateY(58deg) scale(.7)}}
  /* Cards at the side are clipped out of sight but stay in the page for screen
     readers. Focusing one brings its piece to the centre, where its card shows. */
  @keyframes card{0%,43%{clip-path:inset(0 0 100% 0)}48%,52%{clip-path:inset(-14px)}57%,100%{clip-path:inset(0 0 100% 0)}}
}
@media (prefers-reduced-motion:reduce){
  @keyframes tilt{0%,38%{transform:scale(.8)}46%,54%{transform:none}62%,100%{transform:scale(.8)}}
}
/* Chrome's built-in carousel buttons, where the browser offers them, pinned to the
   strip on either side of the centred piece. */
.flow{anchor-name:--flow}
.flow::scroll-button(*){font:inherit;font-size:1.5rem;font-weight:700;line-height:1;color:var(--ink);background:var(--paper);border:2px solid var(--ink);width:2.75rem;height:2.75rem;cursor:pointer;position:absolute;position-anchor:--flow;top:calc(anchor(top) + 1rem + min(52svh,26rem) / 2 - 1.375rem);z-index:30}
.flow::scroll-button(*):hover{background:var(--ink);color:var(--paper)}
.flow::scroll-button(*):disabled{opacity:.35;cursor:default}
.flow::scroll-button(left){content:"‹" / "Previous piece";left:calc(anchor(left) + .5rem)}
.flow::scroll-button(right){content:"›" / "Next piece";right:calc(anchor(right) + .5rem)}

/* ---------- about ---------- */
.about{display:grid;gap:1.5rem 3rem}
.about h2{font-size:1.6rem;margin-bottom:.6rem}
.about .lead{font-family:var(--display);font-weight:700;font-size:clamp(1.45rem,2.2vw,2rem);line-height:1.15;max-width:22ch;margin-bottom:.9rem}
.about figure{margin:0;background:var(--wash);padding:.75rem;max-width:30rem;align-self:start}
.about figure img{width:100%}
.about .cta{margin-top:1.25rem}
.about .cta a{display:inline-flex;align-items:center;min-height:2.75rem;font-weight:700}
@media (min-width:48em){.about{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:48em){.about-title{grid-column:1 / -1}}
/* Wide: "About" heads the right-hand column, above the photo; the two text columns start at the top. */
@media (min-width:68em){
  .about{grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.7fr);grid-template-rows:auto 1fr;align-items:start}
  .about-title{grid-column:3;grid-row:1;margin:0;text-align:right}
  .about-fig{grid-column:3;grid-row:2}
  .about-words{grid-column:1;grid-row:1 / span 2}
  .about-bg{grid-column:2;grid-row:1 / span 2}
}

/* ---------- about, coverflow version: the two texts as cards ---------- */
.about-flow .about-fig{margin:1.25rem 0 0;background:var(--wash);padding:.75rem}
.about-flow .about-fig img{width:100%}
.about-flow .flow{--slide:min(84vw,34rem)}
@media (min-width:64em){
  /* the photo gets a wider column than a category title does */
  .cat.about-flow{grid-template-columns:minmax(18rem,30rem) minmax(0,1fr)}
  .about-flow .flow{--slide:min(66cqi,36rem)}
}
.note{background:var(--wash);padding:clamp(1rem,2.5vw,1.75rem)}
.note h2{font-size:1.6rem;margin-bottom:.6rem}
.note p{max-width:none}
.note .lead{font-family:var(--display);font-weight:700;font-size:clamp(1.45rem,2.2vw,2rem);line-height:1.15;margin-bottom:.9rem}
.note .cta{margin-top:1rem}
.note .cta a{display:inline-flex;align-items:center;min-height:2.75rem;font-weight:700}
/* Chrome's arrow buttons sit under the cards here, not over the text. */
.about-flow .flow{margin-bottom:3.5rem}
.about-flow .flow::scroll-button(*){top:calc(anchor(bottom) + .5rem)}
.about-flow .flow::scroll-button(left){left:calc(anchor(left) + 0px)}
.about-flow .flow::scroll-button(right){right:calc(anchor(right) + 0px)}
@supports (animation-timeline: view(inline)) {
  .work .note{transform-origin:50% 40%;animation:tilt linear both;animation-timeline:--piece;animation-range:cover}
}

/* ---------- contact ---------- */
.contact{display:grid;gap:1.5rem 4rem}
.contact .direct{margin-top:1em}
@media (min-width:60em){.contact{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}}
.form{max-width:44rem;display:grid;gap:1rem 1.5rem}
@media (min-width:40em){.form{grid-template-columns:1fr 1fr}.form > .wide{grid-column:1 / -1}}
.field label{display:block;font-weight:700;margin-bottom:.25rem}
.field .hint{display:block;color:var(--quiet);font-size:1rem;margin-bottom:.25rem}
.field input + .hint{margin-top:.5rem}
.field input,.field textarea{font:inherit;color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:0;padding:.55rem .7rem;width:100%;min-height:2.75rem}
.field textarea{min-height:8rem;resize:vertical}
.field [aria-invalid="true"]{border-width:4px}
.field .err{display:block;font-weight:700;margin-top:.4rem}
.field .err::before{content:"Error: "}
.field .err[hidden]{display:none}
.errors{border:4px solid var(--ink);padding:.75rem 1rem}
.errors h2{font-size:1.5rem;margin-bottom:.25rem}
.errors li a{display:inline-flex;align-items:center;min-height:2.75rem}
.status{border-left:.5rem solid var(--cyan);padding:.75rem 1rem;background:var(--wash)}
.form .btn{white-space:normal;text-align:left}

/* ---------- lightbox ---------- */
dialog.lightbox{border:0;padding:0;margin:0;inset:0;width:100%;height:100%;max-width:none;max-height:none;background:var(--paper);color:var(--ink);overflow:hidden}
dialog.lightbox::backdrop{background:var(--paper)}
/* Phone and upright tablet: one scrolling sheet. The work comes first at full
   width, its wall label follows, and the controls stay pinned top and bottom. */
.lb{display:flex;flex-direction:column;height:100%}
.lb-bar{flex:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.6rem var(--gutter);border-bottom:2px solid var(--rule)}
.lb-count{font-weight:700}
.lb-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lb-stage{background:var(--wash);padding:.75rem;display:grid;justify-items:center}
.lb-stage img{width:min(100%,calc(var(--w)*1.5px),calc(72vh*var(--w)/var(--h)));max-width:none;height:auto}
.lb-info{padding:1.25rem var(--gutter) 2rem}
/* The label panel fills the screen edge to edge on phones, so its focus outline is drawn inside it. */
.lb-info:focus-visible{outline-offset:-3px}
.lb-info h2{font-size:clamp(1.6rem,6vw,2.4rem)}
.lb-label .cap{margin-top:.75rem}
.lb-label .specs{margin-top:1.25rem}
.lb-nav{flex:none;display:flex;gap:.5rem;padding:.6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom,0px));border-top:2px solid var(--rule)}
.lb-nav .btn{flex:1}
@media (min-width:44em){
  .lb-stage{padding:1.5rem}
  .lb-info{padding:1.75rem var(--gutter) 2.5rem}
  .lb-label{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0 2.5rem;align-items:start}
  .lb-label .specs{margin-top:.75rem;grid-column:2;grid-row:1 / span 3}
  .lb-label:not(:has(.cap,.links)) .specs{grid-column:1 / -1;max-width:36rem}
  .lb-nav{justify-content:flex-end}
  .lb-nav .btn{flex:none}
}
/* Wide screens, and any phone or tablet turned on its side: the work on the
   left, its wall label on the right. */
@media (min-width:36em) and (min-aspect-ratio:5/4){
  .lb{display:grid;grid-template-columns:minmax(0,1fr) clamp(16rem,34vw,27rem);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"stage bar" "stage info" "stage nav"}
  .lb-scroll{display:contents}
  .lb-bar{grid-area:bar;border-bottom:0;border-left:2px solid var(--rule);padding:clamp(.5rem,2vh,1.25rem) clamp(1rem,2.2vw,2rem)}
  .lb-stage{grid-area:stage;position:relative;padding:0;min-height:0;overflow:hidden}
  .lb-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:clamp(.5rem,2.5vh,2rem);aspect-ratio:auto}
  .lb-info{grid-area:info;min-height:0;overflow-y:auto;border-left:2px solid var(--rule);padding:clamp(.5rem,2vh,1.5rem) clamp(1rem,2.2vw,2rem)}
  .lb-info h2{font-size:clamp(1.5rem,2.6vw,2.4rem)}
  .lb-label{display:block}
  .lb-label .specs{margin-top:1.25rem}
  .lb-nav{grid-area:nav;border-top:0;border-left:2px solid var(--rule);justify-content:flex-start;padding:clamp(.5rem,2vh,1.25rem) clamp(1rem,2.2vw,2rem)}
  .lb-nav .btn{flex:none}
}

/* ---------- footer: one quiet line ---------- */
.colophon{border-top:2px solid var(--rule);padding-block:.25rem .75rem;font-size:.9375rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 2rem;color:var(--quiet)}
.colophon p{max-width:none}
.colophon p + p{margin-top:0}
.colophon a{display:inline-flex;align-items:center;min-height:2.75rem;min-width:2.75rem}

@media (prefers-reduced-motion:no-preference){
  .tile .frame{transition:box-shadow .15s ease-out}
}
@media (forced-colors:active){
  .tile:hover .frame{outline:3px solid Highlight}
  .sitenav a[aria-current]{text-decoration-color:currentColor}
}
@media print{
  #theme-button,#menu-button,.sitenav,.skip,.pager,.zoom{display:none}
  .flow{overflow:visible}.works{flex-wrap:wrap;width:auto;padding:0}.work{animation:none;margin:0 0 1rem}.work figure,.work figcaption{animation:none}
  .offreg{text-shadow:none}
}

/* ---------- accessibility audit ---------- */
.a11y-hero{display:grid;gap:1.25rem 3rem}
.a11y-zero{display:flex;gap:1rem 1.5rem;align-items:center;max-width:none}
.a11y-num{font-family:var(--display);font-weight:700;font-size:clamp(5rem,9vw,8rem);line-height:.8}
.a11y-ctx{font-family:var(--display);font-weight:700;font-size:clamp(1.5rem,2.6vw,2.25rem);line-height:1.1;max-width:16ch}
.a11y-meta{margin:1.25rem 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem;border-top:1px solid var(--rule)}
.a11y-meta div{padding:.5rem 0;border-bottom:1px solid var(--rule)}
.a11y-meta dt{color:var(--quiet)}
.a11y-meta dd{margin:0;font-family:var(--display);font-weight:700;font-size:1.4rem;line-height:1.15}
.a11y-section{margin-top:2rem;padding-top:1rem;border-top:2px solid var(--rule)}
.a11y-section > h2{font-size:clamp(1.6rem,3vw,2.25rem);margin-bottom:.75rem}
.a11y-section h3{font-size:1.4rem}
.a11y-section h4{font-family:var(--text);font-weight:700;font-size:1.125rem;line-height:1.4;margin:0}
.a11y-body.cols{columns:26rem;column-gap:2.5rem}
.a11y-body.cols > *{break-inside:avoid}
/* Phone: each page is a small block with its three figures labelled. */
.a11y-table{display:block;width:100%;max-width:46rem;margin-top:1rem;font-variant-numeric:tabular-nums;border-top:2px solid var(--rule)}
.a11y-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.a11y-table tbody,.a11y-table tfoot{display:block}
.a11y-table tr{display:grid;grid-template-columns:1fr;padding:.4rem 0 .6rem;border-bottom:1px solid var(--rule)}
.a11y-table th,.a11y-table td{display:block;text-align:left;padding:0}
.a11y-table tbody th{font-weight:700}
.a11y-table td{display:flex;justify-content:space-between;gap:1rem}
.a11y-table td::before{content:attr(data-label);color:var(--quiet)}
.a11y-table tbody a{display:inline-flex;align-items:center;min-height:2.75rem;min-width:2.75rem}
.a11y-table tfoot tr{border-bottom:2px solid var(--rule)}
.a11y-table tfoot th,.a11y-table tfoot td{font-weight:700}
@media (min-width:40em){
  .a11y-table{display:table;border-collapse:collapse;border-top:0;margin-top:0}
  .a11y-table thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:table-header-group}
  .a11y-table tbody{display:table-row-group}.a11y-table tfoot{display:table-footer-group}
  .a11y-table tr{display:table-row;padding:0;border:0}
  .a11y-table th,.a11y-table td{display:table-cell;padding:.4rem 0 .4rem 1rem;border-bottom:1px solid var(--rule);vertical-align:middle;text-align:right}
  .a11y-table th:first-child{text-align:left;padding-left:0}
  .a11y-table td::before{content:none}
  .a11y-table thead th{border-bottom:2px solid var(--rule);color:var(--quiet);font-weight:400;padding-block:.3rem}
  .a11y-table tbody th{font-weight:400}
  .a11y-table tfoot th,.a11y-table tfoot td{border-bottom:2px solid var(--rule);padding-block:.5rem}
}
.principle{margin-top:1.5rem}
.principle-lead{color:var(--quiet)}
.criteria{margin-top:.6rem;columns:22rem;column-gap:2.5rem;border-top:1px solid var(--rule)}
.criterion{position:relative;break-inside:avoid;display:grid;grid-template-columns:7.25rem minmax(0,1fr);gap:.25rem 1rem;padding:.6rem 0;border-bottom:1px solid var(--rule)}
.crit-id{display:flex;gap:.5rem;align-items:baseline}
.crit-code{font-family:var(--display);font-weight:700;font-size:1.3rem;line-height:1.2}
.crit-level{font-weight:700;border:2px solid var(--ink);padding:0 .3rem;font-size:.9rem}
.swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));gap:.75rem;margin:.6rem 0 1.25rem}
.swatch{border:2px solid;padding:.75rem;display:grid;gap:.1rem}
.sw-name{font-weight:700}
.sw-ratio{font-family:var(--display);font-weight:700;font-size:1.7rem;line-height:1.1;margin-top:.3rem}
.beyond{display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:0 2.5rem;margin-top:.75rem;border-top:1px solid var(--rule)}
.beyond li{padding:.75rem 0;border-bottom:1px solid var(--rule)}
.beyond h3{margin-bottom:.25rem}
.caught{margin-top:.75rem;columns:22rem;column-gap:2.5rem;border-top:1px solid var(--rule)}
.caught li{position:relative;break-inside:avoid;display:grid;grid-template-columns:3.25rem minmax(0,1fr);gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--rule)}
.caught-n{font-family:var(--display);font-weight:700;font-size:2.75rem;line-height:.9}
.caught h3{margin-bottom:.25rem}
.notclaimed{margin-top:.75rem;columns:22rem;column-gap:2.5rem}
.notclaimed li{break-inside:avoid;margin-bottom:1rem;max-width:var(--measure)}
.a11y-code{margin:.75rem 0;padding:.75rem 1rem;background:var(--wash);border-left:.5rem solid var(--cyan);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-width:56rem}
.a11y-code code{font:inherit}
.a11y-code + p{margin-top:0}
.standards{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:0 2rem;margin:.75rem 0;border-top:1px solid var(--rule)}
.standards li{display:grid;gap:.1rem;padding:.6rem 0;border-bottom:1px solid var(--rule)}
.a11y-foot{color:var(--quiet)}
@media (min-width:48em){.a11y-meta{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:64em){.a11y-hero{grid-template-columns:auto minmax(0,1fr);align-items:center}}
/* Wide: section heading in a left rail, content fills the rest. */
@media (min-width:72em){
  .a11y-section{display:grid;grid-template-columns:14rem minmax(0,1fr);gap:0 2.5rem}
  .a11y-section > h2{margin:0}
}
