/* the homepage's own styles, on top of the site template (build.py) */
/* the template styles every list for prose; these lists are not prose */
.list { margin: 0; }
.list li { margin: 0; }
.intro { font-family: "Alegreya", Georgia, serif; font-size: 20px; line-height: 1.7; color: rgba(0,0,0,0.88); margin-bottom: 52px; }
.intro a { color: inherit; text-decoration: underline 1px rgba(0,0,0,0.35); text-underline-offset: 3px; }
.intro a:hover { color: #000; text-decoration-color: #000; }

/* lists of pieces: a narrow first column for the star, titles after it */
.list { list-style: none; }
.list[hidden] { display: none; }
.list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline; }
.list li + li { margin-top: 12px; }
.list .star { font-size: 13px; color: #000; }
.list a { grid-column: 2; font-family: "Alegreya", Georgia, serif; font-size: 20px; line-height: 1.45; color: rgba(0,0,0,0.88); text-decoration: none; overflow-wrap: anywhere; }
.list a:hover { color: #000; text-decoration: underline 1px; text-underline-offset: 3px; }
/* the views: pick one to list its pieces below */
.views { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 48px 0 22px 24px; }
button.view { all: unset; cursor: pointer; font-family: "Alegreya Sans", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.05em; color: rgba(0,0,0,0.45); }
button.view:hover, button.view[aria-pressed="true"] { color: #000; }
button.view[aria-pressed="true"] { text-decoration: underline 1px; text-underline-offset: 4px; }
button.view:focus-visible { outline: 1px solid #000; outline-offset: 3px; }

/* the private notes, reached through index.html#private (signing in lands
   there): a plain folder tree, each level one small step in */
#tree[hidden] { display: none; }
#tree, .kids { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: start; }
.node { grid-column: 1 / -1; }
.dir > .kids { grid-column: 2; padding: 12px 0 8px; }
.dir > .kids[hidden] { display: none; }
.node + .node { margin-top: 12px; }
.dir { display: grid; grid-template-columns: subgrid; }
.dir > button.name { grid-column: 1 / -1; justify-self: start; }
button.name { all: unset; cursor: pointer; font-family: "Alegreya Sans", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.05em; line-height: 1.4; color: rgba(0,0,0,0.45); }
button.name:hover, .dir.open > button.name { color: #000; }
.n { margin-left: 0.5em; color: rgba(0,0,0,0.3); font-weight: 400; }
.doc { display: block; font-family: "Alegreya", Georgia, serif; font-size: 20px; line-height: 1.45; color: rgba(0,0,0,0.88); text-decoration: none; overflow-wrap: anywhere; }
a.doc:hover { color: #000; text-decoration: underline 1px; text-underline-offset: 3px; }
.k { font-family: "Alegreya Sans", sans-serif; font-size: 12.5px; letter-spacing: 0.06em; color: rgba(0,0,0,0.38); margin-left: 0.5em; }
.note { font-family: "Alegreya Sans", sans-serif; font-size: 13px; letter-spacing: 0.05em; color: rgba(0,0,0,0.45); }
.note a { color: inherit; }
@media (max-width: 720px) { #tree, .kids { grid-template-columns: 14px minmax(0, 1fr); } }
/* a subfolder's heading within a topic's view (notes / math) */
.list li.sub { display: block; padding-left: 24px; margin-top: 26px; font-family: "Alegreya Sans", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.05em; color: rgba(0,0,0,0.45); }
.list li.sub:first-child { margin-top: 0; }
