import Link from "next/link";
import { designs } from "@/components/site/content";
import { Fonts } from "@/components/site/fonts";
import { LogoMark } from "@/components/site/logo";

export const metadata = { title: "ThinkAxis · Website design options" };

const swatch: Record<string, React.CSSProperties> = {
  ink: { background: "#F4F1EC", color: "#1E1E1E", fontFamily: "'IBM Plex Mono', monospace", letterSpacing: "0.04em" },
  plate: { background: "#FFFFFF", color: "#1E1E1E", fontFamily: "'Newsreader', Georgia, serif", fontStyle: "italic" },
  orbit: { background: "#1E1E1E", color: "#F4F1EC", fontFamily: "'Archivo', sans-serif", fontStretch: "112%" },
  statement: { background: "#F4F1EC", color: "#C72A09", fontFamily: "'Newsreader', Georgia, serif", fontStyle: "italic" },
};

export default function Hub() {
  return (
    <div className="site hub">
      <Fonts family="family=Archivo:wdth,wght@100..125,400..700&family=IBM+Plex+Mono:wght@500&family=IBM+Plex+Sans:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,500;1,6..72,500" />
      <nav className="top">
        <span className="brand">
          <LogoMark />
          <span>ThinkAxis</span>
        </span>
      </nav>
      <header className="hub-head wrap">
        <h1>Website design options</h1>
        <p>
          Four directions for the ThinkAxis LLP website. The words and sections are the same in each; only the look and the
          opening screen change. Open each one, scroll to the end, and note what works and what does not.
        </p>
      </header>
      <main className="band" style={{ paddingTop: 0 }}>
        <div className="wrap">
          <div className="grid4">
            {designs.map((d, i) => (
              <Link key={d.slug} href={`/${d.slug}`} className="card">
                <div className="swatch" style={swatch[d.slug]}>
                  {d.name}
                </div>
                <div className="body">
                  <span className="k">
                    Design {i + 1} · {d.line}
                  </span>
                  <h2>{d.name}</h2>
                  <p>{d.note}</p>
                </div>
              </Link>
            ))}
          </div>
          <div className="how">
            <h2 style={{ fontSize: 22 }}>What to comment on</h2>
            <ol>
              <li>Which opening screen best represents ThinkAxis, and why.</li>
              <li>The headline and the one-line description of the firm.</li>
              <li>The three practices and their points: anything missing or wrong?</li>
              <li>Contact details to publish (email, phone) and whether to list the partners.</li>
            </ol>
          </div>
        </div>
      </main>
    </div>
  );
}
