/* Shared styles for every page except the home page: the sphere pages
   (self-work/, ground-work/, world-work/index.html) and the topic pages in
   those folders. Matches the dark line-art look of the home page. Set the
   accent per sphere with a class on <body>: .self (gold), .ground (sage),
   .world (indigo). */
:root{
  --black:#0a0a0b; --panel:#111113; --line:#f2efe9; --paper:#e9e3d6;
  --gold:#d1a24e; --sage:#7c9a6a; --indigo:#5566a0; --clay:#a4522f;
  --hair:rgba(242,239,233,.14);
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:ui-sans-serif,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --accent:var(--gold);
}
body.self{--accent:var(--gold)}
body.ground{--accent:var(--sage)}
body.world{--accent:var(--indigo)}

*{box-sizing:border-box}
body{margin:0;background:var(--black);color:var(--paper);font-family:var(--sans);
  line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit}
.wrap{max-width:880px;margin:0 auto;padding:0 24px}

/* breadcrumb */
.crumbs{padding:28px 0 0;font-size:.78rem;letter-spacing:.18em;text-transform:uppercase}
.crumbs a{text-decoration:none;opacity:.6;transition:opacity .2s}
.crumbs a:hover{opacity:1}
.crumbs span{opacity:.35;margin:0 .6em}

/* page header */
.page-head{padding:72px 0 40px;text-align:center}
.page-head h1{font-family:var(--serif);font-weight:500;color:var(--accent);
  font-size:clamp(2.6rem,8vw,4.6rem);line-height:1.02;margin:0}
.page-head .lede{font-family:var(--serif);font-style:italic;font-size:clamp(1.05rem,2.4vw,1.3rem);
  max-width:40ch;margin:18px auto 0;opacity:.88}
.page-head::after{content:"";display:block;width:64px;height:1px;margin:36px auto 0;
  background:var(--accent);opacity:.7}

/* sections: topic groups on a sphere page, or subtopics on a topic page */
.sections{display:grid;gap:20px;padding:8px 0 72px}
.sections.cols{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.section{border:1px solid var(--hair);background:var(--panel);padding:26px 24px 28px}
.section h2{font-family:var(--serif);font-weight:500;font-size:1.5rem;margin:0 0 8px;color:var(--accent)}
.section h2 a{text-decoration:none}
.section h2 a:hover{text-decoration:underline;text-underline-offset:4px}
.section p{margin:0 0 14px;opacity:.85}
.section ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}
.section li a{text-decoration:none;border-bottom:1px solid var(--hair);transition:border-color .2s}
.section li a:hover{border-color:var(--accent)}
.section:target{border-color:var(--accent)}
.soon{display:inline-block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent);opacity:.8;margin-top:6px}

footer{border-top:1px solid var(--hair);padding:32px 0 56px;font-size:.82rem;opacity:.6}
footer a{text-decoration:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* the sun symbol, standing in for the site's name: in breadcrumbs and footers */
.sun-mark{color:var(--accent)}   /* size and shape are set on the symbol itself, so it can't balloon if this file is cached or missing */
.crumbs .crumb-home{opacity:.85}
footer a:hover .sun-mark,.crumbs a:hover .sun-mark{filter:drop-shadow(0 0 4px var(--accent))}

/* the footer's home link: arrow and sun centred on one line, with clear space above the rule */
footer.wrap{padding-top:40px;padding-bottom:56px}   /* .wrap's own padding would otherwise win */
footer a[aria-label="Back to home"]{display:inline-flex;align-items:center;gap:.45em;line-height:1}

/* sections that hold a short list of topics (Ground Work pages) */
.section .tlist{display:block;margin:16px 0 0}
.section .tlist li{border-top:1px solid var(--hair);padding:14px 0 6px;scroll-margin-top:80px}
.section .tlist li:target h3{color:var(--accent)}
.tlist h3{font-family:var(--serif);font-weight:500;font-size:1.15rem;margin:0 0 4px}
.tlist p{margin:0 0 6px;font-size:.92rem}
