/*
VOICE   empty, withheld; nothing that does not need to be there
IDEA    a library you enter by terms: term → references → one reference, side by side
PICTURE none; the name alone on the first screen, then only words
COLOUR  white, black, one gray
TYPE    Areal Regular, one size; hierarchy comes from gray and space, not scale
LAYOUT  three quiet columns that fill as you choose; one column at a time on a phone
*/
@font-face{font-family:"Areal";src:local("ABC Areal"),local("ABCAreal-Regular");font-weight:400;font-display:swap}
:root{color-scheme:light;--k:#111;--g:#8f8f8f;--g2:#c8c8c8;--m:clamp(20px,3vw,40px);--top:64px}
*{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--k);font:400 16px/1.45 "Areal",Arial,"Liberation Sans",Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
h1,p{font:inherit;margin:0}
a{color:inherit;text-decoration:none}
a:hover{color:var(--g)}
:focus-visible{outline:1px solid var(--k);outline-offset:3px}
::selection{background:var(--k);color:#fff}
ul,ol{list-style:none;margin:0;padding:0}
.gray{color:var(--g)}

/* home */
.home{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:var(--m)}

/* header */
.top{height:var(--top);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 var(--m)}
.top nav{display:flex;gap:22px}
.top nav a{color:var(--g)}
.top nav a:hover,.top nav a[aria-current]{color:var(--k)}
.top a{white-space:nowrap}
@media (max-width:520px){:root{--top:84px}.top{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}.top nav{gap:16px}}

/* library: three columns */
.lib{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--m);padding:0 var(--m);height:calc(100vh - var(--top));height:calc(100dvh - var(--top))}
.lib section{overflow-y:auto;padding:24px 0 80px;scrollbar-width:thin;scrollbar-color:var(--g2) transparent}
.intro{color:var(--g);margin-bottom:28px;max-width:22em}
.c1 li{padding:1px 0}
.c1 .letter{color:var(--g2);padding-top:18px}
.c1 .letter:first-child{padding-top:0}
.c1 .n{color:var(--g2)}
.c1 a[aria-current]{color:var(--k);border-bottom:1px solid var(--k)}
.lib[data-depth="2"] .c1 a:not([aria-current]),.lib[data-depth="3"] .c1 a:not([aria-current]){color:var(--g)}
.lib[data-depth="2"] .c1 a:hover,.lib[data-depth="3"] .c1 a:hover{color:var(--k)}
.head{margin-bottom:28px}
.c2 li{margin-bottom:14px}
.c2 a{display:block}
.c2 .t{display:block}
.c2 .m{display:block;color:var(--g)}
.c2 a:hover .t{color:var(--g)}
.lib[data-depth="3"] .c2 a:not([aria-current]) .t{color:var(--g)}
.lib[data-depth="3"] .c2 a:hover .t{color:var(--k)}
.c3 .no{color:var(--g);margin-bottom:28px}
.c3 h1{margin-bottom:2px}
.c3 .m{color:var(--g)}
.c3 .note{margin-top:20px;max-width:30em}
.c3 .terms{margin-top:28px;color:var(--g)}
.c3 .terms a{color:var(--g)}.c3 .terms a:hover,.c3 .terms a[aria-current]{color:var(--k)}
.c3 .ext{display:inline-block;margin-top:20px}
.back{display:none}

/* about, contact */
.page{max-width:36em;padding:clamp(40px,12vh,120px) var(--m) 120px;margin-left:calc(100% / 3 + var(--m) / 3)}
.page p{margin-bottom:1.1em}
.projects li{margin-bottom:28px}.projects .m{color:var(--g)}
.page .gray{margin-top:0}
.u{border-bottom:1px solid var(--g2)}.u:hover{border-bottom-color:var(--k);color:var(--k)}

/* phone: one column at a time */
@media (max-width:760px){
  .lib{display:block;height:auto}
  .lib section{overflow:visible;padding-top:12px}
  .lib[data-depth="1"] .c2,.lib[data-depth="1"] .c3,
  .lib[data-depth="2"] .c1,.lib[data-depth="2"] .c3,
  .lib[data-depth="3"] .c1,.lib[data-depth="3"] .c2{display:none}
  .back{display:block;color:var(--g);margin-bottom:20px}
  .back a::before{content:"← "}
  .page{margin-left:0}
}
/* index modes, reading now, names */
.modes{margin:0 0 20px;color:var(--g2)}
.modes a{color:var(--g)}.modes a[aria-current],.modes a:hover{color:var(--k)}
.nowh{color:var(--g);margin-bottom:6px}
.now{margin-bottom:28px}
.now .n{color:var(--g2)}
.c3 .who{margin-top:20px}
.c3 .who a{border-bottom:1px solid var(--g2)}.c3 .who a:hover{border-bottom-color:var(--k)}
.c3 .where{margin-top:6px}
.c1 .empty{color:var(--g2)}
.page .req{margin-top:2.2em}
/* reading room threshold */
.threshold .intro{max-width:24em;margin-bottom:2.2em}
.ways li{padding:3px 0}
.ways a{border-bottom:1px solid transparent}.ways a:hover{border-bottom-color:var(--k)}
.threshold .nowh{margin-top:2.6em}
