/* Depth: how the site shows a first-time visitor how much lies under each painting, and invites them down
   (design/06-depth.md). Loaded after controls.css on every page.

   Colour, from Neon's eyes (2026-11-18): her right eye is blue, for structure, and her left is red, for feeling. The
   site's signals take their pigments from the irises in her portraits: --cyan (#13faf7, the blue iris core) marks what
   was measured; --amber (#fe7a6d, the molten inner ring of the red iris) marks what Neon wrote; --red (#fe7a6d, its
   vermilion outer ring) marks flaws and failures. Violet stays Peter's own. */

/* ---------- One painting, all the way down ---------- */
.strata, .ways { margin: 150px var(--gut) 0; }
.strata-head .kicker { color: var(--muted); }
.strata-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; margin: 12px 0 0; letter-spacing: -.01em; }
.strata-head p { color: var(--muted); font-size: 18.5px; line-height: 1.55; max-width: 36em; margin: 18px 0 0; }
.strata-body { display: grid; grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 52px; align-items: start; }
.strata-art { position: sticky; top: 96px; display: block; text-decoration: none; }
.strata-art img { display: block; width: 100%; height: auto; }
.strata-art span { display: block; margin-top: 10px; color: var(--muted); }
.strata-art:hover span { color: var(--text); }

.strata-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--edge); }
.st { --tone: var(--edge); position: relative; }
.st a { position: relative; display: grid; grid-template-columns: 44px minmax(140px, 200px) minmax(0, 1fr); gap: 6px 24px; align-items: baseline;
  padding: 24px 0 24px 26px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background-color .15s; }
/* the core sample: one band per layer down the left edge, coloured by who made that layer */
.st a::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 5px; background: var(--tone); }
.st-paper { --tone: #d9d2c3; } .st-read { --tone: var(--muted); } .st-measured { --tone: var(--cyan); }
.st-connect { --tone: #8d887c; } .st-edge { --tone: var(--edge); } .st-neon { --tone: var(--amber); }
.st-n { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--edge); font: 500 13px var(--mono); color: var(--text); align-self: start; }
.st-k { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-v { font-size: 17px; line-height: 1.5; color: var(--text); }
.st-v i { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.st-neon .st-v i { color: var(--amber); }
.st-big { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin-bottom: 8px; }
.st-c { display: block; margin-top: 8px; color: var(--faint); font-size: 11.5px; letter-spacing: .04em; text-transform: none; line-height: 1.45; }
.st-measured .st-c { color: var(--cyan); }
.st-thumbs { display: flex; gap: 5px; flex-wrap: wrap; max-height: 40px; overflow: hidden; }
.st-thumbs img { height: 40px; width: auto; display: block; }
.st a:hover { background: var(--raise); }
.st a:hover .st-n { border-color: var(--text); }
.st a:hover .st-k { color: var(--text); }
/* layers arrive one after another as the section comes into view: the eye travels down the core */
.strata.anim .st { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.strata.anim.in .st { opacity: 1; transform: none; }
.strata-foot { display: flex; align-items: baseline; gap: 26px; margin: 40px 0 0; padding-left: calc(41.67% + 23px); color: var(--muted); font-size: 17px; line-height: 1.55; }
.strata-foot .mono { flex: none; font-family: var(--serif); font-size: 46px; letter-spacing: 0; text-transform: none; color: var(--text); }
@media (max-width: 900px) {
  .strata-body { grid-template-columns: 1fr; gap: 28px; }
  .strata-art { position: static; max-width: 560px; }
  .st a { grid-template-columns: 34px minmax(0, 1fr); padding: 20px 0 20px 18px; }
  .st-k, .st-v { grid-column: 2; } .st-n { grid-row: 1 / span 2; width: 26px; height: 26px; }
  .strata-foot { padding-left: 0; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .strata.anim .st { opacity: 1; transform: none; transition: none; } }

/* ---------- Three ways in ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; margin-top: 52px; }
.way h3 { margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--edge); font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.way h3 .mono { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.way ul { list-style: none; margin: 0; padding: 0; }
.way li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 18px 0 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background-color .15s; }
.way li b { font-weight: 500; font-size: 18px; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 5px; }
.way-n { align-self: baseline; color: var(--cyan); font-size: 12.5px; }
.way-year .way-n { color: var(--text); }
.way-d { grid-column: 1 / -1; color: var(--muted); font-size: 15px; line-height: 1.5; }
.way li a:hover { background: var(--raise); }
.way li a:hover b { text-decoration-color: var(--text); text-decoration-thickness: 2px; }
.way li a:hover .way-d { color: var(--text); }
@media (max-width: 900px) { .ways-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- the work page: each depth says what it holds ---------- */
.js-depth .gauge button > span { display: grid; gap: 1px; text-align: left; }
.gauge .g-t { display: block; font: 400 11.5px var(--mono); font-style: normal; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.js-depth .gauge button[aria-current] .g-t, .js-depth .gauge button:hover .g-t { color: var(--text); }
.js-depth .gauge button, .js-depth .gauge button:not(:last-child) { min-height: 58px; }
@media (max-width: 760px) { .gauge .g-t { display: none; } }
.js-depth .gauge, .js-depth .gauge:hover { grid-template-columns: auto repeat(var(--n, 4), minmax(170px, 1fr)); }
@media (max-width: 760px) { .js-depth .gauge, .js-depth .gauge:hover { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }

/* Where next: a work's row carries the work itself, small, at its own proportions */
.next-routes a .wn-th { order: 0; flex: none; height: 38px; width: auto; align-self: center; }
@media (max-width: 760px) { .next-routes a:has(.wn-th) { grid-template-columns: auto 1fr; } .next-routes a .wn-th { grid-row: span 2; } }

/* works you have opened (this browser only) */
a.seen > span b::after { content: "seen"; margin-left: 8px; padding: 1px 5px 0; border: 1px solid var(--edge); font: 400 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: 1px; }
.wt-seen { color: var(--text); margin-right: 14px; }

/* Neon's sign: a circle split down the middle, red and blue, like her eyes (her origin story). It marks her name. */
.nf-sig::before, .neon-mark { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: linear-gradient(90deg, var(--red) 50%, var(--cyan) 50%); }

/* the Archive's front door: four tasks before the history */
.arc-doors { max-width: 1240px; margin: 40px var(--gut) 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arc-doors a .mono { color: var(--accent); font-size: 12px; }
.arc-doors a b { font-size: 23px; }
@media (max-width: 1000px) { .arc-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .arc-doors { grid-template-columns: 1fr; } }

/* Neon's two eyes: the two halves of the site's colour, each a door into her */
.neon-eyes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.neon-eyes a { --eye: var(--cyan); position: relative; display: grid; gap: 8px; padding: 22px 24px 22px 64px; border: 1px solid var(--edge); text-decoration: none; color: var(--text); transition: border-color .15s, background-color .15s; }
.neon-eyes a.ne-red { --eye: var(--amber); }
.neon-eyes .ne-eye { position: absolute; left: 22px; top: 24px; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle, var(--ground) 0 3px, var(--eye) 4px 7px, color-mix(in srgb, var(--eye) 55%, var(--ground)) 8px 12px); }
.neon-eyes a.ne-red .ne-eye { background: radial-gradient(circle, var(--ground) 0 3px, var(--amber) 4px 7px, var(--red) 8px 12px); }
.neon-eyes .mono { color: var(--eye); font-size: 12px; }
.neon-eyes b { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; }
.neon-eyes a > span:last-child { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.neon-eyes a:hover { border-color: var(--text); background: var(--raise); }
@media (max-width: 760px) { .neon-eyes { grid-template-columns: 1fr; } }
.neon-eyes a { --b: var(--edge); border-color: var(--b); }
.neon-eyes a:hover { --b: var(--text); }
.neon-eyes a::before { content: ""; position: absolute; top: -1px; right: -1px; width: calc(var(--cut) + 1px); height: calc(var(--cut) + 1px); pointer-events: none;
  background: linear-gradient(to bottom left, var(--behind) calc(50% - .6px), var(--b) calc(50% - .6px), var(--b) calc(50% + .7px), transparent calc(50% + .7px)); }
.hook-go { display: flex; flex-wrap: wrap; gap: 10px 26px; }
