/* Noprint, the layer under the paper: ⌘K, the shortcuts sheet, stamps, the seal, the torch, the blind lines. Every page loads it. */
:root { --np-bg: #F2EFE7; --np-bg0: rgba(242, 239, 231, 0); --np-ink: #0E0F0B; --np-wall: rgba(58, 52, 39, .55); --np-lip: rgba(255, 255, 255, .92); --np-blind: #E6E0D2; --tx: 50vw; --ty: 40vh }
:root[data-np-dark] { --np-ink: #F2EFE7; --np-wall: rgba(0, 0, 0, .85); --np-lip: rgba(255, 255, 255, .16); --np-blind: #0D0E0B }
::selection { background: #0E0F0B; color: #F2EFE7 }
:root[data-np-dark] ::selection { background: #F2EFE7; color: #0E0F0B }

/* stamps: a line pressed into the paper, then lifted */
.np-stamp { position: fixed; inset: 0; z-index: 10001; display: grid; place-content: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.np-stamp::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 45% at 50% 50%, var(--np-bg) 40%, var(--np-bg0) 100%), var(--np-bg); opacity: .84 }
.np-stamp b { display: block; font: italic 400 clamp(64px, 10vw, 150px)/1 'Instrument Serif', Georgia, serif; letter-spacing: -.02em; color: var(--np-blind);
  text-shadow: 0 0 0 transparent, 0 0 0 transparent; transform: scale(1.07); transition: transform .32s cubic-bezier(.2, .9, .25, 1.2), text-shadow .4s ease .08s }
.np-stamp span { display: block; margin-top: 18px; font: 500 15px/1.5 'Geist Mono', ui-monospace, monospace; letter-spacing: .02em; color: var(--np-ink); opacity: 0; transform: translateY(6px); transition: opacity .4s ease .3s, transform .4s ease .3s }
.np-stamp.in { opacity: 1 }
.np-stamp.in b { transform: scale(1); text-shadow: -2px -2px 2px var(--np-wall), 2px 2px 1px var(--np-lip) }
.np-stamp.in span { opacity: .78; transform: none }
.np-stamp.out { opacity: 0; transition: opacity .7s ease }

/* the seal: hold the mouse on the paper and a notary-style blind seal is pressed where you stand */
.np-seal { position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; z-index: 9989; pointer-events: none; transform: scale(1.12); opacity: 0;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.25), opacity .16s ease }
.np-seal.in { transform: scale(1); opacity: 1 }
.np-seal.out { opacity: 0; transition: opacity 1.4s ease }
.np-seal svg { width: 100%; height: 100%; overflow: visible }

/* the torch: the room goes dark and the light follows you */
.np-veil { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle 230px at var(--tx) var(--ty), rgba(255, 244, 214, .07) 0, rgba(9, 8, 6, .2) 38%, rgba(9, 8, 6, .9) 78%, rgba(9, 8, 6, .95) 100%) }
:root[data-np-torch] .np-veil { opacity: 1 }
:root[data-np-torch] body { cursor: none }
:root[data-np-torch] .np-blind { color: var(--np-bg) }

/* blind lines: pressed into the margins, no ink, nearly invisible until the light rakes across them */
.np-blind { position: absolute; z-index: 9989; pointer-events: none; user-select: none; white-space: nowrap; font: 600 15px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .34em; text-transform: uppercase;
  color: var(--np-blind); text-shadow: -1px -1px 1px rgba(58, 52, 39, .1), 1px 1px 0 rgba(255, 255, 255, .3); transform-origin: 0 0; transition: text-shadow .12s linear }
.np-blind.v { transform: rotate(-90deg) }
.np-blind.h { font: italic 400 30px/1 'Instrument Serif', Georgia, serif; letter-spacing: 0; text-transform: none }
:root[data-np-dark] .np-blind { text-shadow: -1px -1px 1px rgba(0, 0, 0, .5), 1px 1px 0 rgba(255, 255, 255, .03) }
@media (max-width: 1180px) { .np-blind.v { display: none } }

/* ⌘K */
.np-k { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: start center; padding-top: 14vh; background: rgba(20, 18, 12, .28); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s ease }
.np-k.in { opacity: 1 }
.np-k .box { width: min(640px, calc(100vw - 32px)); background: #F2EFE7; color: #0E0F0B; border-radius: 22px; overflow: hidden; transform: translateY(8px) scale(.985); transition: transform .2s cubic-bezier(.2, .9, .3, 1.1);
  box-shadow: 0 30px 80px rgba(20, 16, 8, .28), 0 0 0 1px rgba(14, 16, 10, .08), inset 0 1px 0 rgba(255, 255, 255, .8) }
.np-k.in .box { transform: none }
.np-k label { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(14, 16, 10, .08); background: #E9E4D8; box-shadow: inset 1px 1px 3px rgba(58, 52, 39, .14) }
.np-k label svg { width: 20px; height: 20px; flex: none }
.np-k input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 18px 'Host Grotesk', system-ui, sans-serif; letter-spacing: -.02em; color: #0E0F0B }
.np-k input::placeholder { color: #8A8376 }
.np-k kbd, .np-sheet kbd { font: 500 11px 'Geist Mono', monospace; padding: 3px 7px; border-radius: 7px; background: #E0D9C9; color: #5F594D; box-shadow: inset 1px 1px 2px rgba(58, 52, 39, .22), inset -1px -1px 1px rgba(255, 255, 255, .7) }
.np-k .list { max-height: min(56vh, 460px); overflow: auto; padding: 8px }
.np-k .grp { font: 500 10.5px 'Geist Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #8A8376; padding: 12px 14px 6px }
.np-k .it { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; cursor: pointer; font: 500 15px 'Host Grotesk', system-ui, sans-serif; letter-spacing: -.015em }
.np-k .it .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #E9E4D8; flex: none; font: 600 12px 'Geist Mono', monospace; color: #5F594D; box-shadow: inset 1px 1px 2px rgba(58, 52, 39, .16) }
.np-k .it .ic svg { width: 15px; height: 15px }
.np-k .it small { display: block; font: 400 13px 'Host Grotesk', system-ui, sans-serif; color: #7A7365; letter-spacing: 0; margin-top: 1px }
.np-k .it .r { margin-left: auto; font: 500 12px 'Geist Mono', monospace; color: #8A8376; white-space: nowrap }
.np-k .it.on { background: #0E0F0B; color: #F2EFE7 }
.np-k .it.on small, .np-k .it.on .r { color: #B5AE9F }
.np-k .it.on .ic { background: #2A2A24; color: #F2EFE7; box-shadow: none }
.np-k .quote { margin: 6px 6px 4px; padding: 18px 20px; border-radius: 16px; background: #FBFAF6; box-shadow: 0 0 0 1px rgba(14, 16, 10, .06) }
.np-k .quote p { margin: 0; font: 500 16px/1.45 'Host Grotesk', system-ui, sans-serif; letter-spacing: -.015em }
.np-k .quote .up { color: #3F6212 } .np-k .quote .down { color: #A8321A }
.np-k .quote .z { float: right; margin: -4px 0 0 18px; font: italic 400 46px/1 'Instrument Serif', serif; color: #E1DACB; text-shadow: -1px -1px 1px rgba(58, 52, 39, .45), 1px 1px 1px #fff }
.np-k .quote .dim { display: block; margin-top: 6px; font: 500 12px 'Geist Mono', monospace; color: #8A8376 }
.np-k .empty { padding: 26px 18px; text-align: center; color: #7A7365; font: 400 14px 'Host Grotesk', system-ui, sans-serif }
.np-k .foot { display: flex; gap: 16px; align-items: center; padding: 11px 18px; border-top: 1px solid rgba(14, 16, 10, .07); font: 500 11.5px 'Geist Mono', monospace; color: #8A8376 }
.np-k .foot span:last-child { margin-left: auto }

/* the shortcuts sheet */
.np-sheet { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(20, 18, 12, .28); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s ease }
.np-sheet.in { opacity: 1 }
.np-sheet .box { width: min(520px, calc(100vw - 32px)); background: #F2EFE7; color: #0E0F0B; border-radius: 22px; padding: 26px 28px; box-shadow: 0 30px 80px rgba(20, 16, 8, .28), 0 0 0 1px rgba(14, 16, 10, .08) }
.np-sheet h3 { margin: 0 0 16px; font: 600 24px 'Host Grotesk', system-ui, sans-serif; letter-spacing: -.04em }
.np-sheet h3 i { font: italic 400 1.18em 'Instrument Serif', serif; letter-spacing: -.01em }
.np-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font: 500 14.5px 'Host Grotesk', system-ui, sans-serif; letter-spacing: -.01em }
.np-sheet dt { display: flex; gap: 5px; justify-content: flex-end } .np-sheet dd { margin: 0; color: #3D3A33 }
.np-sheet p { margin: 20px 0 0; font: italic 400 20px/1.3 'Instrument Serif', serif; color: #7A7365 }

/* a block that tries to print */
.np-flat { position: fixed; inset: 0; z-index: 10000; background: #F2EFE7; display: grid; place-items: center; opacity: 0; transition: opacity .3s ease; cursor: pointer; color: #0E0F0B }
.np-flat.in { opacity: 1 }
.np-flat .cap { position: absolute; left: 0; right: 0; top: 12vh; text-align: center; font: 600 clamp(28px, 4vw, 52px)/1.1 'Host Grotesk', system-ui, sans-serif; letter-spacing: -.045em }
.np-flat .cap i { font: italic 400 1.16em 'Instrument Serif', serif; letter-spacing: -.01em }
.np-flat .sub { position: absolute; left: 0; right: 0; bottom: 10vh; text-align: center; font: 500 13px 'Geist Mono', monospace; color: #8A8376 }
.np-flat svg { width: min(1000px, 92vw); height: auto; overflow: visible }

/* the hero's cursor knows who is reading */
.np-who { position: fixed; left: 0; top: 0; z-index: 9995; pointer-events: none; padding: 4px 9px 5px; border-radius: 8px; background: #0E0F0B; color: #F2EFE7; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .04em;
  opacity: 0; transition: opacity .25s ease; white-space: nowrap; box-shadow: 0 6px 16px rgba(14, 16, 10, .18) }
.np-who.on { opacity: 1 }
:root[data-np-dark] .np-who { background: #F2EFE7; color: #0E0F0B }

/* the mark: two legs that lock */
.np-legs path { transition: transform .45s cubic-bezier(.3, 1.6, .4, 1) }
a:hover .np-legs path:first-child, .np-legs:hover path:first-child { transform: translate(-1.6px, -1.6px) }
a:hover .np-legs path:last-child, .np-legs:hover path:last-child { transform: translate(1.6px, 1.6px) }
.np-legs.lock path { transition-duration: .18s; transform: none !important }

@media (prefers-reduced-motion: reduce) { .np-stamp b, .np-seal, .np-k .box, .np-legs path { transition: none } }
