// Mock data for the prototype
const PEOPLE = [
  {
    handle: "marin",
    name: "Marin Solberg",
    role: "Independent Designer",
    location: "Oslo, NO",
    pronouns: "she/her",
    bio: "Designer working across identity, type and quiet software. Currently building tools for writers. Previously at Råd, Folio Office, and a long stint freelancing for studios in Copenhagen.",
    accent: "#D85A3A",
    available: "Open to projects · Aug",
    links: [
      { kind: "site", label: "marin.studio", href: "#" },
      { kind: "social", label: "are.na/marin", href: "#" },
      { kind: "social", label: "@marin", href: "#" },
    ],
    followers: 4218,
    following: 312,
    appreciations: 1890,
    skills: ["Brand Identity", "Editorial", "Type Design", "Art Direction", "Web"],
    work: [
      { role: "Independent Designer", company: "Self-employed", start: "2023", end: "Present", note: "Identity & editorial systems for cultural and software clients." },
      { role: "Senior Designer", company: "Råd Studio", start: "2020", end: "2023", note: "Led brand work for Norwegian Public Library, Onsa, Klassisk." },
      { role: "Designer", company: "Folio Office", start: "2017", end: "2020", note: "Editorial design across print and digital." },
      { role: "Junior Designer", company: "Anti Oslo", start: "2015", end: "2017", note: "" },
    ],
    education: [
      { school: "Westerdals Oslo ACT", program: "BA Visual Communication", start: "2012", end: "2015" },
    ],
    sideProjects: [
      { name: "Margin", note: "A reading app for long-form essays.", year: "2024–" },
      { name: "Slow Type", note: "Quarterly zine on letterforms.", year: "2021–" },
    ],
    projects: [
      { id: "onsa", title: "Onsa — Identity", year: "2024", tag: "Brand", cover: "linear-gradient(135deg,#E6D8C9,#D85A3A)" },
      { id: "klassisk", title: "Klassisk Festival", year: "2024", tag: "Editorial", cover: "linear-gradient(135deg,#1B1B1B,#3A3A3A)" },
      { id: "margin", title: "Margin — Reading App", year: "2024", tag: "Product", cover: "linear-gradient(135deg,#F2EDE6,#C9BFAE)" },
      { id: "biblio", title: "Norsk Bibliotek", year: "2023", tag: "Brand", cover: "linear-gradient(135deg,#2E4B3C,#7A9A82)" },
      { id: "slowtype", title: "Slow Type N°08", year: "2023", tag: "Print", cover: "linear-gradient(135deg,#EFE8DC,#9C8A6E)" },
      { id: "havn", title: "Havn — Wayfinding", year: "2022", tag: "Signage", cover: "linear-gradient(135deg,#0E2A33,#4C7C8A)" },
    ],
  },
  {
    handle: "ito",
    name: "Ito Nakamura",
    role: "Product Engineer",
    location: "Kyoto, JP",
    pronouns: "he/him",
    bio: "Building small, well-mannered software. Previously at Linear, Raycast, and a string of indie projects.",
    accent: "#2B6CB0",
    available: "Not looking",
    followers: 8901, following: 184, appreciations: 3220,
    skills: ["TypeScript", "React", "Rust", "Design Engineering"],
  },
  {
    handle: "amara",
    name: "Amara Okonkwo",
    role: "Brand Strategist",
    location: "Lagos, NG",
    pronouns: "she/her",
    bio: "Strategy for ambitious founders. Words first, then everything else.",
    accent: "#7C3AED",
    available: "Open to consulting",
    followers: 2104, following: 411, appreciations: 612,
    skills: ["Strategy", "Naming", "Positioning", "Writing"],
  },
  {
    handle: "leo",
    name: "Leo Petrov",
    role: "Filmmaker & Photographer",
    location: "Lisbon, PT",
    pronouns: "he/him",
    bio: "Documentary and commission work. Slow cinema, slower edits.",
    accent: "#1F8A5B",
    available: "Booking Q4",
    followers: 5430, following: 92, appreciations: 1102,
    skills: ["Direction", "DOP", "Color", "Edit"],
  },
  {
    handle: "june",
    name: "June Park",
    role: "Type Designer",
    location: "Seoul, KR",
    pronouns: "they/them",
    bio: "Latin and Hangul. Currently drawing a serif for long reading.",
    accent: "#B45309",
    available: "Open to commissions",
    followers: 1872, following: 233, appreciations: 504,
    skills: ["Type Design", "Latin", "Hangul", "Variable Fonts"],
  },
  {
    handle: "sasha",
    name: "Sasha Mendes",
    role: "Founder, Loom Studio",
    location: "São Paulo, BR",
    pronouns: "she/her",
    bio: "Running a studio that builds calm tools for craftspeople.",
    accent: "#0F766E",
    available: "Hiring",
    followers: 3340, following: 520, appreciations: 980,
    skills: ["Product", "Operations", "Hiring", "Design"],
  },
  {
    handle: "noor",
    name: "Noor Rahimi",
    role: "Software Engineer",
    location: "Berlin, DE",
    pronouns: "she/her",
    bio: "Distributed systems by day, ceramics by night.",
    accent: "#DC2626",
    available: "Open to staff roles",
    followers: 2210, following: 130, appreciations: 770,
    skills: ["Go", "Postgres", "Infra", "Ceramics"],
  },
  {
    handle: "kai",
    name: "Kai Lindqvist",
    role: "Illustrator",
    location: "Stockholm, SE",
    pronouns: "he/him",
    bio: "Editorial illustration. Clients incl. NYT, Wired, MIT Tech Review.",
    accent: "#C2410C",
    available: "Open to editorial",
    followers: 6780, following: 88, appreciations: 2140,
    skills: ["Illustration", "Editorial", "Pattern"],
  },
];

const FEED = [
  { who: "marin", verb: "published", what: "Onsa — Identity", time: "2h", kind: "project", cover: "linear-gradient(135deg,#E6D8C9,#D85A3A)" },
  { who: "ito", verb: "updated", what: "Work history at Raycast", time: "4h", kind: "update" },
  { who: "leo", verb: "appreciated", what: "Klassisk Festival by Marin Solberg", time: "5h", kind: "appreciate" },
  { who: "amara", verb: "is now", what: "open to consulting", time: "1d", kind: "status" },
  { who: "june", verb: "published", what: "Hyeon — Variable Serif", time: "1d", kind: "project", cover: "linear-gradient(135deg,#1B1B1B,#7A6B58)" },
  { who: "sasha", verb: "is", what: "hiring two product designers", time: "2d", kind: "status" },
  { who: "kai", verb: "published", what: "Sunday Times — Cover Series", time: "3d", kind: "project", cover: "linear-gradient(135deg,#FCE7C8,#C2410C)" },
];

const NOTIFICATIONS = [
  { who: "ito", text: "followed you", time: "12m", unread: true },
  { who: "leo", text: "appreciated Margin — Reading App", time: "1h", unread: true },
  { who: "amara", text: "commented: \"the type pairing is wonderful\"", time: "3h", unread: true },
  { who: "june", text: "mentioned you in a collection", time: "1d", unread: false },
  { who: "sasha", text: "followed you", time: "2d", unread: false },
  { who: "kai", text: "appreciated Klassisk Festival", time: "3d", unread: false },
];

const COLLECTIONS = [
  { id: "quiet-software", title: "Quiet software", curator: "marin", count: 12, updated: "3d", visibility: "public", cover: "linear-gradient(135deg,#F2EDE6,#C9BFAE)", note: "Tools that don't shout." },
  { id: "editorial-systems", title: "Editorial systems", curator: "marin", count: 8, updated: "1w", visibility: "public", cover: "linear-gradient(135deg,#1B1B1B,#3A3A3A)", note: "Magazines, books, and the grids underneath." },
  { id: "reading-list-2024", title: "Reading list — 2024", curator: "marin", count: 23, updated: "2w", visibility: "unlisted", cover: "linear-gradient(135deg,#E6D8C9,#9C8A6E)", note: "Essays I keep returning to." },
  { id: "slow-type", title: "Slow type", curator: "june", count: 22, updated: "2d", visibility: "public", cover: "linear-gradient(135deg,#EFE8DC,#9C8A6E)", note: "" },
  { id: "studios-i-admire", title: "Studios I admire", curator: "sasha", count: 17, updated: "5d", visibility: "public", cover: "linear-gradient(135deg,#2E4B3C,#7A9A82)", note: "" },
];

const WRITINGS = [
  { id: "briefs-that-breathe", title: "On briefs that breathe", status: "draft", words: 412, updated: "2h", excerpt: "The best brief I ever got was four sentences long. The worst was a 40-page document…" },
  { id: "klassisk-case", title: "Klassisk Festival — case study", status: "draft", words: 1840, updated: "1d", excerpt: "A year of working with a chamber music festival. Notes on restraint, posters, and the program book that almost wasn't." },
  { id: "slow-type-09", title: "Slow Type N°09 — editor's note", status: "draft", words: 220, updated: "3d", excerpt: "An issue about marginalia. Drawings, footnotes, the things designers do in the corners." },
  { id: "letters-from-oslo", title: "Letters from Oslo", status: "published", words: 980, updated: "Mar 2", excerpt: "A monthly dispatch. March: the rain, a new client, the same old typefaces.", appreciations: 84, views: 1240 },
  { id: "on-restraint", title: "On restraint", status: "published", words: 1320, updated: "Feb 14", excerpt: "I used to think restraint was the absence of decision. It is the opposite.", appreciations: 312, views: 4180 },
  { id: "studio-of-one", title: "Notes from a studio of one", status: "published", words: 1640, updated: "Jan 09", excerpt: "Three years independent. What I learned about pricing, saying no, and Friday afternoons.", appreciations: 198, views: 2670 },
  { id: "ligature-fragments", title: "Ligature fragments", status: "archived", words: 320, updated: "2023", excerpt: "Sketches that never became an essay. Keeping them here anyway." },
];

window.DATA = { PEOPLE, FEED, NOTIFICATIONS, COLLECTIONS, WRITINGS };
window.byHandle = (h) => PEOPLE.find((p) => p.handle === h) || PEOPLE[0];
