/* Little City Labs: shared styles for every page. */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }

:root {
  --glass: #0D1117;
  --bezel: #161B22;
  --rule: #30363D;
  --phosphor: #3FE08A;
  --phosphor-rgb: 63, 224, 138;
  --amber: #FFB000;
  --ink: #E6EDF3;
  --muted: #8B949E;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--glass); color: var(--ink); font-family: var(--mono); font-size: 15px; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-inline: 16px;
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
main { display: grid; place-items: center; align-content: center; gap: clamp(32px, 6vw, 56px); padding-block: 48px; }

.header { width: 100%; max-width: 1000px; display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.tube { will-change: opacity, filter; }
.mascot { flex: 0 0 auto; width: clamp(110px, 21vw, 220px); color: var(--phosphor); }
.mascot svg { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 2px rgba(var(--phosphor-rgb), .9)) drop-shadow(0 0 10px rgba(var(--phosphor-rgb), .45)) drop-shadow(0 0 26px rgba(var(--phosphor-rgb), .25)); }
.words { flex: 1 1 0; min-width: 0; width: 100%; display: grid; gap: 1.4rem; }
.wordmark { margin: 0; color: var(--phosphor); max-width: 640px; }
.wordmark svg { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 2px rgba(var(--phosphor-rgb), .9)) drop-shadow(0 0 10px rgba(var(--phosphor-rgb), .45)) drop-shadow(0 0 26px rgba(var(--phosphor-rgb), .25)); }
.tagline { margin: 0; min-height: 3em; max-width: 60ch; font-size: clamp(13px, 1.5vw, 16px); line-height: 1.5; color: rgba(var(--phosphor-rgb), .8); text-shadow: 0 0 8px rgba(var(--phosphor-rgb), .35); }
.cursor { display: inline-block; width: .6em; height: 1.05em; vertical-align: -0.15em; margin-left: .2em; background: var(--amber); box-shadow: 0 0 8px rgba(255, 176, 0, .6); animation: blink 1.1s steps(1) infinite; }
.typing .cursor { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.tube { animation: hum 3.7s ease-in-out infinite alternate; }
.tube.words { animation-duration: 4.3s; }
@keyframes hum { from { opacity: 1; } to { opacity: .9; } }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; gap: .6em; padding: 10px 18px; border: 1px solid rgba(var(--phosphor-rgb), .45); border-radius: 8px; background: rgba(13, 17, 23, .7);
  color: var(--phosphor); text-decoration: none; font-weight: 500; letter-spacing: .03em; transition: background .2s, box-shadow .2s, border-color .2s; }
.links a:hover { border-color: var(--phosphor); background: rgba(var(--phosphor-rgb), .08); box-shadow: 0 0 14px rgba(var(--phosphor-rgb), .3); }
.links a:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; }
.links .prompt { color: var(--muted); }
.links svg { width: 18px; height: 18px; fill: currentColor; }

footer { padding-block: 20px 28px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
footer a { color: var(--ink); text-decoration-color: rgba(var(--phosphor-rgb), .5); text-underline-offset: 3px; }
footer a:hover { color: var(--phosphor); }

.projects h2 { margin: 0 0 .7rem; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--phosphor); }
.projects .links { justify-content: flex-start; }
footer .links { margin-bottom: 18px; font-size: 15px; }
footer p { margin: 0; }

@media (max-width: 600px) {
  .header { flex-direction: column; align-items: stretch; text-align: center; }
  .mascot { align-self: center; width: 130px; }
  .wordmark { margin-inline: auto; width: 100%; }
  .projects .links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tube, .cursor { animation: none; }
}

/* Project pages: one readable column under the same phosphor look. */
.doc { display: block; place-items: normal; width: 100%; max-width: 860px; margin-inline: auto; padding-block: 28px 48px; line-height: 1.65; }
.doc a { color: var(--phosphor); text-underline-offset: 3px; text-decoration-color: rgba(var(--phosphor-rgb), .5); }
.doc a:hover { text-decoration-color: var(--phosphor); }
.doc code { font-family: var(--mono); color: var(--amber); }
.doc h2 { margin: 2.2em 0 .6em; font-size: 18px; font-weight: 500; color: var(--phosphor); text-shadow: 0 0 8px rgba(var(--phosphor-rgb), .35); }
.doc h2::before { content: '## '; color: var(--muted); text-shadow: none; }
.doc p { margin: 0 0 1em; }
.crumb { margin-bottom: 24px; font-size: 14px; }
.crumb a { text-decoration: none; }
.crumb .prompt { color: var(--muted); }

.hero { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); margin-bottom: 36px; }
.box { flex: 0 0 auto; width: clamp(180px, 34vw, 300px); margin: 0; }
.box img { display: block; width: 100%; height: auto; border-radius: 6px; }
.box figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.hero-words { flex: 1 1 0; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 56px); font-weight: 500; letter-spacing: .04em; line-height: 1.1; color: var(--phosphor);
  text-shadow: 0 0 2px rgba(var(--phosphor-rgb), .9), 0 0 12px rgba(var(--phosphor-rgb), .45), 0 0 28px rgba(var(--phosphor-rgb), .25); }
.descriptor { margin: .6em 0 .3em; font-size: 16px; }
.motto { margin: 0 0 1.4em; font-size: 13px; color: rgba(var(--phosphor-rgb), .8); }
.hero .links { justify-content: flex-start; }
.release { margin: 1.2em 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.release .hash { color: var(--muted); word-break: break-all; }

.shot { margin: 32px 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.plain { margin: 0; padding-left: 1.2em; }
.plain li { margin-bottom: .5em; }
.plain li::marker { content: '> '; color: var(--muted); }

@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: stretch; text-align: center; }
  .box { align-self: center; width: 220px; }
  .hero .links { justify-content: center; }
}
