/* chilegalcyber.com · paper, navy, the Chicago star, and a real serif. Fraunces is self-hosted (OFL, /fonts/). */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:600;font-display:optional;src:url(/fonts/fraunces-600-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#f7f5f0; --surface:#ffffff; --ink:#13233f; --text:#1d2533; --muted:#545d6c; --line:#d9d4c8;
  --star:#c42a22; --accent:#1f4f8f; --soft:#e9eef6; --focus:#1f5fd6;
  --fig-edge:#4b5261; --fig-mid:#8a8f9b; --fig-lo:#d3d6dc;
  --serif:"Fraunces","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,ui-serif,serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0d1420; --surface:#141d2c; --ink:#eef1f6; --text:#d9dee7; --muted:#9ba5b5; --line:#263247;
  --star:#ff5a4f; --accent:#8db8f2; --soft:#18253a; --focus:#8db8f2;
  --fig-edge:#c7cdd8; --fig-mid:#6f7684; --fig-lo:#333b4a;
  color-scheme:dark;
}}
@view-transition{navigation:auto}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 1.0625rem/1.65 var(--sans)}
p{text-wrap:pretty}
a{color:var(--accent);text-underline-offset:.2em}
a:hover{color:var(--star)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:3px}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:var(--bg);padding:.5rem 1rem;z-index:10}
.skip:focus{left:1rem;top:1rem}
.wrap{max-width:68rem;margin:0 auto;padding:0 1rem}
@media (min-width:40rem){.wrap{padding:0 2rem}}
header.site{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;padding:1.4rem 0;border-bottom:2px solid var(--ink)}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ink);font:600 1.3rem/1.1 var(--serif);view-transition-name:brand}
.brand svg{width:1.6rem;height:1.6rem;flex:none}
.brand small{display:block;font:500 .7rem/1.2 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
nav.site{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;font-size:.95rem}
nav.site a{color:var(--muted);text-decoration:none}
nav.site a:hover{color:var(--ink)}

/* hero: the words, the laptop, the words; the rule under all of it */
.hero{padding:3rem 0 2.5rem;display:grid;gap:1.75rem;grid-template-areas:"head" "fig" "body"}
@media (min-width:58rem){.hero{padding:4rem 0 3rem;grid-template-columns:1.15fr 1fr;grid-template-areas:"head fig" "body fig";column-gap:3.5rem;align-items:center}}
.hero-head{grid-area:head}.hero-body{grid-area:body}.figure{grid-area:fig;margin:0}
.kicker{font:600 .78rem/1 var(--sans);text-transform:uppercase;letter-spacing:.16em;color:var(--star);margin:0 0 1.25rem}
h1{font:600 clamp(2.2rem,5.8vw,3.9rem)/1.06 var(--serif);color:var(--ink);letter-spacing:-.015em;margin:0;text-wrap:balance}
.lede{font-size:clamp(1.08rem,2.1vw,1.28rem);color:var(--muted);margin:0 0 1.5rem;max-width:38rem}
.status{display:inline-block;max-width:100%;font-size:.92rem;border-left:4px solid var(--star);background:var(--soft);padding:.6rem .9rem;margin:0}
.plate{position:relative;border:1px solid var(--line);border-top:4px solid var(--ink);background:var(--bg);overflow:hidden}
.plate .read{position:absolute;top:.7rem;right:.9rem;z-index:1;font:500 .75rem/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-variant-numeric:tabular-nums;pointer-events:none}
[data-figure]{position:relative;aspect-ratio:5/4;display:block;touch-action:pan-y}
[data-figure] img{position:absolute;inset:0;width:100%;height:100%;display:block}
[data-hairline]{--hairline-plate:var(--bg);--hairline-hi:var(--accent);--hairline-edge:var(--fig-edge);--hairline-mid:var(--fig-mid);--hairline-lo:var(--fig-lo);--hairline-stroke:1.15}
.figure figcaption{margin:.8rem .1rem 0;font-size:.95rem;color:var(--muted)}
blockquote.rule{margin:0 0 .5rem;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--ink);padding:1.5rem 1.6rem;max-width:52rem}
blockquote.rule p{font:500 1.2rem/1.45 var(--serif);color:var(--ink);margin:0 0 .9rem}
blockquote.rule cite{font:500 .85rem/1.3 var(--sans);font-style:normal;color:var(--muted)}

section{padding:3.25rem 0;border-top:1px solid var(--line)}
h2{font:600 clamp(1.5rem,3.2vw,2.1rem)/1.2 var(--serif);color:var(--ink);margin:0 0 1.25rem;text-wrap:balance}
.intro{color:var(--muted);max-width:48rem;margin:0 0 1.75rem}
.grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media (min-width:44rem){.grid{grid-template-columns:repeat(2,1fr)}}
.card{background:var(--surface);border:1px solid var(--line);padding:1.4rem 1.5rem}
.card h3{font:600 1.2rem/1.3 var(--serif);color:var(--ink);margin:0 0 .5rem}
.card p{margin:0;color:var(--muted)}

/* the self-check: boxes, a running count, and the line each unticked box reveals. CSS only. */
.check{counter-reset:done;max-width:48rem;background:var(--surface);border:1px solid var(--line)}
.check .row{padding:.9rem 1.2rem;border-top:1px solid var(--line)}
.check .row:first-child{border-top:0}
.check .item{display:grid;grid-template-columns:1.5rem 1fr;gap:.8rem;align-items:start;cursor:pointer;color:var(--ink);font-weight:500}
.check input{width:1.25rem;height:1.25rem;margin:.15rem 0 0;accent-color:var(--accent)}
.check .why{margin:.6rem 0 0 2.3rem;font-size:.95rem;color:var(--muted);border-left:3px solid var(--star);padding-left:.9rem}
.check .why strong{color:var(--ink);font-weight:600}
.check .row:has(input:checked){counter-increment:done}
.check .row:has(input:checked) .why{display:none}
.check .row:has(input:checked) .item{color:var(--muted)}
.check .score{margin:0;padding:1rem 1.2rem;border-top:2px solid var(--ink);font:600 1.05rem/1.4 var(--serif);color:var(--ink)}
.check .score .n::before{content:counter(done) " "}
.check .score .all{display:none}
.check:not(:has(input:not(:checked))) .score .n,.check:not(:has(input:not(:checked))) .score .some{display:none}
.check:not(:has(input:not(:checked))) .score .all{display:inline}
.note{font-size:.95rem;color:var(--muted);max-width:48rem;margin-top:1.75rem}

/* the decoder: one open at a time */
.decoder{max-width:48rem;border-top:1px solid var(--line)}
.decoder details{border-bottom:1px solid var(--line)}
.decoder summary{cursor:pointer;padding:.9rem .2rem;font:500 1.05rem/1.4 var(--serif);color:var(--ink);list-style:none;display:flex;gap:.8rem;align-items:baseline}
.decoder summary::-webkit-details-marker{display:none}
.decoder summary::before{content:"+";flex:none;width:1.2rem;color:var(--star);font:600 1.1rem/1 var(--sans)}
.decoder details[open] summary::before{content:"–"}
.decoder details p{margin:0 0 1rem 2rem;color:var(--muted)}
.decoder details em{font-style:normal;color:var(--ink);font-weight:600}

/* duties, with citations that open beside the text like footnotes */
.duties{display:grid;gap:1.1rem;margin:0;padding:0;list-style:none;max-width:48rem}
.duties li{border-left:3px solid var(--line);padding:.1rem 0 .1rem 1.1rem}
.duties strong{display:block;color:var(--ink);font-family:var(--serif);font-size:1.12rem}
.duties span{color:var(--muted)}
/* a citation is a button; its note is a popover (top layer, light dismiss, keyboard), anchored beside the text where the browser can */
button.cite{all:unset;cursor:pointer;color:var(--accent);text-decoration:underline dotted;text-underline-offset:.2em;font:inherit}
button.cite:hover,button.cite:has(+ .cnote:popover-open){color:var(--star)}
button.cite:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:3px}
.cnote{padding:.8rem 1rem;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--accent);color:var(--text);font-size:.92rem;line-height:1.5;max-width:min(30rem,calc(100vw - 2rem));box-shadow:0 8px 24px rgba(0,0,0,.08)}
.cnote:not([popover]){display:block;margin:.6rem 0}
@supports (anchor-name:--a) and (position-try-fallbacks:flip-block){
  /* (specificity above button.cite's all:unset, which would otherwise reset the anchor names) */
  button.cite.c1{anchor-name:--c1}#n1{position-anchor:--c1}button.cite.c2{anchor-name:--c2}#n2{position-anchor:--c2}button.cite.c3{anchor-name:--c3}#n3{position-anchor:--c3}
  button.cite.c4{anchor-name:--c4}#n4{position-anchor:--c4}button.cite.c5{anchor-name:--c5}#n5{position-anchor:--c5}button.cite.c6{anchor-name:--c6}#n6{position-anchor:--c6}
  .cnote[popover]{inset:auto;margin:.4rem 0 0;top:anchor(bottom);left:anchor(left);width:max-content;position-try-fallbacks:flip-block,flip-inline}
}
.contact{font:600 1.1rem/1.4 var(--sans);color:var(--ink)}
.disclaimer{background:var(--soft);border:1px solid var(--line);padding:1rem 1.2rem;font-size:.93rem;color:var(--muted);max-width:48rem}
footer.site{border-top:2px solid var(--ink);padding:1.75rem 0 3rem;color:var(--muted);font-size:.9rem;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between}
footer.site nav{display:flex;flex-wrap:wrap;gap:1.25rem}
.prose{max-width:44rem;padding:3rem 0}

/* scroll settles: position only, never opacity, and only for those who want motion */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .card,.check,.decoder,.duties li{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 30%}
    @keyframes rise{from{transform:translateY(12px)}to{transform:none}}
  }
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
