@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/type/bricolage.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #243c40;
  --text: #384c4d;
  --paper: #fff9e9;
  --teal: #176658;
  --mint: #a8ddc0;
  --peach: #ffab92;
  --yellow: #ffdb79;
  --lavender: #cfc3ed;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  color-scheme: light;
  color: var(--ink);
  font: 100%/1.58 "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); }
a { color: var(--teal); text-underline-offset: .22em; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #7039a1; outline-offset: 4px;
}
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3,.brand,.entry strong {
  font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -.045em;
}
h1 { font-size: clamp(2.95rem,6.4vw,5.5rem); }
h2 { font-size: clamp(1.95rem,3.6vw,2.85rem); }
h3 { font-size: 1.5rem; }
.wrap,.mast { width: min(1180px,90%); margin-inline: auto; }
.bar {
  background: #fffdf4; color: var(--ink); border-bottom: 2px solid var(--ink);
}
.mast { min-height: 5rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.68rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .lab-icon { width: 2.85rem; height: 2.85rem; transform: rotate(-5deg); }
.lab-icon { display: block; flex: none; width: 2rem; height: 2rem; }
.mast nav { display: flex; align-items: center; gap: .65rem; }
.mast nav a {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .28rem .68rem; border: 2px solid transparent; border-radius: .8rem;
  color: var(--ink); font-weight: 750; font-size: .92rem; text-decoration: none;
}
.mast nav .lab-icon { width: 1.65rem; height: 1.65rem; }
.mast nav a:hover,.mast nav a[aria-current] { background: #ffebaa; border-color: var(--ink); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4%; padding-block: clamp(2.7rem,5.4vw,4.8rem); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc((100% - 100vw) / 2);
  background-color: #fff3cb;
  background-image: radial-gradient(#e4d4a0 1px,transparent 1px); background-size: 9px 9px;
  border-bottom: 2px solid var(--ink);
}
.kicker { font-size: .76rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; color: #254f48; margin-bottom: .9rem; }
.hero .kicker { display: inline-block; padding: .24rem .63rem; border: 1.5px solid var(--ink); background: #bfe5c8; border-radius: .32rem; transform: rotate(-1deg); }
.hero>div { container-type: inline-size; }
.hero h1 { font-size: clamp(2.55rem,12cqw,4.4rem); line-height: 1.05; }
.hero h1 em { font-style: normal; color: #ff987d; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 1px 1px var(--ink),2px 2px var(--ink),3px 3px var(--ink); }
.lede { color: var(--text); font-size: clamp(1.02rem,1.55vw,1.19rem); line-height: 1.55; max-width: 55ch; margin-top: 1.15rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.45rem; margin-top: 1.5rem; }
.btn,.under { font-weight: 750; font-size: .96rem; }
.btn { display: inline-block; padding: .69rem 1.12rem; border: 2px solid var(--ink); border-radius: .8rem; background: var(--teal); color: white; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.under { color: var(--ink); padding-block: .6rem; }
.home-actions a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.home-actions .lab-icon { width: 1.7rem; height: 1.7rem; }
.specimen { position: relative; display: block; border: 2.5px solid var(--ink); border-radius: 1.35rem; background: #fffdf3; transform: rotate(1.25deg); box-shadow: 5px 6px var(--ink); overflow: hidden; }
.specimen img { width: 100%; height: auto; aspect-ratio: 1.85; display: block; object-fit: cover; object-position: 50% 57%; }
.section { padding: 2.2rem 0 2.55rem; }
.section + .section { border-top: 2px dashed #9fafa2; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; margin-top: 1.35rem; }
.entry { --wash: #e8f5e9; display: grid; grid-template-columns: 2.75rem 1fr; align-content: start; align-items: center; gap: .55rem .65rem; position: relative; padding: 1.1rem 1.15rem 1rem; background: #fffdf5; border: 2px solid var(--ink); border-radius: 1rem; box-shadow: 3px 4px 0 #425b54; text-decoration: none; color: var(--ink); }
.entry:nth-child(3n+2) { --wash: #e6f1f7; }
.entry:nth-child(3n) { --wash: #f4eafa; }
.entry>.lab-icon { height: 2.75rem; width: 2.75rem; background: var(--wash); border-radius: .7rem; padding: .16rem; }
.entry strong { font-size: 1.28rem; }
.entry>span,.entry small { grid-column: 1/-1; }
.entry>span { font-size: .96rem; color: var(--text); }
.entry small { font-weight: 750; color: #31554e; margin-top: .25rem; }
.routes .entry { background: #c6e8d2; grid-template-columns: 4rem 1fr; padding: 1.25rem; }
.routes .entry:nth-child(2) { background: #ffdd97; }
.routes .entry:nth-child(3) { background: #ded0f0; }
.routes .entry>.lab-icon { background: transparent; width: 3.8rem; height: 3.8rem; }
.routes .entry strong { font-size: 1.65rem; }
@media (hover:hover) {
  .entry:hover,.btn:hover { transform: translate(-1px,-2px); box-shadow: 4px 6px var(--ink); }
  .under:hover,.links a:hover,.crumb a:hover { text-decoration-thickness: 2px; }
}
.crumb { font-size: .87rem; margin: 1.35rem 0; }
.crumb-icon { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .28em; vertical-align: -.18em; }
.pagehead { display: flex; align-items: center; gap: 1.4rem; background: #fff0c5; border: 2px solid var(--ink); border-radius: 1.35rem; padding: clamp(1.15rem,3vw,2.2rem); box-shadow: 4px 4px 0 var(--ink); margin: 0 0 1.6rem; }
.page-symbol { flex: none; width: clamp(3.7rem,8vw,6rem); height: auto; }
.pagehead h1 { font-size: clamp(2.25rem,4.7vw,4.1rem); overflow-wrap: anywhere; }
.pagehead .kicker { margin: 0 0 .5rem; }
.pagehead .lede { margin: .65rem 0 0; }
.listing { margin: 2.2rem 0 3rem; }
.listing h2 { scroll-margin-top: 1rem; }
.links { display: flex; flex-wrap: wrap; gap: .6rem; }
.links>a { display: inline-flex; align-items: center; min-height: 42px; padding: .35rem .85rem; background: #e5f1e4; border: 1.5px solid #537264; color: #1f4942; border-radius: 2rem; font-weight: 650; text-decoration: none; }
.links>a:hover { background: #cde8d0; }
.back { margin-top: 1rem; }
.columns { display: grid; grid-template-columns: 1.4fr .85fr; gap: 4%; align-items: start; padding-top: .75rem; }
.reading,.columns>*,.pagehead>div { min-width: 0; }
.reading p { margin: .65rem 0 1rem; }
.reading article { padding: 1.1rem 0 .2rem; border-bottom: 1px dashed #98aa9e; }
.reading .btn { margin-top: 1.25rem; }
.recall { padding: 1.35rem; background: #ffdf91; border: 2px solid var(--ink); border-radius: 1.1rem; box-shadow: 4px 4px var(--ink); }
.recall h2 { font-size: 1.65rem; }
.recall p { margin: .65rem 0; }
.recall details { border-top: 1px dashed #877749; margin-top: .9rem; }
summary { cursor: pointer; }
.recall summary { min-height: 44px; padding: .55rem 0; font-weight: 750; }
.footer { border-top: 2px solid var(--ink); background: #d7e8d7; margin-top: 2rem; padding: 1.35rem 0; color: var(--text); font-size: .88rem; }
.footrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; }
.skip { position: absolute; left: -999em; }
.skip:focus { z-index: 10; left: .5rem; top: .5rem; background: white; padding: .55rem; }
main:focus { outline: none; }
@media(max-width:800px) {
  .hero,.columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 2rem 0 2.2rem; }
  .specimen { max-width: 620px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .routes .cards { grid-template-columns: 1fr; }
  .routes .entry { grid-template-columns: 3.6rem 1fr; gap: .25rem .85rem; }
  .routes .entry>.lab-icon { grid-row: 1/4; width: 3.5rem; }
  .routes .entry>span,.routes .entry small { grid-column: 2; }
}
@media(max-width:650px) {
  .mast { flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem; padding: .55rem 0; }
  .mast nav { gap: .15rem; width: 100%; justify-content: space-between; }
  .mast nav a { gap: .2rem; padding: .14rem .22rem; font-size: .82rem; }
  .mast nav .lab-icon { width: 1.25rem; height: 1.25rem; }
  .brand .lab-icon { width: 2.25rem; height: 2.25rem; }
  .brand { font-size: 1.44rem; }
  .pagehead { gap: .75rem; align-items: flex-start; }
  .page-symbol { width: 3rem; }
  .pagehead h1 { font-size: clamp(1.9rem,7vw,2.8rem); }
}
@media(max-width:510px) {
  .cards { grid-template-columns: 1fr; }
  .wrap,.mast { width: 90%; }
  .section { padding: 1.8rem 0; }
  .pagehead { display: block; }
  .page-symbol { float: right; margin: 0 0 .35rem .5rem; }
  .actions { gap: .4rem .85rem; }
}
@media(max-width:360px) {
  .mast nav a { flex-direction: column; gap: 0; }
}


/* Keep native disclosure and select controls, with a shared illustrated indicator. */
details > summary { list-style: none; }
details > summary::marker { content: ""; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-inline-end: .45em;
  vertical-align: -.23em;
  background: url("/assets/dropdown.svg") center / contain no-repeat;
  forced-color-adjust: none;
}
details[open] > summary::before { transform: rotate(180deg); }
