/* Headline tunnel on the blog index. The section is hidden until tunnel.js runs; without JavaScript the plain lists stay. */
.tn-track { display: none; position: relative; height: calc(100vh + (var(--tn-n) - 1) * 85vh); }
.tn-on .tn-track { display: block; }
.tn-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.tn-canvas { display: block; width: 100%; height: 100%; }
.tn-canvas.tn-link { cursor: pointer; }
.tn-index { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0.5rem 0; width: 15rem; max-height: calc(100vh - 2rem); overflow: hidden; font: 0.8rem/1.35 var(--sans); background: var(--paper); box-shadow: 0 0 1.5rem 1.5rem var(--paper); transition: opacity 0.25s; }
.tn-index.tn-off { display: none; }
.tn-index.tn-away { opacity: 0; pointer-events: none; }
.tn-index a { display: block; padding: 0.45rem 0.7rem; color: var(--ink-faint); text-decoration: none; border-left: 2px solid var(--rule); transition: color 0.3s, border-color 0.3s, background-color 0.15s; }
.tn-index a span { display: block; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-faint); }
.tn-index a.on { color: var(--ink); border-left-color: var(--accent); }
.tn-index a.on span { color: var(--accent); }
/* Hover: dark block, so that the reader sees the entry is a link. --ink and --paper swap in dark mode, so it inverts there too. */
.tn-index a:hover, .tn-index a:hover span { color: var(--paper); background: var(--ink); }
.tn-index a:hover { border-left-color: var(--accent); }
/* The hint is fixed to the window: the tunnel starts below the site header, so its own bottom edge is off screen at first. */
.tn-hint { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); padding: 0.4rem 1rem; font: 0.8rem var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 2rem; pointer-events: none; transition: opacity 0.5s; animation: tn-nudge 1.2s ease-in-out 0.8s 3; }
@keyframes tn-nudge { 50% { transform: translate(-50%, 0.4rem); } }
@media (prefers-reduced-motion: reduce) { .tn-hint { animation: none; } }
