-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-BMwrGJFs.js
More file actions
32 lines (32 loc) · 31.2 KB
/
Copy pathchunk-BMwrGJFs.js
File metadata and controls
32 lines (32 loc) · 31.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import{h as $,r as f,bG as J,j as e,G as Q,L as F,aH as X,bu as Z,bt as ee,bS as P,bD as te,p as z,cz as O,m as I,bq as se,b as ae,J as E,ah as re,c7 as R,av as oe,T as le,cA as G,cp as Y}from"../entries/pages.BZkyDMuN.js";import{c as V,e as ne}from"./chunk-L0vvDMcm.js";import{n as T,a as ie}from"./chunk-DRCJYM67.js";import{S as D}from"./chunk-D8YfSULr.js";import{M as q}from"./chunk-CBgkggb1.js";import{c as S}from"./chunk-DI5-2o8j.js";import{as as M}from"./chunk-TXUbdm-T.js";import{C as H}from"./chunk-Cb7tTquJ.js";import{u as ce}from"./chunk-BDDGwbDI.js";import{u as W}from"./chunk-C4e7j1Ww.js";import{T as de,a as v,b as xe}from"./chunk-CyGlBXXT.js";import{M as pe,a as N,b as me}from"./chunk-BTZLJmO2.js";import{M as ge}from"./chunk-BemV9vpN.js";import"./chunk-BXl3LOEh.js";/* empty css */import"./chunk-CNYavUpv.js";import"./chunk-BlCXjT-S.js";import"./chunk-CGuUhYlO.js";import"./chunk-CTVhs4zQ.js";import"./chunk-pA04IuM2.js";import"./chunk-DZOcISe9.js";import"./chunk-Dy64sI8m.js";import"./chunk-DHHx9tvU.js";import"./chunk-DZ3G3RW6.js";import"./chunk-N45wCFfU.js";import"./chunk-CZP1mgpy.js";import"./chunk-BassnvpC.js";import"./chunk-DPK_ul2B.js";import"./chunk-ZOINVQ9s.js";const ue=()=>{const{category:a,slugId:d}=$(),[x,c]=f.useState(null),[j,g]=f.useState(!0),{headerFont:p,setHeaderFont:t,bodyFont:h,setBodyFont:n,availableFonts:l}=J(),r=f.useRef(null);if(f.useEffect(()=>{(async()=>{g(!0);try{const b=await fetch(`/logs/${a}/${a}.piml`);if(!b.ok){c({attributes:{title:"Category not found"},body:""}),g(!1);return}const k=await b.text(),A=(z.parse(k).logs||[]).find(C=>C.slug===d);if(A)try{const C=await fetch(`/logs/${a}/${d}.txt`);if(C.ok){const K=await C.text();c({attributes:A,body:K})}else c({attributes:A,body:A.description||""})}catch{c({attributes:A,body:A.description||""})}else c({attributes:{title:"Log not found"},body:""})}catch{c({attributes:{title:"Error loading log"},body:""})}g(!1)})()},[a,d]),j)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[#050505] text-white",children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"h-px w-24 bg-white/10 relative overflow-hidden",children:e.jsx("div",{className:"absolute inset-0 bg-emerald-400 animate-progress origin-left"})}),e.jsx("span",{className:"font-mono text-[10px] text-gray-500 uppercase tracking-widest",children:"Accessing_Log"})]})});if(!x||!x.attributes.title)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[#050505] text-white font-mono uppercase",children:"404 // Log Not Found"});const{attributes:s,body:u}=x,w=S[a.toLowerCase()]||S.primary[400],m=({label:o,value:b,icon:k})=>b?e.jsxs("div",{className:"flex flex-col gap-1 py-4 border-b border-white/5",children:[e.jsxs("span",{className:"flex items-center gap-2 text-[10px] font-mono text-gray-500 uppercase tracking-widest",children:[k&&e.jsx(k,{size:12,weight:"bold",className:"text-emerald-500"}),o]}),e.jsx("span",{className:"text-sm text-gray-200",children:b})]}):null,y=o=>o==null?null:e.jsxs("div",{className:"flex flex-col gap-2 py-4 border-b border-white/5",children:[e.jsxs("span",{className:"text-[10px] font-mono text-gray-500 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(O,{size:12,weight:"bold",className:"text-yellow-500"}),"Rating"]}),e.jsxs("div",{className:"flex gap-1",children:[[...Array(5)].map((b,k)=>e.jsx(O,{size:16,weight:"fill",className:k<o?"text-yellow-500":"text-white/10"},k)),e.jsxs("span",{className:"ml-2 font-mono text-xs text-gray-400",children:["(",o,"/5)"]})]})]}),i={"font-sans":"'Space Mono', monospace","font-mono":"'JetBrains Mono', monospace","font-inter":"'Inter', sans-serif","font-arvo":"'Arvo', serif","font-playfairDisplay":"'Playfair Display', serif","font-syne":"'Syne', sans-serif","font-outfit":"'Outfit', sans-serif","font-ibm-plex-mono":"'IBM Plex Mono', monospace","font-instr-serif":"'Instrument Serif', serif","font-nunito":"'Nunito', sans-serif"};return e.jsxs("div",{className:"min-h-screen bg-[#050505] text-white selection:bg-emerald-500/30",children:[e.jsx(D,{title:x?`${x.attributes.title} | Fezcodex`:null,description:x?x.body.substring(0,150):null,image:x?.attributes?.image}),e.jsx("style",{children:`
.custom-prose h1, .custom-prose h2, .custom-prose h3,
.custom-prose h4, .custom-prose h5, .custom-prose h6 {
font-family: ${i[p]||i["font-sans"]} !important;
}
`}),e.jsxs("section",{className:"relative h-[60vh] md:h-[70vh] flex flex-col justify-end overflow-hidden border-b border-white/10",children:[e.jsxs("div",{className:"absolute inset-0 z-0",children:[e.jsx(Q,{seed:s.title,className:"w-full h-full opacity-60"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#050505] via-[#050505]/60 to-transparent"}),e.jsx("div",{className:"absolute inset-0 bg-noise opacity-[0.05] mix-blend-overlay"})]}),e.jsxs("div",{className:"relative z-10 mx-auto max-w-7xl w-full px-6 pb-20",children:[e.jsxs(F,{to:"/logs",className:"group mb-12 inline-flex items-center gap-2 text-xs font-mono text-gray-500 hover:text-white transition-colors uppercase tracking-widest",children:[e.jsx(X,{weight:"bold",className:"group-hover:-translate-x-1 transition-transform"}),e.jsx("span",{children:"Archive"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-8",children:[e.jsx("span",{className:"px-3 py-1 text-[10px] font-mono font-bold uppercase tracking-widest border backdrop-blur-md",style:{color:w,borderColor:`${w}33`,backgroundColor:`${w}15`},children:a}),s.updated&&e.jsx("span",{className:"px-3 py-1 text-[10px] font-mono font-bold uppercase tracking-widest text-rose-400 border border-rose-400/20 bg-rose-400/5",children:"Updated"})]}),e.jsx("h1",{className:"text-5xl md:text-8xl font-black uppercase tracking-tighter leading-none mb-8 max-w-4xl",children:s.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-8 text-gray-400 font-mono text-[10px] uppercase tracking-[0.2em]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(V,{size:16,className:"text-emerald-500"}),e.jsxs("span",{children:["Published: ",s.date]})]}),s.slug&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Z,{size:16,className:"text-emerald-500"}),e.jsxs("span",{children:["ID: ",s.slug]})]})]})]})]}),e.jsx("div",{className:"mx-auto max-w-7xl px-6 py-20 lg:py-32",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16 md:gap-24",children:[e.jsxs("main",{className:"lg:col-span-8",children:[e.jsx("article",{ref:r,className:`prose prose-xl prose-dark prose-emerald max-w-none custom-prose ${h}
prose-headings:uppercase prose-headings:tracking-tighter prose-headings:font-black
prose-p:text-gray-300 prose-p:leading-relaxed
prose-a:text-emerald-400 prose-a:no-underline hover:prose-a:underline
prose-blockquote:border-l-4 prose-blockquote:border-emerald-500 prose-blockquote:bg-white/5 prose-blockquote:py-1 prose-blockquote:px-6
prose-strong:text-white prose-code:text-emerald-300 prose-code:bg-emerald-500/10 prose-code:px-1 prose-code:`,children:e.jsx(M,{content:u,components:{a:o=>e.jsx(q,{...o,className:"text-emerald-400 hover:text-white transition-colors underline decoration-emerald-500/30 underline-offset-4"})}})}),s.tags&&s.tags.length>0&&e.jsx("div",{className:"mt-20 pt-12 border-t border-white/10",children:e.jsx("div",{className:"flex flex-wrap gap-2",children:s.tags.map(o=>e.jsxs("span",{className:"px-3 py-1.5 bg-white/[0.03] border border-white/[0.08] text-[10px] font-mono text-gray-500 uppercase tracking-widest hover:text-emerald-400 hover:border-emerald-500/30 hover:bg-emerald-500/5 transition-colors cursor-default",children:["#",o]},o))})})]}),e.jsx("aside",{className:"lg:col-span-4",children:e.jsxs("div",{className:"sticky top-24 space-y-12",children:[e.jsxs("div",{className:"border border-white/[0.08] p-8 bg-white/[0.015] backdrop-blur-sm relative overflow-hidden group",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-emerald-500/40 via-transparent to-transparent"}),e.jsx("div",{className:"absolute top-0 left-0 w-1 h-0 group-hover:h-full bg-emerald-500/60 transition-all duration-500"}),e.jsxs("h3",{className:"font-mono text-[10px] font-bold text-emerald-500 uppercase tracking-widest mb-8 flex items-center gap-2",children:[e.jsx(T,{weight:"fill"}),"Manifest Data"]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx(m,{label:"Category",value:s.category,icon:T}),e.jsx(m,{label:"Creator/Author",value:s.author||s.director||s.artist||s.creator||s.by,icon:ee}),e.jsx(m,{label:"Platform/Source",value:s.platform||s.source,icon:P}),e.jsx(m,{label:"Release Year",value:s.year,icon:te}),e.jsx(m,{label:"Last Updated",value:s.updated,icon:V}),y(s.rating)]}),s.link&&e.jsxs("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"mt-8 flex items-center justify-start gap-3 group/link border border-emerald-500/20 hover:border-emerald-500 p-4 transition-all",children:[e.jsx("span",{className:"text-xs font-mono uppercase tracking-widest text-emerald-400 group-hover/link:text-emerald-500 transition-colors",children:"Access External Source"}),e.jsx(P,{className:"text-emerald-400 transition-transform group-hover/link:translate-x-1 group-hover/link:-translate-y-1",size:20})]})," "]}),e.jsxs("div",{className:"border border-white/[0.08] p-8 bg-white/[0.015] backdrop-blur-sm relative overflow-hidden group",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-amber-500/30 via-transparent to-transparent"}),e.jsx("div",{className:"absolute top-0 left-0 w-1 h-0 group-hover:h-full bg-amber-500/60 transition-all duration-500"}),e.jsxs("h3",{className:"font-mono text-[10px] font-bold text-amber-400 uppercase tracking-widest mb-8 flex items-center gap-2",children:[e.jsx(T,{weight:"fill"}),"Typography Lab"]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("span",{className:"text-[9px] font-mono text-gray-500 uppercase tracking-widest block ml-1",children:"Header Font"}),e.jsx(H,{label:"Select Font",options:l.map(o=>({label:o.name,value:o.id})),value:p,onChange:t,variant:"brutalist",fullWidth:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("span",{className:"text-[9px] font-mono text-gray-500 uppercase tracking-widest block ml-1",children:"Body Font"}),e.jsx(H,{label:"Select Font",options:l.map(o=>({label:o.name,value:o.id})),value:h,onChange:n,variant:"brutalist",fullWidth:!0})]})]}),e.jsx("div",{className:"mt-8 pt-4 border-t border-white/5 text-[9px] font-mono text-gray-600 uppercase tracking-widest flex justify-between",children:e.jsx("span",{children:"You can also change them in Settings page"})})]})]})})]})})]})},fe=()=>{const{category:a,slugId:d}=$(),[x,c]=f.useState(null),[j,g]=f.useState(!0),{scrollY:p}=ce(),t=W(p,[0,400],[1,0]),h=W(p,[0,400],[0,100]);if(f.useEffect(()=>{(async()=>{g(!0);try{const u=await fetch(`/logs/${a}/${a}.piml`);if(!u.ok){g(!1);return}const w=await u.text(),i=(z.parse(w).logs||[]).find(o=>o.slug===d);if(i)try{const o=await fetch(`/logs/${a}/${d}.txt`);if(o.ok){const b=await o.text();c({attributes:i,body:b})}else c({attributes:i,body:i.description||""})}catch{c({attributes:i,body:i.description||""})}}catch(u){console.error(u)}g(!1)})()},[a,d]),j||!x)return e.jsx("div",{className:"min-h-screen bg-[#F5F5F0] flex items-center justify-center font-outfit text-[#1A1A1A]/40 text-xs uppercase tracking-widest",children:j?"Loading Log...":"Log Not Found"});const{attributes:n,body:l}=x,r=S[a.toLowerCase()]||S.primary[400];return e.jsxs("div",{className:"min-h-screen bg-[#F5F5F0] text-[#1A1A1A] selection:bg-[#C0B298] selection:text-black",children:[e.jsx(D,{title:`${n.title} | Fezcodex Logs`,description:l.substring(0,150),image:n.image}),e.jsxs(I.div,{style:{opacity:t,y:h},className:"relative h-[60vh] w-full flex flex-col justify-center items-center text-center px-6",children:[e.jsx("div",{className:"absolute inset-0 z-0 opacity-20 pointer-events-none",children:e.jsx(se,{seed:n.title,className:"w-full h-full mix-blend-multiply filter grayscale contrast-125"})}),e.jsxs("div",{className:"relative z-10 max-w-4xl space-y-8",children:[e.jsxs(F,{to:"/logs",className:"inline-flex items-center gap-2 font-outfit text-xs uppercase tracking-widest text-[#1A1A1A]/40 hover:text-[#8D4004] transition-colors mb-4",children:[e.jsx(ae,{})," Back to Archives"]}),e.jsx("div",{className:"flex items-center justify-center gap-4",children:e.jsx("div",{className:"flex gap-1",children:[...Array(5)].map((s,u)=>e.jsx(E,{size:16,weight:"fill",className:u<(n.rating||0)?"text-[#8D4004]":"text-[#1A1A1A]/10"},u))})}),e.jsx("h1",{className:"font-playfairDisplay text-5xl md:text-7xl lg:text-8xl text-[#1A1A1A] leading-[0.9]",children:n.title}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-6 font-outfit text-xs uppercase tracking-widest text-[#1A1A1A]/50",children:[e.jsxs("span",{className:"flex items-center gap-2 px-3 py-1 rounded-full border font-bold text-black",style:{backgroundColor:r,borderColor:r},children:[e.jsx(ie,{size:14,weight:"fill"})," ",a]}),n.author&&e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(re,{size:14})," ",n.author]}),e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(ne,{size:14})," ",n.date]})]})]})]}),e.jsxs("div",{className:"max-w-[800px] mx-auto px-6 pb-32 relative z-20 bg-[#F5F5F0]",children:[e.jsx("div",{className:`prose prose-stone prose-lg max-w-none\r
prose-headings:font-playfairDisplay prose-headings:font-normal prose-headings:text-[#1A1A1A]\r
prose-p:font-outfit prose-p:text-[#1A1A1A]/80 prose-p:leading-relaxed\r
prose-a:text-[#8D4004] prose-a:no-underline prose-a:border-b prose-a:border-[#8D4004]/30 hover:prose-a:border-[#8D4004] prose-a:transition-colors\r
prose-strong:font-medium prose-strong:text-[#1A1A1A]\r
prose-li:font-outfit prose-li:text-[#1A1A1A]/80\r
prose-blockquote:border-l-[#8D4004] prose-blockquote:bg-[#EBEBEB] prose-blockquote:py-4 prose-blockquote:px-6 prose-blockquote:not-italic\r
`,children:e.jsx(M,{content:l,components:{a:s=>e.jsx(q,{...s,className:"text-[#8D4004] hover:text-black transition-colors"})}})}),e.jsxs("div",{className:"mt-20 pt-12 border-t border-[#1A1A1A]/10 flex flex-col items-center gap-8",children:[n.link&&e.jsxs("a",{href:n.link,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 bg-[#1A1A1A] text-white px-8 py-4 rounded-full font-outfit text-xs uppercase tracking-widest hover:bg-[#8D4004] transition-colors",children:["External Source ",e.jsx(R,{weight:"bold"})]}),e.jsx("div",{className:"flex gap-4",children:e.jsxs("button",{className:"flex items-center gap-2 font-outfit text-xs uppercase tracking-widest text-[#1A1A1A]/60 hover:text-[#8D4004] transition-colors",children:[e.jsx(oe,{size:16})," Share Entry"]})})]})]})]})},he=`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.28 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")`,U="radial-gradient(1100px 600px at 85% -10%, #E8DECE 0%, transparent 55%), radial-gradient(900px 700px at 0% 110%, #EDE3D3 0%, transparent 50%)",be={book:"#9E4A2F",movie:"#C96442",video:"#B88532",game:"#6B8E23",article:"#8A6A32",music:"#9E4A2F",series:"#B88532",food:"#C96442",websites:"#6B8E23",tools:"#2E2620",event:"#B88532",quote:"#4B6B8A"},B=a=>new Date(a).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"}),je=()=>{const{category:a,slugId:d}=$(),[x,c]=f.useState(null),[j,g]=f.useState(!0),p=be[a?.toLowerCase()]||"#2E2620";if(f.useEffect(()=>{let r=!1;return(async()=>{g(!0);try{const s=await fetch(`/logs/${a}/${a}.piml`);if(!s.ok){r||c(null);return}const u=await s.text(),m=(z.parse(u).logs||[]).find(i=>i.slug===d);if(!m){r||c(null);return}let y=m.description||"";try{const i=await fetch(`/logs/${a}/${d}.txt`);i.ok&&(y=await i.text())}catch{}r||c({attributes:m,body:y})}catch{r||c(null)}finally{r||g(!1)}})(),()=>{r=!0}},[a,d]),j)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{background:"#F3ECE0",backgroundImage:U},children:e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx(le,{size:48,color:"#C96442",sway:!0}),e.jsx("span",{className:"font-ibm-plex-mono text-[10.5px] tracking-[0.32em] uppercase text-[#2E2620]/80",children:"Loading entry"})]})});if(!x)return e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4",style:{background:"#F3ECE0"},children:[e.jsx("span",{className:"font-ibm-plex-mono text-[10px] tracking-[0.22em] uppercase text-[#2E2620]/60",children:"404 · entry not found"}),e.jsx(F,{to:"/logs",className:"font-fraunces italic text-[18px] text-[#9E4A2F] hover:text-[#C96442]",children:"← Back to the catalogue"})]});const{attributes:t,body:h}=x,n=t.author||t.director||t.artist||t.creator||t.by||t.studio,l=Number(t.rating)||0;return e.jsxs("div",{className:"min-h-screen relative text-[#1A1613] font-fraunces selection:bg-[#C96442]/25",style:{background:"#F3ECE0",backgroundImage:U,fontFeatureSettings:'"ss01", "ss02", "kern"'},children:[e.jsx(D,{title:`${t.title} | Fezcodex`,description:(h||t.description||"").substring(0,160),image:t.image}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 z-40 opacity-[0.32] mix-blend-multiply",style:{backgroundImage:he}}),e.jsxs("div",{className:"relative z-10 mx-auto max-w-[1080px] px-6 md:px-14 pb-[120px]",children:[e.jsx(de,{left:`Folio VIII · ${a}`,center:"A catalogued entry",right:`Slip · ${t.slug||d}`}),e.jsxs("section",{className:"pt-16 md:pt-24 pb-10",children:[e.jsx(F,{to:"/logs",className:"inline-flex items-center gap-2 font-ibm-plex-mono text-[10.5px] tracking-[0.22em] uppercase text-[#2E2620]/70 hover:text-[#9E4A2F] transition-colors mb-10",children:"← Catalogue"}),e.jsxs(I.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap mb-6 font-ibm-plex-mono text-[10px] tracking-[0.22em] uppercase",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 px-2 py-1 border",style:{color:p,borderColor:p,backgroundColor:`${p}10`},children:[e.jsx("span",{"aria-hidden":"true",className:"inline-block w-[5px] h-[5px] rounded-full",style:{backgroundColor:p}}),a]}),t.updated&&e.jsxs("span",{className:"px-2 py-1 border border-[#1A161320] text-[#2E2620]/80",children:["revised · ",B(t.updated)]}),e.jsxs("span",{className:"text-[#2E2620]/60",children:["logged · ",B(t.date)]})]}),e.jsxs("h1",{className:"font-fraunces text-[44px] md:text-[96px] leading-[0.92] tracking-[-0.03em] text-[#1A1613] max-w-[18ch]",style:{fontVariationSettings:'"opsz" 144, "SOFT" 30, "WONK" 1, "wght" 460'},children:[t.title,e.jsx("span",{"aria-hidden":"true",className:"text-[#C96442]",style:{fontVariationSettings:'"wght" 800'},children:"."})]}),n&&e.jsxs("div",{className:"mt-4 font-fraunces italic text-[20px] md:text-[24px] text-[#2E2620]",style:{fontVariationSettings:'"opsz" 28, "SOFT" 100, "wght" 360'},children:["by ",n]}),l>0&&e.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[e.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((r,s)=>e.jsx(E,{size:18,weight:s<l?"fill":"regular",style:{color:s<l?"#B88532":"#1A161325"}},s))}),e.jsxs("span",{className:"font-ibm-plex-mono text-[10.5px] tracking-[0.22em] uppercase text-[#2E2620]/70",children:[l,"/5 · plumb"]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-16 pt-10 border-t border-[#1A161320]",children:[e.jsx("article",{className:`prose prose-lg max-w-none font-fraunces
prose-headings:font-fraunces prose-headings:italic prose-headings:tracking-tight prose-headings:text-[#1A1613]
prose-p:text-[#2E2620] prose-p:leading-[1.65]
prose-a:text-[#9E4A2F] prose-a:underline prose-a:decoration-[#C96442]/40 prose-a:underline-offset-4 hover:prose-a:decoration-[#C96442]
prose-strong:text-[#1A1613] prose-strong:font-normal prose-strong:italic
prose-blockquote:border-l-[3px] prose-blockquote:border-[#C96442] prose-blockquote:bg-[#E8DECE]/50 prose-blockquote:py-0.5 prose-blockquote:px-5 prose-blockquote:not-italic
prose-code:text-[#9E4A2F] prose-code:font-mono prose-code:bg-[#C96442]/10 prose-code:px-1 prose-code:py-0.5`,style:{fontVariationSettings:'"opsz" 24, "SOFT" 50, "WONK" 0, "wght" 400'},children:e.jsx(M,{content:h,components:{a:r=>e.jsx(q,{...r,className:"text-[#9E4A2F] underline decoration-[#C96442]/40 underline-offset-4 hover:decoration-[#C96442]"})}})}),e.jsxs("aside",{className:"lg:sticky lg:top-24 self-start flex flex-col gap-6",children:[e.jsxs("div",{className:"border border-[#1A161320] p-6 bg-[#F3ECE0] relative overflow-hidden",children:[e.jsx("div",{"aria-hidden":"true",className:"absolute top-0 left-0 right-0 h-[2px]",style:{backgroundColor:p}}),e.jsx("h3",{className:"font-ibm-plex-mono text-[10px] tracking-[0.24em] uppercase text-[#9E4A2F] mb-5 pb-3 border-b border-[#1A161320]",children:"Manifest"}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(v,{label:"Category",value:t.category}),n&&e.jsx(v,{label:"Creator",value:n}),t.platform&&e.jsx(v,{label:"Platform",value:t.platform}),t.source&&!t.platform&&e.jsx(v,{label:"Source",value:t.source}),t.year&&e.jsx(v,{label:"Year",value:t.year}),t.updated&&e.jsx(v,{label:"Updated",value:B(t.updated)}),e.jsx(v,{label:"Dated",value:B(t.date)}),l>0&&e.jsx(v,{label:"Rating",value:e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-flex gap-0.5",children:[...Array(5)].map((r,s)=>e.jsx(E,{size:11,weight:s<l?"fill":"regular",style:{color:s<l?"#B88532":"#1A161325"}},s))}),e.jsxs("span",{children:[l,"/5"]})]})})]}),t.link&&e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"mt-6 flex items-center justify-between gap-3 p-3 border border-[#1A161320] hover:border-[#C96442] transition-colors group",children:[e.jsx("span",{className:"font-ibm-plex-mono text-[9.5px] tracking-[0.22em] uppercase text-[#1A1613]",children:"External source"}),e.jsx(R,{size:14,weight:"bold",className:"text-[#9E4A2F] group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform"})]})]}),t.tags&&t.tags.length>0&&e.jsxs("div",{className:"border border-dashed border-[#1A161320] p-6",children:[e.jsx("h4",{className:"font-ibm-plex-mono text-[10px] tracking-[0.24em] uppercase text-[#2E2620]/80 mb-3",children:"Cross-references"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.tags.map(r=>e.jsxs("span",{className:"font-ibm-plex-mono text-[9.5px] tracking-[0.14em] uppercase px-1.5 py-0.5 border border-[#1A161320] text-[#2E2620]",children:["#",r]},r))})]})]})]}),e.jsx(xe,{signature:e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:["© ",new Date().getFullYear()," · Fezcode"]}),e.jsxs("span",{children:[a," · slip ",t.slug]})]})})]})]})},_="radial-gradient(1100px 600px at 80% -10%, #FFFFFF 0%, transparent 55%), radial-gradient(900px 700px at 0% 110%, #D2DBD8 0%, transparent 50%), radial-gradient(700px 500px at 95% 90%, #E5EBE9 0%, transparent 45%)",ye={book:"#5F837B",movie:"#8FA8BC",video:"#7E99A8",game:"#6F9184",article:"#8A9894",music:"#7C8FA0",series:"#7E99A8",food:"#8FA89E",websites:"#6F9184",tools:"#5C6B67",event:"#7C8FA0",quote:"#8FA8BC"},L=a=>new Date(a).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"}).toLowerCase(),ve=()=>{const{category:a,slugId:d}=$(),[x,c]=f.useState(null),[j,g]=f.useState(!0),p=ye[a?.toLowerCase()]||"#5C6B67";if(f.useEffect(()=>{let r=!1;return(async()=>{g(!0);try{const s=await fetch(`/logs/${a}/${a}.piml`);if(!s.ok){r||c(null);return}const u=await s.text(),m=(z.parse(u).logs||[]).find(i=>i.slug===d);if(!m){r||c(null);return}let y=m.description||"";try{const i=await fetch(`/logs/${a}/${d}.txt`);i.ok&&(y=await i.text())}catch{}r||c({attributes:m,body:y})}catch{r||c(null)}finally{r||g(!1)}})(),()=>{r=!0}},[a,d]),j)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{background:"#EEF2F1",backgroundImage:_},children:e.jsxs("div",{className:"flex flex-col items-center gap-6",children:[e.jsx(G,{size:64,breathe:!0}),e.jsx("span",{className:"font-ibm-plex-mono text-[10.5px] tracking-[0.26em] lowercase text-[#5C6B67]",children:"condensing…"})]})});if(!x)return e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-5",style:{background:"#EEF2F1",backgroundImage:_},children:[e.jsx(G,{size:48,breathe:!1,className:"opacity-60"}),e.jsx("span",{className:"font-ibm-plex-mono text-[10px] tracking-[0.22em] lowercase text-[#8A9894]",children:"404 · lost to the fog"}),e.jsx(F,{to:"/logs",className:"font-instr-serif italic text-[19px] text-[#5F837B] hover:text-[#3C4845] transition-colors duration-[250ms]",children:"← back to the catalogue"})]});const{attributes:t,body:h}=x,n=t.author||t.director||t.artist||t.creator||t.by||t.studio,l=Number(t.rating)||0;return e.jsxs("div",{className:"min-h-screen relative text-[#3C4845] font-outfit selection:bg-[#8FA8BC]/30 selection:text-[#3C4845]",style:{background:"#EEF2F1",backgroundImage:_},children:[e.jsx(D,{title:`${t.title} | Fezcodex`,description:(h||t.description||"").substring(0,160),image:t.image}),e.jsx(ge,{}),e.jsxs("div",{className:"relative z-10 mx-auto max-w-[1080px] px-6 md:px-14 pb-[120px]",children:[e.jsx(pe,{left:`drift viii · ${a}`,center:"a kept entry — read gently",right:`slip · ${t.slug||d}`}),e.jsxs("section",{className:"pt-16 md:pt-24 pb-10",children:[e.jsx(F,{to:"/logs",className:"inline-flex items-center gap-2 font-ibm-plex-mono text-[10.5px] tracking-[0.22em] lowercase text-[#8A9894] hover:text-[#5F837B] transition-colors duration-[250ms] mb-10",children:"← the catalogue"}),e.jsxs(I.div,{initial:{opacity:0,y:10,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.8},children:[e.jsxs("div",{className:"flex items-center gap-2.5 flex-wrap mb-6 font-ibm-plex-mono text-[10px] tracking-[0.2em] lowercase",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 px-2.5 py-1 rounded-full backdrop-blur-sm",style:{color:p,backgroundColor:`${p}1A`},children:[e.jsx("span",{"aria-hidden":"true",className:"inline-block w-[5px] h-[5px] rounded-full",style:{backgroundColor:p,boxShadow:`0 0 8px 1px ${p}66`}}),a]}),t.updated&&e.jsxs("span",{className:"px-2.5 py-1 rounded-full bg-white/40 backdrop-blur-sm text-[#5C6B67]",children:["revised · ",L(t.updated)]}),e.jsxs("span",{className:"text-[#8A9894]",children:["kept · ",L(t.date)]})]}),e.jsx("h1",{className:"font-instr-serif font-normal text-[44px] md:text-[88px] leading-[0.96] tracking-[-0.02em] text-[#3C4845] max-w-[18ch]",children:t.title}),n&&e.jsxs("div",{className:"mt-4 font-instr-serif italic text-[21px] md:text-[25px] text-[#5C6B67]",children:["by ",e.jsx("em",{className:"italic text-[#5F837B]",children:n})]}),l>0&&e.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[e.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((r,s)=>e.jsx(E,{size:18,weight:s<l?"fill":"regular",style:{color:s<l?"#8FA8BC":"rgba(60,72,69,0.18)"}},s))}),e.jsxs("span",{className:"font-ibm-plex-mono text-[10.5px] tracking-[0.2em] lowercase text-[#8A9894]",children:[l,"/5 · how much stayed"]})]})]})]}),e.jsx(Y,{}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-16 pt-10",children:[e.jsx("article",{className:`prose prose-lg max-w-none font-outfit font-light
prose-headings:font-instr-serif prose-headings:font-normal prose-headings:italic prose-headings:tracking-tight prose-headings:text-[#3C4845]
prose-p:text-[#5C6B67] prose-p:leading-[1.75] prose-p:font-light
prose-a:text-[#5F837B] prose-a:underline prose-a:decoration-[#8FA8BC]/40 prose-a:underline-offset-4 hover:prose-a:decoration-[#5F837B]
prose-strong:text-[#3C4845] prose-strong:font-normal
prose-em:text-[#5F837B]
prose-blockquote:border-l-2 prose-blockquote:border-[#8FA8BC]/60 prose-blockquote:bg-white/40 prose-blockquote:backdrop-blur-sm prose-blockquote:rounded-r-2xl prose-blockquote:py-0.5 prose-blockquote:px-5 prose-blockquote:not-italic prose-blockquote:text-[#5C6B67]
prose-code:text-[#5F837B] prose-code:font-mono prose-code:bg-[#5F837B]/10 prose-code:rounded prose-code:px-1 prose-code:py-0.5
prose-li:text-[#5C6B67]`,children:e.jsx(M,{content:h,components:{a:r=>e.jsx(q,{...r,className:"text-[#5F837B] underline decoration-[#8FA8BC]/40 underline-offset-4 hover:decoration-[#5F837B] transition-colors duration-[250ms]"})}})}),e.jsxs("aside",{className:"lg:sticky lg:top-24 self-start flex flex-col gap-6",children:[e.jsxs("div",{className:"relative rounded-2xl bg-white/50 backdrop-blur-sm shadow-[0_18px_50px_rgba(60,72,69,0.10)] p-7 overflow-hidden",children:[e.jsx("div",{"aria-hidden":"true",className:"absolute top-0 left-0 right-0 h-px",style:{background:`linear-gradient(90deg, transparent, ${p}99, transparent)`}}),e.jsx("h3",{className:"font-ibm-plex-mono text-[10px] tracking-[0.24em] lowercase text-[#5F837B] mb-4",children:"what remains"}),e.jsx(Y,{tint:"rgba(60,72,69,0.12)"}),e.jsxs("div",{className:"flex flex-col gap-4 pt-5",children:[e.jsx(N,{label:"category",value:(t.category||a||"").toLowerCase()}),n&&e.jsx(N,{label:"creator",value:n}),t.platform&&e.jsx(N,{label:"platform",value:t.platform}),t.source&&!t.platform&&e.jsx(N,{label:"source",value:t.source}),t.year&&e.jsx(N,{label:"year",value:t.year}),t.updated&&e.jsx(N,{label:"revised",value:L(t.updated)}),e.jsx(N,{label:"kept on",value:L(t.date)}),l>0&&e.jsx(N,{label:"rating",value:e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-flex gap-0.5",children:[...Array(5)].map((r,s)=>e.jsx(E,{size:11,weight:s<l?"fill":"regular",style:{color:s<l?"#8FA8BC":"rgba(60,72,69,0.18)"}},s))}),e.jsxs("span",{children:[l,"/5"]})]})})]}),t.link&&e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"mt-6 flex items-center justify-between gap-3 p-3 rounded-xl bg-white/40 hover:bg-white/70 transition-colors duration-[250ms] group",children:[e.jsx("span",{className:"font-ibm-plex-mono text-[9.5px] tracking-[0.2em] lowercase text-[#5C6B67] group-hover:text-[#5F837B] transition-colors duration-[250ms]",children:"where it surfaced"}),e.jsx(R,{size:14,weight:"regular",className:"text-[#5F837B] group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform duration-[250ms]"})]})]}),t.tags&&t.tags.length>0&&e.jsxs("div",{className:"rounded-2xl bg-white/30 backdrop-blur-sm p-6",children:[e.jsx("h4",{className:"font-ibm-plex-mono text-[10px] tracking-[0.24em] lowercase text-[#8A9894] mb-3",children:"drifts alongside"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.tags.map(r=>e.jsxs("span",{className:"font-ibm-plex-mono text-[9.5px] tracking-[0.14em] lowercase px-2 py-0.5 rounded-full bg-white/50 text-[#5C6B67]",children:["#",String(r).toLowerCase()]},r))})]})]})]}),e.jsx(me,{signature:e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:["© ",new Date().getFullYear()," · fezcode / a. s. bulbul"]}),e.jsxs("span",{children:[a," · slip ",t.slug," — the fog keeps the rest"]})]})})]})]})},Ze=()=>{const{fezcodexTheme:a}=J();return a==="luxe"?e.jsx(fe,{}):a==="terracotta"?e.jsx(je,{}):a==="mist"?e.jsx(ve,{}):e.jsx(ue,{})};export{Ze as default};