---
import LocaleCopy from "../components/LocaleCopy.astro";
import WritingIssue from "../components/WritingIssue.jsx";
import BaseLayout from "../layouts/BaseLayout.astro";

const copy = {
  kicker:   { en: "Latest piece",       fr: "Dernier article",    nb: "Siste stykke" },
  date:     { en: "May 2026",           fr: "Mai 2026",           nb: "Mai 2026" },
  title:    { en: "L'Homme Impossible", fr: "L'Homme Impossible", nb: "L'Homme Impossible" },
  subtitle: {
    en: "A Guide to Boris Vian and the Collège de 'Pataphysique",
    fr: "Un guide sur Boris Vian et le Collège de 'Pataphysique",
    nb: "En guide til Boris Vian og Collège de 'Pataphysique",
  },
  body: {
    en: "He was a trained engineer who played trumpet in a cellar with Miles Davis, wrote ten novels before his fortieth birthday, and became a Transcendent Satrap of an institution dedicated to deliberate uselessness.",
    fr: "C'était un ingénieur de formation qui jouait de la trompette dans une cave avec Miles Davis, écrivit dix romans avant ses quarante ans, et devint Satrape Transcendant d'une institution dédiée à l'inutilité délibérée.",
    nb: "Han var utdannet ingeniør som spilte trompet i en kjeller med Miles Davis, skrev ti romaner før han ble førti, og ble Transcendent Satrape i en institusjon viet til bevisst ubrukbarhet.",
  },
  cta: { en: "Read the introduction", fr: "Lire l'introduction", nb: "Les introduksjonen" },
};
---

<BaseLayout
  title="Writing Desk | Dave Gilligan"
  description="A live writing desk fed from the PHP archive: Boris Vian, Vernon Sullivan weather, jazz syntax, and pataphysical essays."
>
  <main class="writing-page">
    <section class="container writing-feature" style="margin-bottom: 0; padding-bottom: 0;">
      <article class="panel jazz-article" style="margin-bottom: var(--space-md, 1.5rem);">
        <div class="capsule__kicker">
          <span><LocaleCopy copy={copy.kicker} /></span>
          <span><LocaleCopy copy={copy.date} /></span>
        </div>
        <h2 style="margin-top: 0.5rem;"><LocaleCopy copy={copy.title} /></h2>
        <p style="font-style: italic; margin-bottom: 0.75rem;"><LocaleCopy copy={copy.subtitle} /></p>
        <p><LocaleCopy copy={copy.body} /></p>
        <a class="button button--dark" href="/articles/boris-vian-2026/"><LocaleCopy copy={copy.cta} /></a>
      </article>
    </section>
    <WritingIssue client:load />
  </main>
</BaseLayout>
