---
name: pofa-page
description: Build a POFA-style web page from the pofa.app homepage design language — light theme, ink #1f2328, green #22c55e, capsule buttons, 16px cards, single-file HTML with no external dependencies. Use when the user asks to build, restyle, or rebuild a POFA page or document, or to make a new page look like pofa.app.
compatibility: Produces one self-contained HTML file. Needs nothing but a browser — no build step, no external fonts, scripts, or images.
---

# pofa-page — build pages that look like pofa.app

This skill teaches an agent to build or rebuild a POFA page in the
design language of the pofa.app homepage (hero-v3, 2026-11-12). The
result is one self-contained HTML file: all CSS inline, no external
dependencies. Full token list and a minimal skeleton live in
`references/tokens.md`.

## Design tokens (the short list)

- Ink: `--ink:#1f2328`, `--ink-soft:#5a6169`, `--ink-faint:#8b929a`,
  `--muted:#7a857e`
- Line: `--line:#e5ebe6`, `--line-strong:#d6dade`
- Green: `--green:#22c55e`, `--green-deep:#16a34a`,
  `--green-text:#16a34a`, `--green-soft:#eafaf0`
- Background: `--bg:#fbfcfb`, cards `--card:#fff`
- Amber (warnings / manage-code tags only): `--amber:#b45309`,
  `--amber-soft:#fef6e3`
- Font: `Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif`
  (Inter first; if it is not installed the system stack takes over —
  never load a webfont). Mono:
  `ui-monospace,SFMono-Regular,Menlo,Consolas,monospace`
- Radii: cards `16px`, pills and capsule buttons `999px`, eyebrow
  `40px`, tags `999px`, inline code `6px`
- Page background: two soft green radial glows over `#fbfcfb`, plus a
  faint dot grid (`#9bb9a344` dots, `23px` grid) that fades out toward
  the bottom. Keep it subtle — the content is the bright part, not
  the effects.

## Docs-page template

```
<body>
  <div class="top"><div class="top-in">   <!-- sticky, blurred -->
    <a class="logo">POFA<span class="ball"></span></a>
    <div class="spacer"></div>
    <a href="https://pofa.app/">Home</a>
    <a href="/docs/">Docs</a>              <!-- /docs-en/ on the EN twin -->
    <a class="navpill" href="https://pofa.app/mcp/">● MCP READY ↗</a>
    <a class="lang" href="<twin>">English | 中文</a>
  </div></div>
  <div class="wrap">
    <div class="eyebrow"><span class="live"></span> DOCS · SECTION</div>
    <h1>Page title</h1>
    <p class="meta">One-line summary + status tag</p>
    ...content blocks (see below)...
    <div class="foot">
      <div>POFA Docs · <a twin>…</a> · Related: …</div>
      <div class="slogan">POFA — SMALL TOURNAMENTS. BIG DAYS.</div>
    </div>
  </div>
</body>
```

- Top bar: sticky, `background:rgba(255,255,255,.72)` with
  `backdrop-filter:blur(16px)`, bottom border `var(--line)`,
  max-width `1180px`, height `78px`. On narrow screens (≤860px) hide
  the text links and keep the pill + language switch.
- Logo: `25px`, weight `850`, letter-spacing `-1.9px`, followed by
  the green ball: `14px` circle, radial gradient
  `#b9f4bf → #22c55e 60% → #169e47`, shadow `0 2px 8px #22c55e38`.
- Eyebrow: capsule pill, border `#d8e8da`, background `#ffffffc7`,
  color `#42634d`, `11px`, weight `720`, letter-spacing `1.1px`,
  with a 7px green live dot (`var(--green)`, glow `0 0 0 4px #22c55e1c`).
- H1 (docs): `30px`, weight `800`, letter-spacing `-0.03em`.
  H2: `20px`, weight `700`, letter-spacing `-0.02em`, margin
  `38px 0 12px`. Body: `16px`, line-height `1.55`.
- Content max-width `1020px`, side padding `20px`.
- Footer: top border `var(--line)`, color `var(--ink-faint)`,
  `13px`; the slogan line reads exactly
  `POFA — SMALL TOURNAMENTS. BIG DAYS.`

## Content blocks (reuse, do not reinvent)

- Endpoint / highlight box: `16px` radius, `var(--green-soft)`
  background, `1px var(--line)` border; label `11px` uppercase
  letterspaced faint; value in mono bold.
- Proof box: `16px` radius, white, `1px var(--line)` border.
- Steps grid: 5 columns desktop, 2 on mobile (≤760px); each step a
  white `16px` card with a numbered green circle (`24px`,
  `var(--green)`, white number).
- Tables: wrap in `.scrollx` (`16px` radius, `1px var(--line)`
  border, horizontal scroll); header row `#f7f8f9`; cells `9px 11px`.
- Tags: capsule `999px`, `11px` bold. `.live` = green-soft bg +
  green text; `.key` = amber-soft bg + amber text (manage-code only).
- Inline code: mono, `0.92em`, `#f4f5f6` bg, `1px var(--line)`
  border, `6px` radius.
- Lists: `.rules` — muted ink, `14.5px`, `5px` item spacing.

## Rules

- Single file, no external dependencies. No webfonts, no CDN scripts,
  no remote images. (Cloudflare injects its own scripts at serve
  time; never copy those into the source.)
- Bilingual: every page gets a `-en` twin. The two link to each other
  in the top bar (`English` / `中文`) and in the footer. Translate
  visible text only; keep structure, classes, ids, scripts, and URLs
  identical between twins.
- Content: keep every word, link, and section of the source. A
  rebuild changes the skin only — never the information, the order,
  or the URLs. If a block does not fit the template, keep it as-is
  and say so in your report; do not drop or rewrite it.
- Never add a price or a dollar amount. If the source has a sample
  price that is explicitly marked simulated or is the organizer's own
  fee, keep it exactly as-is and flag it.
- Keep brand terms as-is: POFA, MCP, DUPR, USA Pickleball. Keep the
  slogan `SMALL TOURNAMENTS. BIG DAYS.` exactly as-is.
- Light theme only. No dark mode, no stacked glow effects, no fake
  progress bars, no placeholder numbers, no invented users, events,
  or usage figures.
- Do not touch interactive logic. On tool pages (decision system,
  referee scoring, player space, registration cards) keep all JS
  byte-identical; only the stylesheet, header, and footer change.

## How to rebuild an existing doc

1. Read the source file. List its sections, links, and any scripts.
2. Keep the body content untouched. Replace only the `<style>` block
   (tokens + components from this skill), the top bar, the kicker
   (→ eyebrow pill), and the footer (→ links + slogan).
3. Write the twin the same way, with translated visible text.
4. Verify by diff: the content sections must be identical to the
   source except the style/header/footer swap; visible Chinese in the
   EN twin must be only the `中文` switch link; no `$` amount may
   appear that the source did not have.

## Install

- Claude Code: copy this folder to `~/.claude/skills/pofa-page/` (or
  the project's `.claude/skills/pofa-page/`).
- Codex / Cursor: copy it to `.agents/skills/pofa-page/`.
