---
name: Forthwrite Paper — Tournament Guide & Operations
colors:
  surface: '#ffffff'
  surface-dim: '#f3f3ef'
  surface-bright: '#ffffff'
  surface-container-lowest: '#ffffff'
  surface-container-low: '#fbfbf9'
  surface-container: '#ffffff'
  surface-container-high: '#f2f2ed'
  surface-container-highest: '#e6e6df'
  on-surface: '#2c2a2b'
  on-surface-variant: '#5c5753'
  inverse-surface: '#2c2a2b'
  inverse-on-surface: '#fbfbf9'
  outline: '#7b7165'
  outline-variant: '#cccccc'
  surface-tint: '#36abb4'
  primary: '#36abb4'
  on-primary: '#ffffff'
  primary-container: '#e0f6f7'
  on-primary-container: '#0e565b'
  inverse-primary: '#36abb4'
  secondary: '#7ca800'
  on-secondary: '#ffffff'
  secondary-container: '#f5fcce'
  on-secondary-container: '#334400'
  tertiary: '#7b7165'
  on-tertiary: '#ffffff'
  tertiary-container: '#eae7e3'
  on-tertiary-container: '#2c2a2b'
  error: '#dc2626'
  on-error: '#ffffff'
  error-container: '#fee2e2'
  on-error-container: '#7f1d1d'
  background: '#fbfbf9'
  on-background: '#2c2a2b'
typography:
  display-lg:
    fontFamily: Outfit
    fontSize: 48px
    fontWeight: '800'
    lineHeight: '1.15'
    letterSpacing: -0.02em
  display-lg-mobile:
    fontFamily: Outfit
    fontSize: 32px
    fontWeight: '800'
    lineHeight: '1.2'
    letterSpacing: -0.01em
  headline-md:
    fontFamily: Outfit
    fontSize: 24px
    fontWeight: '700'
    lineHeight: '1.3'
    letterSpacing: -0.01em
  headline-sm:
    fontFamily: Outfit
    fontSize: 18px
    fontWeight: '700'
    lineHeight: '1.35'
    letterSpacing: -0.01em
  body-lg:
    fontFamily: Inter
    fontSize: 18px
    fontWeight: '400'
    lineHeight: '1.65'
    letterSpacing: 0em
  body-md:
    fontFamily: Inter
    fontSize: 15px
    fontWeight: '400'
    lineHeight: '1.6'
    letterSpacing: 0em
  label-mono:
    fontFamily: JetBrains Mono
    fontSize: 12px
    fontWeight: '600'
    lineHeight: '1.4'
    letterSpacing: 0.04em
  label-sm:
    fontFamily: Inter
    fontSize: 12px
    fontWeight: '600'
    lineHeight: '1.2'
    letterSpacing: 0.06em
rounded:
  sm: 0.375rem
  DEFAULT: 0.5rem
  md: 0.75rem
  lg: 1rem
  xl: 1.25rem
  full: 9999px
spacing:
  unit: 4px
  gutter: 24px
  margin-edge: 32px
  container-max: 1240px
  stack-xs: 4px
  stack-sm: 8px
  stack-md: 16px
  stack-lg: 32px
  stack-xl: 64px
---

# Forthwrite Paper — Tournament Guide & Operations Frontend Design System

## 1. Brand & Aesthetic Philosophy

The **Forthwrite Paper** design system translates broadcast-grade football intelligence and tournament operations into an approachable, high-clarity editorial web experience. Inspired by premium architectural journals and Swiss typography, it abandons dark-mode clutter and neon fatigue in favor of a **tactile white paper foundation (`#FBFBF9` / `#FFFFFF`)** paired with purposeful, high-contrast role accents.

### Core Visual Tenets
- **High-Contrast Editorial Typography**: Dark Obsidian (`#2C2A2B`) anchors all headings and narrative copy, ensuring WCAG AAA legibility in brightly lit broadcast control booths and pitch-side daylight.
- **Role-Calibrated Accent Language**:
  - **Mineral Teal (`#36ABB4`)**: Signifies coach intelligence, active computer vision telemetry, and director controls.
  - **Electric Lime (`#7CA800` / `#BEE501`)**: High-priority actions, verified event tags, and tactical momentum highlights.
  - **Warm Stone (`#7B7165`)**: Structural panel borders, secondary metadata, and neutral reference lines.
- **Tactile Paper Surfaces & Soft Ambient Shadows**: Cards and viewports float upon layered white surfaces with subtle 1px stone outlines (`rgba(123, 113, 101, 0.2)`), avoiding heavy synthetic gradients while providing depth and tactile presence.
- **Mac OS Window Framing**: Shipped screenshots and previews are presented in clean macOS-inspired window frames with traffic light status buttons (`#FF5F56`, `#FFBD2E`, `#27C93F`) and a monospaced path bar.

---

## 2. Color Palette & Functional Roles

| Token | Hex / Value | Role & Usage | Contrast Ratio on Canvas |
|---|---|---|---|
| `--bg` | `#FBFBF9` | Base white paper canvas with subtle radial light glows | Foundation |
| `--card` | `#FFFFFF` | Primary surface for cards, tables, and screenshot window frames | 1.05:1 vs base |
| `--card-warm` | `#F4F4EE` | Secondary panel backgrounds, table header fills, and code fills | 1.12:1 vs base |
| `--text` | `#2C2A2B` | Primary text, titles, headings, and data values (Dark Obsidian) | **14.8:1 (AAA)** |
| `--muted` | `#5C5753` | Explanatory paragraphs, feature bullet text, and captions | **7.2:1 (AAA)** |
| `--faint` | `#7B7165` | Monospace timestamps, table dividers, and subtle outlines | **4.6:1 (AA)** |
| `--teal` | `#36ABB4` | Coach intelligence, primary CTAs, links, and active nav states | **4.5:1 (AA)** |
| `--teal-dark` | `#0E565B` | High-contrast text on teal tinted badges and callout cards | **8.1:1 (AAA)** |
| `--teal-light` | `#E0F6F7` | Soft pill backgrounds, code highlights, and hover overlays | Decorative |
| `--lime` | `#7CA800` | Secondary accent, positive stats, verified badges, and buttons | **4.6:1 (AA)** |
| `--lime-bg` | `#F5FCCE` | Success banners, excitement pills, and highlight markers | Decorative |
| `--stone` | `#7B7165` | Structural borders, window chrome dividers, and metadata | **4.6:1 (AA)** |
| `--gold` | `#D97706` | Timeline indicators, caution alerts, and run sheet markers | **4.8:1 (AA)** |
| `--gold-bg` | `#FEF3C7` | Warning banners and status notification fills | Decorative |

---

## 3. Typographic Hierarchy

Typography blends **Outfit** (modern geometric sans for headlines) with **Inter** (humanist sans for body legibility) and **JetBrains Mono** (technical precision for timestamps and code).

### Scales & Definitions
1. **Hero Title (`display-lg`)**:
   - `font-family: 'Outfit', sans-serif; font-size: clamp(38px, 5.5vw, 68px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;`
2. **Section Headings (`headline-md`)**:
   - `font-family: 'Outfit', sans-serif; font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em;`
3. **Card & Module Titles (`headline-sm`)**:
   - `font-family: 'Outfit', sans-serif; font-size: 18px to 22px; font-weight: 700; line-height: 1.3;`
4. **Body Copy (`body-md`)**:
   - `font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--muted);`
5. **Technical Badges & Monospace Timestamps (`label-mono`)**:
   - `font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;`

---

## 4. Layout Architecture & Section Structure

The guide website follows a modular single-page layout designed for instant navigation and high information density:

```
┌────────────────────────────────────────────────────────────────────────┐
│  Sticky Top Navigation Bar (Logo · Section Links · Open Studio CTA)    │
├────────────────────────────────────────────────────────────────────────┤
│  Hero Section                                                          │
│  - Pill Badge: 🏆 Tournament Admin & Studio Director Guide             │
│  - Headline: "Run a whole tournament from one control room"            │
│  - Floating Mac OS Window: 8-Stream Multiview High-Res Preview         │
│  - Stats Grid: 8 Live Matches · 7 Modules · 1-Click Reels · 3 Devices  │
│  - Live Operational Telemetry Banner (Live Tournament Status)          │
├────────────────────────────────────────────────────────────────────────┤
│  Section 1: Roles and Access Points (6 Role Cards with Icons)          │
├────────────────────────────────────────────────────────────────────────┤
│  Section 2: Pre-Tournament Setup (Manage, Squads, Club Intel, Steps)   │
├────────────────────────────────────────────────────────────────────────┤
│  Section 3: The 7 Studio Modules (Alternating 2-Column Rows)           │
│  - M1: Multiview (2x4 Grid, Live Feed & Audio Selection)               │
│  - M2: Tactical Radar (2D Pitch, xG, Heatmap, Telemetry)               │
│  - M3: Pro Tagging & Timeline (Broadcast Tagging Pad & Telestration)   │
│  - M4: Highlight Organizer (Excitement Scored Clips & Chapters)        │
│  - M5: Player Cue Studio (Spotlight Reels & Scouting Packages)         │
│  - M6: Match Summary (Official Report, AI Paper Sheet OCR)             │
├────────────────────────────────────────────────────────────────────────┤
│  Section 4: Results & Automated Downstream Flow (Flow Nodes)           │
├────────────────────────────────────────────────────────────────────────┤
│  Section 5: Module 7 — Tournament Hub & Win Predictor                  │
│  - Points Table & Standings                                            │
│  - Team Vault Dashboard (Rolling xG, Pressing, Radar Dominance)        │
│  - Elo & Poisson Win Predictor with Head-to-Head Odds                  │
├────────────────────────────────────────────────────────────────────────┤
│  Section 6: Multi-Device Sync (Admin Phone, Referee Tablet Sheet)      │
├────────────────────────────────────────────────────────────────────────┤
│  Section 7: Match-Day Run Sheet (T-120 to EOD Monospace Schedule)      │
├────────────────────────────────────────────────────────────────────────┤
│  Section 8: Value Propositions & Troubleshooting FAQ Matrix            │
├────────────────────────────────────────────────────────────────────────┤
│  Footer & Full-Screen Image Lightbox Modal                             │
└────────────────────────────────────────────────────────────────────────┘
```

---

## 5. UI Component Specifications

### 5.1. Mac OS Window Screenshot Chrome
Screenshots of product interfaces must be enclosed in a standardized application window frame:
```html
<div class="shot" data-zoom>
  <div class="bar">
    <i></i><i></i><i></i>
    <span>FlowX Football Studio · /hub · ⚙ Manage</span>
  </div>
  <img src="img/manage.png" alt="Tournament Manager" onerror="handleImgError(this)" />
</div>
```
- **Top Chrome Bar**: `#F2F2ED` background, `11px` padding, bottom border `1px solid rgba(123, 113, 101, 0.2)`.
- **Traffic Light Indicators**: 3 circles (`width: 11px; height: 11px; border-radius: 50%`):
  - Red Close: `#FF5F56`
  - Yellow Minimize: `#FFBD2E`
  - Green Zoom: `#27C93F`
- **Caption Label**: `JetBrains Mono`, 12px, font-weight 500, color `#5C5753`.
- **Interactive Zoom**: Clicking any `.shot` container triggers a full-screen, backdrop-blurred lightbox modal.

### 5.2. Live Operational Telemetry Banner
Displays live tournament operational state dynamically:
```html
<div class="live-banner reveal">
  <div class="status-indicator">
    <span class="pulse-dot"></span>
    <span class="label">Active Competition:</span>
    <span class="tournament-name">FlowX Global Club Cup 2026 (gcc_2026)</span>
  </div>
  <div class="telemetry-stats">
    <span>⚽ <b>16</b> Clubs Active</span>
    <span>📅 Matchday <b>6 / 15</b></span>
    <span>🗄️ <b>41</b> Matches In Vault</span>
    <span>⚡ <b>8</b> Live Match Sessions</span>
  </div>
</div>
```

### 5.3. Numbered Workflow Steps
```css
.steps { counter-reset: s; display: grid; gap: 16px; }
.step {
  counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  align-items: start; background: #ffffff; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(s, decimal-leading-zero); font-family: Outfit; font-weight: 800;
  font-size: 20px; width: 52px; height: 52px; border-radius: 12px; display: grid;
  place-items: center; background: var(--teal-light); color: var(--teal-dark);
  border: 1px solid rgba(54, 171, 180, 0.3);
}
```

### 5.4. Universal Image Fallback Engine
To prevent broken image links across local files, embedded webviews, previews, and production domains:
```javascript
function handleImgError(img) {
  const currentSrc = img.getAttribute('src') || '';
  const filename = currentSrc.split('/').pop().split('?')[0];
  if (!filename) return;
  const attempts = Number(img.dataset.attempt || 0);
  const candidates = [
    'img/' + filename,
    './img/' + filename,
    '/guide/img/' + filename,
    '../public/guide/img/' + filename,
    '../../web-app/public/guide/img/' + filename,
    'https://flow-x-stream-hvbs.vercel.app/guide/img/' + filename
  ];
  if (attempts < candidates.length) {
    img.dataset.attempt = attempts + 1;
    img.src = candidates[attempts];
  }
}
```

---

## 6. Micro-Interactions & Motion Design

1. **Card Hover Elevation**:
   - `transform: translateY(-3px);`
   - `border-color: rgba(54, 171, 180, 0.45);`
   - `box-shadow: 0 16px 36px -12px rgba(54, 171, 180, 0.2);`
   - Transition: `0.25s cubic-bezier(0.2, 0.8, 0.2, 1)`.
2. **Hero Shot Ambient Float**:
   - Subtle vertical float: `transform: translateY(-6px)` over a 7-second ease-in-out cycle.
3. **Scroll Reveal (`IntersectionObserver`)**:
   - Elements tagged with `.reveal` initialize at `opacity: 0; transform: translateY(22px);`.
   - On intersecting 12% of the viewport, `.in` class triggers a smooth transition (`0.65s ease`).
4. **Active Navigation Tracking**:
   - Navigation links highlight dynamically based on the section currently visible in the center viewport.

---

## 7. Responsiveness & Accessibility Checklist

- **Fluid Grid**: 
  - Desktop (>960px): 12-column grid, alternating 2-column feature blocks (`1fr 1.35fr`).
  - Tablet/Mobile (≤960px): Collapses to single column, top links collapse, cards scale to full width.
- **Touch-Friendly Hit Targets**: Buttons and tab targets strictly maintain a minimum height of `44px`.
- **High-Contrast Text**: Text contrast meets or exceeds WCAG AA (4.5:1) for body copy and AAA (7:1) for headlines.
- **Print Optimization**: Dedicated `@media print` rules hide navigation, CTAs, and modals, rendering clean black-and-white documents suitable for physical tournament clipboards.
