/* The cellar, laid over every older page inside the Archive (grants, donors,
   the survey, the Trade, the services lanes, the floor). Added to each page's
   head by the middleware at the top of src/index.js, after the page's own
   styles, so it wins without anyone editing those pages. The front door is
   never touched. */

:root{
  --ink:#050506!important;--ink-soft:rgba(14,12,11,.78)!important;--ink-raised:rgba(30,22,18,.86)!important;
  --bone:#ece5d8!important;--bone-dim:#b3ab9e!important;--bone-faint:#857e73!important;
  --accent:#7a1717!important;--accent-lit:#c4453f!important;--rule:rgba(236,229,216,.16)!important;
  --serif:"IM Fell English","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif!important;
  --sans:"IM Fell English","Iowan Old Style",Palatino,Georgia,serif!important;
  --va-sc:"IM Fell English SC","IM Fell English",Georgia,serif;
  --va-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}
html{background:#050506!important}
body{background:transparent!important;color:var(--bone);font-family:"IM Fell English",Georgia,serif!important;font-size:17.5px;position:relative;isolation:isolate}
body::before{content:"";position:fixed;inset:-4%;z-index:-2;pointer-events:none;
  background:#0a0a0b url("/gate/vault.jpg") center 40%/cover no-repeat;filter:brightness(.26) saturate(.5) blur(1.5px)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(90% 70% at 50% 0%,rgba(5,5,6,.2),rgba(5,5,6,.86) 80%)}

h1,h2,h3{font-family:"IM Fell English SC","IM Fell English",Georgia,serif!important;font-weight:400!important;letter-spacing:.02em;
  text-shadow:0 0 1px #000,2px 3px 0 rgba(0,0,0,.85)}
h1{font-size:clamp(2.1rem,5vw,3.2rem)!important;text-shadow:0 0 1px #000,2px 3px 0 rgba(0,0,0,.9),0 0 26px rgba(196,69,63,.25)}
p,li,dd,td{line-height:1.65}
a{color:inherit}
a:hover{color:#e0913f}

/* the crumb back up the stairs */
.crumb{font-family:"IM Fell English SC",Georgia,serif!important;font-size:1.05rem!important;letter-spacing:.04em!important;text-transform:none!important;color:#c9c2b5!important}
.crumb:hover{color:#e0913f!important}

/* panels become worn stone, ragged at the edges */
.card,.f,.lane,.panel,.box,.entry,.org,.group,.q,.stat,.result,.note,.plate,fieldset{
  background:linear-gradient(rgba(22,18,16,.86),rgba(12,10,9,.9))!important;border-color:rgba(236,229,216,.12)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.6)}
.card,.entry,.lane{clip-path:polygon(0 1%,6% 0,28% 1.2%,52% 0,78% 1%,100% 0,99.4% 30%,100% 64%,99.2% 100%,72% 99%,46% 100%,20% 98.8%,0 100%,.6% 64%,0 32%)}
.card:hover,a.card:focus-visible{background:linear-gradient(rgba(44,22,18,.9),rgba(20,12,10,.92))!important}
.card .num,.num{color:#e0913f!important;font-family:"IM Fell English SC",Georgia,serif!important}

/* buttons are torn paper on a nail */
.btn,button[type=submit],input[type=submit],.enter,a.button,.go-btn{
  font-family:"IM Fell English SC","IM Fell English",Georgia,serif!important;font-size:1.05rem!important;letter-spacing:.02em!important;text-transform:none!important;
  color:#1d1611!important;border:0!important;border-radius:0!important;cursor:pointer;text-decoration:none!important;
  padding:.8rem 1.8rem .9rem 2rem!important;
  background:radial-gradient(40% 60% at 80% 30%,rgba(120,80,40,.28),transparent 70%),linear-gradient(#d8ccb3,#bfb194)!important;
  clip-path:polygon(1% 12%,9% 2%,21% 8%,34% 0,47% 6%,61% 1%,73% 7%,87% 0,99% 10%,96% 34%,100% 58%,95% 80%,99% 100%,84% 92%,70% 99%,55% 93%,41% 100%,27% 94%,13% 99%,0 90%,4% 64%,0 38%);
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.75));transition:transform .2s,color .2s}
.btn:hover,button[type=submit]:hover,input[type=submit]:hover,.enter:hover{color:#5c0d0d!important;transform:translateY(-1px) rotate(-.4deg)}
.btn.primary,button[type=submit].primary,.btn-primary{background:linear-gradient(#5e1010,#3d0909)!important;color:#ecd9c6!important}
.btn.primary:hover,.btn-primary:hover{color:#fff!important}
button:disabled,.btn[disabled]{opacity:.55;transform:none!important}

/* writing surfaces: dark slate */
input[type=text],input[type=email],input[type=url],input[type=search],input[type=number],input:not([type]),select,textarea{
  font-family:"IM Fell English",Georgia,serif!important;font-size:1.05rem!important;color:#ece5d8!important;border-radius:0!important;
  background:linear-gradient(#18181a,#0e0e10)!important;border:1px solid rgba(236,229,216,.16)!important;
  box-shadow:inset 0 5px 14px rgba(0,0,0,.85)!important}
input:focus,select:focus,textarea:focus{border-color:rgba(224,145,63,.6)!important;outline:none!important}
input[type=radio],input[type=checkbox]{accent-color:#8e1b1b}
label{color:#d8d0c3}

/* tags and small print */
.tag,.pill,.chip{font-family:"IBM Plex Mono",Menlo,monospace!important;border-radius:0!important;background:rgba(216,204,179,.1)!important;border-color:rgba(216,204,179,.25)!important}
.hint,.small,small,.meta{color:#a49e93}
hr{border:0;height:1px;background:linear-gradient(90deg,transparent,rgba(196,69,63,.5),transparent)}
table{border-color:rgba(236,229,216,.14)!important}
th{font-family:"IM Fell English SC",Georgia,serif!important;font-weight:400}

/* the old footer, as a ledger line at the foot of the stairs */
footer{background:linear-gradient(rgba(5,5,6,0),#050506 50%)!important;border-top:0!important;font-family:"IM Fell English SC",Georgia,serif!important;color:#857e73!important}
footer a{color:#c9c2b5!important}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}
