---
import LocaleCopy from "../components/LocaleCopy.astro";
import SchoolDossier from "../components/SchoolDossier.astro";
import { schoolDossiers } from "../data/education";
import BaseLayout from "../layouts/BaseLayout.astro";

const copy = {
  eyebrow: {
    en: "Special issue / school dossiers",
    fr: "Numéro spécial / dossiers écoles",
    nb: "Spesialnummer / skoledossierer",
  },
  h1: {
    en: "The schools, rewritten as a magazine of migration, trade, weather, and nerve.",
    fr: "Les écoles, réécrites comme un magazine de migration, commerce, météo et courage.",
    nb: "Skolene, omskrevet som et magasin om migrasjon, handel, vær og nerve.",
  },
  lede: {
    en: "This issue treats each school as a chapter in style, place, and formation. The quotes are invented on purpose, signed in faux Boris or faux Vernon mode, and labeled so nobody mistakes the joke for scholarship.",
    fr: "Ce numéro traite chaque école comme un chapitre de style, de lieu et de formation. Les citations sont inventées délibérément, signées en mode Boris ou Vernon apocryphes, et étiquetées pour qu'on ne prenne pas la blague pour de l'érudition.",
    nb: "Dette nummeret behandler hver skole som et kapittel i stil, sted og formasjon. Sitatene er bevisst oppfunnet, signert i apokryf Boris- eller Vernon-stil, og merket så ingen tar spøken for kunnskap.",
  },
  editorialNote: { en: "Editorial note", fr: "Note éditoriale", nb: "Redaksjonell note" },
  draft: { en: "Draft 1", fr: "Brouillon 1", nb: "Utkast 1" },
  bullets: {
    en: [
      "All faux signatures are clearly marked as invented.",
      "All images are openly licensed or used as contextual stand-ins with attribution.",
      "Exact campus replacements can be swapped in once you approve or supply them.",
    ],
    fr: [
      "Toutes les fausses signatures sont clairement marquées comme inventées.",
      "Toutes les images sont sous licence libre ou utilisées comme illustrations contextuelles avec attribution.",
      "Des photos exactes de campus peuvent être remplacées dès que vous les approuvez ou les fournissez.",
    ],
    nb: [
      "Alle apokryfe signaturer er tydelig merket som oppfunnet.",
      "Alle bilder er åpent lisensiert eller brukt som kontekstuelle plassholere med kreditering.",
      "Eksakte campusbilder kan byttes ut når du godkjenner eller leverer dem.",
    ],
  },
};
---

<BaseLayout
  title="Education Dossiers | Dave Gilligan"
  description="Five school dossiers written as a literary magazine issue, with attributed imagery and clearly labeled faux Boris Vian and Vernon Sullivan signatures."
>
  <main class="education-page">
    <section class="education-hero container">
      <div class="education-hero__copy">
        <span class="eyebrow"><LocaleCopy copy={copy.eyebrow} /></span>
        <h1><LocaleCopy copy={copy.h1} /></h1>
        <p class="education-hero__lede">
          <LocaleCopy copy={copy.lede} />
        </p>
      </div>

      <aside class="education-hero__note panel">
        <div class="capsule__kicker">
          <span><LocaleCopy copy={copy.editorialNote} /></span>
          <span><LocaleCopy copy={copy.draft} /></span>
        </div>
        <ul>
          {copy.bullets.en.map((_, i) => (
            <li><LocaleCopy copy={{ en: copy.bullets.en[i], fr: copy.bullets.fr[i], nb: copy.bullets.nb[i] }} /></li>
          ))}
        </ul>
      </aside>
    </section>

    <section class="container dossier-stack">
      {schoolDossiers.map((dossier, index) => (
        <SchoolDossier dossier={dossier} index={index} />
      ))}
    </section>
  </main>
</BaseLayout>
