/* spriggansecurity.com as a grove. Rutile, December 2026. Inks are Grove's. */
@font-face { font-family: Cozette; src: url('kit/CozetteVector.woff2') format('woff2'); }
:root { --deep:#0b0f0a; --ground:#171b15; --panel:#1c211a; --rule:#3b4636; --text:#dcd4c1; --dim:#afa994; --moss:#a9c58a; --phos:#7fd6c0; --gold:#e3b15c; --pink:#ffb6cc;
  --hi: var(--phos); --mid: var(--phos); --lo: #24463f; --s: 1; }
[data-light=rose] { --hi: var(--pink); --mid: var(--pink); --lo: #4a2a36; }
[data-light=amber] { --hi: var(--gold); --mid: var(--gold); --lo: #4a3a1c; }
* { box-sizing: border-box; }
html { background: var(--deep); color-scheme: dark; }
body { margin: 0; color: var(--text); font: 17px/1.65 'DM Sans', system-ui, sans-serif; }
a { color: var(--moss); }
kbd { font: 13px Cozette, ui-monospace, monospace; color: var(--text); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; }
[hidden] { display: none !important; }

/* ---- a page with scripts off, or with the list asked for: the words, if it is a thing's page, then places and what each holds */
.mast, main, #words { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }
.mast { padding-top: 3rem; }
.mast h1 { font: 500 44px/1.1 Fraunces, Georgia, serif; margin: 0 0 6px; }
.mast h1 a { color: inherit; text-decoration: none; }
#words { padding-bottom: 2rem; margin-bottom: 1rem; border-bottom: 1px dotted var(--rule); }
.mast p { color: var(--dim); margin: 0 0 1rem; }
main { padding-bottom: 4rem; }
main section { border-left: 2px solid var(--mid); padding-left: 1rem; margin-top: 2.4rem; }
main h2 { font: 13px Cozette, ui-monospace, monospace; margin: 0 0 0.4rem; }
main h2 a { color: var(--hi); text-decoration: none; }
main h2::before { content: '~/'; color: var(--dim); }
main ol { list-style: none; margin: 0; padding: 0; }
main li { padding: 0.5rem 0 0.7rem; }
main li a { font: 500 22px/1.25 Fraunces, Georgia, serif; color: var(--text); text-decoration: none; }
main li a:hover, main li a:focus-visible { color: var(--hi); outline: none; }
main li p { margin: 4px 0 0; font-size: 15px; color: var(--dim); max-width: 60ch; }
#wood, #prompt { display: none; }

/* ---- walking: the wood fills the window, the list stays for a reader that does not look */
.walking, .walking body { height: 100%; overflow: hidden; }
.walking .mast, .walking main { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.walking #words { display: none; } /* the frame shows them */
.walking #wood { display: block; position: fixed; inset: 0; overflow: hidden; background: var(--deep); cursor: default; touch-action: pan-y; }
.walking #wood > * { position: absolute; left: 0; bottom: 0; will-change: transform; }
.walking #wood canvas { image-rendering: pixelated; }
#wood .view > *, #wood .view > div > * { position: absolute; left: 0; top: 0; } /* the div is the row up close: the ground, and on it the trees alight and whoever lives there */
#wood .lit { opacity: 0; transition: opacity 0.35s ease-out; }
#wood .lit.on { opacity: 1; }
/* two views of the same wood: far off, and up close. Going in is a drive toward the node (grove.js sets the point both turn about) */
#wood .view { transition: opacity 0.42s ease-out, transform 0.42s cubic-bezier(0.3, 0.7, 0.2, 1), visibility 0s; }
#wood[data-deep="0"] #close, #wood[data-deep="1"] #whole { opacity: 0; visibility: hidden; transition: opacity 0.42s ease-out, transform 0.42s cubic-bezier(0.3, 0.7, 0.2, 1), visibility 0s 0.42s; }
#wood[data-deep="0"] #close { transform: scale(0.45); }
#wood[data-deep="1"] #whole { transform: scale(2.4); }
@media (prefers-reduced-motion: reduce) { #wood .lit, #wood .view { transition: none !important; } }

/* ---- the line you type on, laid over the foot of the wood in the same letters */
.walking #prompt { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(16px * var(--s)); align-items: center; gap: calc(6px * var(--s));
  padding: 0 calc(12px * var(--s)); background: #050705; border-top: 1px solid var(--lo); font: calc(13px * var(--s))/1 Cozette, ui-monospace, monospace; z-index: 3; }
#prompt label { color: var(--hi); white-space: nowrap; }
#prompt input { flex: 0 1 24ch; min-width: 6ch; font: inherit; color: var(--text); background: none; border: 0; outline: 0; padding: 0; caret-color: var(--hi); }
#prompt output { flex: 1; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the frame you read in. grove.js sets where it stands and the mark it grows out of; the wood shows round it.
   The frame is the front of a stack: the surface you read is plain and quiet, and what is behind it is in dots. */
#reader { position: fixed; z-index: 2; animation: grow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes grow { from { transform: scale(0.03, 0.04); opacity: 0.4; } to { transform: none; opacity: 1; } }
#surface { position: absolute; inset: 0; display: flex; flex-direction: column; background: rgba(11, 15, 10, 0.95); border-top: 2px solid var(--hi);
  box-shadow: 0 0 0 1px var(--lo), 0 0 60px rgba(0, 0, 0, 0.6); }
#surface::before { content: ''; position: absolute; inset: -5px; pointer-events: none; background-repeat: no-repeat; /* corner marks, as on the panes */
  background-image: linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0), linear-gradient(var(--hi) 0 0);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px; }
#surface::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hi); opacity: 0; animation: scan 0.5s 0.2s ease-out; pointer-events: none; }
@keyframes scan { from { top: 0; opacity: 0.9; } to { top: 100%; opacity: 0; } }
#stack { position: absolute; inset: 0; isolation: isolate; } /* the nearer sheet lies over the further one */
.sheet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: flex-end; margin: 0; padding: 0 calc(8px * var(--s)); cursor: pointer;
  font: calc(13px * var(--s))/calc(14px * var(--s)) Cozette, ui-monospace, monospace; color: var(--text); border: 0; border-top: 1px solid var(--mid); box-shadow: 0 0 0 1px var(--lo);
  background: linear-gradient(#0b0f0a 0 calc(14px * var(--s)), transparent 0), rgba(11, 15, 10, 0.86) radial-gradient(var(--lo) 34%, transparent 36%) 0 0 / calc(2px * var(--s)) calc(2px * var(--s)); /* the name stands on plain ground; the dots begin under it */
  z-index: calc(4 - var(--n)); transform: translate(calc(var(--n) * 8px * var(--s)), calc(var(--n) * -14px * var(--s))); animation: slip 0.3s 0.22s ease-out backwards; }
.sheet:hover, .sheet:focus-visible { color: var(--text); border-top-color: var(--hi); outline: none; }
@keyframes slip { from { transform: none; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #reader, #surface::after, .sheet { animation: none; } }
#reader .bar { display: flex; gap: 1rem; padding: 0 calc(10px * var(--s)); flex: none; height: calc(23px * var(--s)); align-items: center; background: var(--lo); font: calc(13px * var(--s))/1 Cozette, ui-monospace, monospace; color: var(--text); white-space: nowrap; overflow: hidden; }
#shut { font: inherit; color: var(--hi); background: none; border: 0; padding: 0 0 0 1ch; cursor: pointer; }
#shut:hover, #shut:focus-visible { color: var(--text); outline: none; }
#where { flex: 1; overflow: hidden; text-overflow: ellipsis; }
#sofar { color: var(--hi); }
#page { position: relative; flex: 1; overflow-y: auto; padding: 0 clamp(18px, 5%, 52px) 4rem calc(clamp(18px, 5%, 52px) + 8px * var(--s)); outline: none; scrollbar-color: var(--lo) transparent; }
/* the rail down the near side: a tick for each heading, and a mark for how far down you are */
#rail { position: absolute; left: 0; top: calc(23px * var(--s) + 2px); bottom: 0; width: calc(7px * var(--s)); border-right: 1px solid var(--lo); pointer-events: none; }
#rail i { position: absolute; right: 0; width: 55%; height: 1px; background: var(--mid); opacity: 0.8; }
#rail::after { content: ''; position: absolute; left: 0; right: 0; height: calc(3px * var(--s)); top: calc(var(--at, 0) * (100% - 3px * var(--s))); background: var(--hi); }
/* the terminal in the ring */
.tty { padding-top: calc(8px * var(--s)); font: calc(13px * var(--s))/1.25 Cozette, ui-monospace, monospace; }
.tty #out div { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.25em; }
.tty .said { color: var(--hi); margin-top: 0.4em; }
.tty .dim { color: var(--dim); }
.tty a { color: var(--moss); }
#sh { display: flex; gap: 1ch; margin-top: 0.4em; }
#sh label { color: var(--hi); white-space: nowrap; }
#cmd { flex: 1; min-width: 0; font: inherit; color: var(--text); background: none; border: 0; outline: 0; padding: 0; caret-color: var(--hi); }

/* ---- a page of words: in the frame, or on its own with scripts off */
/* a post's picture: a low strip. With scripts on it is redrawn in dots, in the place's light (grove.js, dotted) */
article .cover { display: block; width: 100%; height: clamp(96px, 18vh, 168px); margin-top: 1.4rem; object-fit: cover; image-rendering: pixelated; border-bottom: 1px solid var(--lo); }
article img.cover { filter: grayscale(1) contrast(1.1) brightness(0.7); }
article .cover + h1 { margin-top: 1.1rem; }
article header h1 { font: 500 38px/1.12 Fraunces, Georgia, serif; margin: 1.6rem 0 10px; text-wrap: balance; }
article .about { font: calc(13px * var(--s))/1.3 Cozette, ui-monospace, monospace; color: var(--hi); margin: 0 0 2.2rem; }
article :is(h1, h2, h3, h4) { font-family: Fraunces, Georgia, serif; font-weight: 500; line-height: 1.2; margin: 2.2rem 0 0.6rem; }
article h2 { font-size: 28px; } article h3 { font-size: 22px; } article h4 { font-size: 18px; }
article p, article li { max-width: 68ch; }
article a { color: var(--hi); }
article code { font: 13px/1.5 Cozette, ui-monospace, monospace; background: var(--panel); padding: 1px 4px; border-radius: 3px; }
article pre { background: var(--panel); border-left: 2px solid var(--lo); padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
article pre code { background: none; padding: 0; }
/* code is coloured when the site is built (build.mjs, highlight.js); these are its classes, in Grove's inks */
.hljs-comment, .hljs-quote, .hljs-meta { color: var(--dim); }
.hljs-keyword, .hljs-built_in, .hljs-type, .hljs-selector-tag, .hljs-section { color: var(--phos); }
.hljs-string, .hljs-regexp, .hljs-symbol, .hljs-bullet { color: var(--gold); }
.hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable { color: var(--pink); }
.hljs-title, .hljs-name, .hljs-attr, .hljs-attribute, .hljs-property { color: var(--moss); }
article blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--rule); color: var(--dim); }
article table { border-collapse: collapse; font-size: 15px; }
article :is(th, td) { border-bottom: 1px solid var(--rule); padding: 6px 16px 6px 0; text-align: left; }
article hr { border: 0; border-top: 1px dotted var(--rule); margin: 2.5rem 0; }
article img { max-width: 100%; }
article ul.plain { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font: 13px Cozette, ui-monospace, monospace; }
article ul.plain li { border: 1px solid var(--lo); padding: 2px 8px; color: var(--hi); }
article ul.elsewhere { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; font: 13px Cozette, ui-monospace, monospace; }
article ul.elsewhere a { display: grid; justify-items: center; gap: 7px; text-decoration: none; --shade: var(--lo); }
@supports (color: color-mix(in srgb, red 50%, blue)) { article ul.elsewhere a { --shade: color-mix(in srgb, currentColor 58%, var(--deep)); } }
article ul.elsewhere a:is(:hover, :focus-visible) { color: var(--text); }
article ul.elsewhere svg { display: block; }
@media (max-width: 700px) { article header h1 { font-size: 30px; } }
