/* Shared styles for the inner pages (About, Work). */
:root { --bg: #fafaf8; --ink: #111; --muted: #8a8a86; --line: #e6e6e2; --red: #b8343a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
@media (pointer: fine) { html, a, summary { cursor: none; } }

/* Lab-notebook graph paper: a fine blue grid with every fifth line a little darker. */
.grid-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(46,108,196,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(46,108,196,0.10) 1px, transparent 1px),
    linear-gradient(rgba(46,108,196,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(46,108,196,0.045) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply; z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.small { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.small a { transition: color .3s; }
.small a:hover, .small a.on { color: var(--ink); }

header { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 22px 40px; z-index: 4; background: linear-gradient(var(--bg) 60%, transparent); }
header nav { display: flex; gap: 32px; }

main { max-width: 1080px; margin: 0 auto; padding: 120px 40px 96px; }
h1 { font-weight: 300; font-size: 40px; letter-spacing: -0.02em; }
.rule { width: 40px; height: 1px; background: var(--ink); opacity: .25; margin: 28px 0; }
.sub { color: var(--muted); font-size: 15px; }

.enter { opacity: 0; filter: blur(6px); transform: translateY(8px); animation: enter 1s ease forwards; }
@keyframes enter { to { opacity: 1; filter: none; transform: none; } }

.cursor { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 10; border-radius: 50%; transform: translate(-50%, -50%); }
.dot { width: 4px; height: 4px; background: var(--ink); }
/* Reticle: four crosshair ticks around a faint circle. Rotates and opens over links, tightens on click. */
.ring { width: 40px; height: 40px; }
.ring svg { width: 100%; height: 100%; display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.ring.big svg { transform: rotate(45deg) scale(1.25); }
.ring.down svg { transform: scale(.7); }
@media (pointer: coarse) { .cursor { display: none; } }

@media (max-width: 640px) {
  header { padding: 20px; } header nav { gap: 18px; }
  main { padding: 96px 20px 64px; }
}
