/* baubra.com/work/<id>: a project's own page. Same family as the front page
   (dark, Geist, frosted glass, soft aurora), lighter: the aurora is plain CSS,
   tinted with the project's colours (--a, --b on <body>). */
:root { --bg: #07060d; --ink: #f4f2fb; --muted: rgba(236,232,250,.64); --line: rgba(255,255,255,.1); --line-strong: rgba(255,255,255,.2); --ease: cubic-bezier(.2,.8,.2,1); color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 17px/1.65 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }   /* (no background here: it would cover the glow) */
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; }

.sky { position: fixed; inset: -20%; z-index: -1; pointer-events: none; filter: blur(90px); opacity: .34; }
.sky i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; animation: drift 34s ease-in-out infinite alternate; }
.sky i:nth-child(1) { left: 0; top: -10%; background: var(--a); }
.sky i:nth-child(2) { right: -5%; top: 30%; background: var(--b); animation-duration: 42s; }
.sky i:nth-child(3) { left: 30%; bottom: -15%; background: #7c5cff; opacity: .5; animation-duration: 50s; }
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.15); } }

.nav { position: sticky; top: 14px; z-index: 10; width: min(1120px, calc(100% - 28px)); margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(14,12,24,.55); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.mark { width: 22px; height: 22px; border-radius: 7px; position: relative; overflow: hidden; background: conic-gradient(from 0deg, #8b6bff, #2fd6c3, #ff5fae, #8b6bff); animation: spin 9s linear infinite; }
.mark::after { content: ""; position: absolute; inset: 5px; border-radius: 3px; background: var(--bg); }
@keyframes spin { to { rotate: 360deg; } }
.nav nav { display: flex; gap: 4px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .93rem; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav nav .cta { color: var(--bg); background: var(--ink); font-weight: 550; }
@media (max-width: 560px) { .nav nav a:not(.cta):not(:first-child) { display: none; } }

main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.hero { padding: 64px 0 34px; max-width: 820px; }
.back { font: 500 13px/1 "Geist Mono", monospace; letter-spacing: .08em; color: var(--muted); }
.back:hover { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.meta span { padding: 5px 12px; border-radius: 999px; font-size: 13.5px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.meta .live { color: #7dffb0; border-color: rgba(125,255,176,.3); }
.meta .live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 10px #7dffb0; }
h1 { margin: 18px 0 0; font-size: clamp(46px, 8vw, 96px); line-height: .95; letter-spacing: -.05em; font-weight: 750;
  background: linear-gradient(100deg, #fff 30%, color-mix(in srgb, var(--a) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 18px 0 0; font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; transition: transform .25s var(--ease), background .2s, box-shadow .3s; }
.btn.primary { background: var(--ink); color: var(--bg); box-shadow: 0 0 44px -10px var(--a); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px -8px var(--a); }
.btn.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

.media { margin: 0; border-radius: 22px; overflow: hidden; background: #0c0a14; border: 1px solid var(--line); aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 25%, transparent), 0 40px 120px -40px var(--a); }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media.pixel video, .media.pixel img { image-rendering: pixelated; }
.media .art { width: 100%; height: 100%; display: grid; place-items: center; font-size: clamp(90px, 16vw, 180px); background: radial-gradient(circle at 30% 30%, var(--a), transparent 60%), radial-gradient(circle at 75% 75%, var(--b), transparent 60%), #0c0a14; }

.body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px 56px; padding: 56px 0 20px; align-items: start; }
.facts { position: sticky; top: 96px; padding: 22px; border-radius: 20px; background: rgba(14,12,24,.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 5px 0 0; font-weight: 600; }
.facts h2 { margin: 22px 0 10px; font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 10px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.story { max-width: 68ch; }
.lead { margin: 0 0 8px; font-size: clamp(20px, 2.3vw, 24px); line-height: 1.5; letter-spacing: -.01em; }
.block { margin-top: 36px; }
.block h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; font-weight: 700; }
.block h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--a), var(--b)); vertical-align: 2px; }
.block p { margin: 0; color: rgba(236,232,250,.8); }
.built { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.built li { position: relative; padding-left: 22px; color: rgba(236,232,250,.82); }
.built li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); }
.block.wide { grid-column: 1 / -1; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.shots figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .body { grid-template-columns: 1fr; padding-top: 36px; } .facts { position: static; } }

.neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 64px 0 0; }
.nb { display: block; padding: 20px 22px; border-radius: 20px; background: rgba(14,12,24,.55); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.nb::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%); opacity: .6; }
.nb:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.nb:last-child { text-align: right; }
.nb .k { display: block; font: 500 12px/1 "Geist Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nb b { display: block; margin-top: 10px; font-size: 22px; letter-spacing: -.02em; }
.nb .t { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 560px) { .neighbours { grid-template-columns: 1fr; } .nb:last-child { text-align: left; } }

.contact { margin: 72px 0 0; padding: clamp(28px, 5vw, 56px); border-radius: 26px; text-align: center; background: rgba(14,12,24,.55); border: 1px solid var(--line); }
.contact h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.05; }
.contact p { margin: 12px 0 24px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: min(1120px, calc(100% - 36px)); margin: 64px auto 0; padding: 24px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a:hover { color: var(--ink); }

/* ---- the Now feed (/now) and a project's own updates ---- */
.now .hero { padding-bottom: 20px; }
.updates { list-style: none; margin: 30px 0 0; padding: 0 0 0 26px; position: relative; max-width: 820px; }
.updates::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: linear-gradient(var(--a), var(--b) 60%, transparent); opacity: .5; }
.u { position: relative; padding: 0 0 30px 18px; }
.u::before { content: ""; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--a); box-shadow: 0 0 12px color-mix(in srgb, var(--a) 60%, transparent); }
.u time { display: block; font: 500 12.5px/1 "Geist Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.u-body { margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(14,12,24,.55); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.u-body p { margin: 0; color: rgba(236,232,250,.86); }
.u-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--a) 55%, transparent); color: color-mix(in srgb, var(--a) 70%, #fff); }
.u-tag:hover { background: color-mix(in srgb, var(--a) 18%, transparent); }
.u-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14.5px; color: #fff; }
.u-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.updates.compact { margin-top: 16px; }
.updates.compact .u { padding-bottom: 18px; }
.updates.compact .u-body { padding: 12px 14px; }
.u-all { margin: 4px 0 0; }
.u-all a { font-weight: 600; color: #fff; }
.u-all a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- "What I built", day by day (a project's log) ---- */
.log-intro { margin: -2px 0 0 !important; color: var(--muted) !important; }
.log { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; position: relative; }
.log::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: linear-gradient(var(--a), var(--b) 60%, transparent); opacity: .5; }
.day { position: relative; padding: 0 0 26px 18px; }
.day::before { content: ""; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--a); box-shadow: 0 0 12px color-mix(in srgb, var(--a) 60%, transparent); }
.day time { display: block; font: 500 12.5px/1 "Geist Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day-body { margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(14,12,24,.55); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.day-body h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.015em; font-weight: 700; }
.day-body > p { margin: 0; color: rgba(236,232,250,.84); }
.day-body details { margin-top: 12px; }
.day-body summary { cursor: pointer; width: fit-content; font-weight: 600; font-size: 14.5px; color: #fff; list-style: none; }
.day-body summary::-webkit-details-marker { display: none; }
.day-body summary::before { content: "+"; display: inline-block; width: 1.1em; color: var(--a); font-weight: 700; }
.day-body details[open] summary::before { content: "-"; }
.day-body summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.day-body details .built { margin-top: 12px; }
.day-body details .built li { font-size: 15.5px; }
