1import{f as m,d as o,r as d,j as e,L as i,N as f,e as p,A as u,F as g}from"./index-CsejgQLt.js";import{A as c}from"./arrow-left-xlhLtk9J.js";function h({image:r,tag:t,alt:a,eager:s=!1,className:n=""}){return r?e.jsx("img",{src:r,alt:a,loading:s?"eager":"lazy",...s?{fetchPriority:"high"}:{},decoding:"async",onError:()=>console.error("stories image failed",r),className:`${n} object-cover`}):e.jsx("div",{className:`${n} bg-[rgba(31,58,115,0.06)] border border-[rgba(31,58,115,0.1)] flex items-center justify-center`,children:e.jsx("span",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-[rgba(31,58,115,0.3)]",children:t})})}function E(){const{slug:r}=m(),t=o.find(s=>s.slug===r);if(d.useEffect(()=>{if(t){document.title=`${t.title} - RTL Foundation`;const s=document.querySelector('meta[name="description"]');s&&s.setAttribute("content",t.excerpt)}},[t]),!t)return e.jsx("main",{className:"min-h-screen bg-[#F4F2EE] flex items-center justify-center px-5",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-normal tracking-[-0.02em] text-[rgba(31,58,115,0.95)]",children:"That story isn't here."}),e.jsx("p",{className:"mt-4 text-[15px] text-[rgba(31,58,115,0.6)]",children:"It may have moved or been unpublished."}),e.jsxs(i,{to:"/stories",className:"mt-8 inline-flex items-center gap-2 font-mono text-[11px] uppercase tracking-[0.14em] text-[#D9531E] hover:underline underline-offset-4",children:[e.jsx(c,{className:"w-4 h-4"}),"All stories"]})]})});const a=o.filter(s=>s.slug!==t.slug);return e.jsxs("main",{className:"min-h-screen bg-[#F4F2EE]",children:[e.jsx(f,{}),e.jsx("section",{className:"w-full bg-[#F4F2EE] px-5 md:px-8 pt-28 md:pt-36 pb-10",children:e.jsxs("div",{className:"max-w-[760px] mx-auto",children:[e.jsxs(i,{to:"/stories",className:"inline-flex items-center gap-2 font-mono text-[11px] uppercase tracking-[0.14em] text-[rgba(31,58,115,0.5)] hover:text-[#D9531E] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[#D9531E] focus-visible:ring-offset-2 focus-visible:ring-offset-[#F4F2EE] rounded-sm",children:[e.jsx(c,{className:"w-4 h-4"}),"All stories"]}),e.jsxs("div",{className:"mt-8 flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.16em] text-[rgba(31,58,115,0.45)]",children:[e.jsx("span",{children:t.tag}),e.jsx("span",{className:"w-1 h-1 rounded-full bg-[#D9531E]"}),e.jsx("span",{children:t.dateDisplay})]}),e.jsx("h1",{className:"mt-4 text-[30px] md:text-[46px] font-normal leading-[1.1] tracking-[-0.03em] text-[rgba(31,58,115,0.95)]",children:t.title})]})}),e.jsx("section",{className:"w-full bg-[#F4F2EE] px-5 md:px-8 pb-12",children:e.jsx("div",{className:`mx-auto ${t.portrait?"max-w-[560px]":"max-w-[1000px]"}`,children:e.jsx(h,{image:t.image,tag:t.portrait?"Press":t.tag,alt:t.title,eager:!0,className:`w-full ${t.portrait?"aspect-[4/5]":"aspect-[16/9]"} rounded-[1.25rem] md:rounded-[2rem]`})})}),e.jsx("section",{className:"w-full bg-[#F4F2EE] px-5 md:px-8 pb-16",children:e.jsx("div",{className:"max-w-[760px] mx-auto",children:t.body.map((s,n)=>{const l=s.startsWith("PLACEHOLDER:"),x=l?s.slice(12).trim():s;return l?e.jsx("div",{className:"mt-6 first:mt-0 p-5 rounded-[1rem] bg-[#D9531E]/8 border border-[#D9531E]/25 font-mono text-[13px] leading-relaxed text-[#D9531E]",children:x},n):e.jsx("p",{className:"mt-6 first:mt-0 text-[17px] md:text-[18px] leading-[1.7] text-[rgba(31,58,115,0.8)]",children:s},n)})})}),e.jsx("section",{className:"w-full bg-[#F4F2EE] px-5 md:px-8 pb-16",children:e.jsxs("div",{className:"max-w-[760px] mx-auto pt-10 border-t border-[rgba(31,58,115,0.15)]",children:[e.jsx("h2",{className:"font-mono text-[11px] uppercase tracking-[0.16em] text-[rgba(31,58,115,0.45)]",children:"More stories"}),e.jsx("div",{className:"mt-4 flex flex-col gap-4",children:a.map(s=>e.jsxs(i,{to:`/stories/${s.slug}`,className:"group focus:outline-none focus-visible:ring-2 focus-visible:ring-[#D9531E] focus-visible:ring-offset-2 focus-visible:ring-offset-[#F4F2EE] rounded-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.16em] text-[rgba(31,58,115,0.45)]",children:[e.jsx("span",{children:s.tag}),e.jsx("span",{className:"w-1 h-1 rounded-full bg-[#D9531E]"}),e.jsx("span",{children:s.dateDisplay})]}),e.jsx("span",{className:"mt-1.5 block text-[17px] text-[rgba(31,58,115,0.9)] hover:text-[#D9531E] transition-colors",children:s.title})]},s.slug))}),e.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 pt-6 border-t border-[rgba(31,58,115,0.1)]",children:[e.jsx("span",{className:"text-[15px] text-[rgba(31,58,115,0.75)]",children:"Get these by email"}),e.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 font-mono text-[12px] uppercase tracking-[0.14em] text-[#D9531E] hover:underline underline-offset-4 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#D9531E] focu
1s-visible:ring-offset-2 focus-visible:ring-offset-[#F4F2EE] rounded-sm",children:["Join the newsletter",e.jsx(u,{className:"w-4 h-4"})]})]})]})}),e.jsx(g,{})]})}export{E as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.