/*
 * Pipe Tabs: design tokens
 * The handmade community-web homepage, still running after twenty years. A pure black page
 * with one fixed centered column. A red, rounded, lowercase wordmark sits next to a two-row
 * monospace nav split by thin gold pipes, with one link lit up in green. The main column has
 * grey folder tabs over a grid of square art tiles: teal mono titles, plain white mono notes.
 * On the right, a rounded charcoal sidebar holds a live counter, gold headings and a stack of
 * chunky green buttons. Nothing is glossy; everything is honest and a little homemade.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Varela+Round&family=Cousine:ital,wght@0,400;0,700;1,400&family=Arimo:wght@400;700&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --pt-black: #030303;        /* the page, always */
  --pt-column: #0b0b0b;       /* the hero strip behind the intro */
  --pt-panel: #262626;        /* the rounded sidebar and boxed notes */
  --pt-panel-2: #333333;      /* rows and hover inside the panel */
  --pt-well: #151515;         /* inputs and code wells */
  --pt-tab: #9c9c9c;          /* resting folder tab */
  --pt-tab-on: #d4d4d4;       /* the open folder tab */
  --pt-rule: #5a5a5a;         /* the rule under the tabs, table lines */
  --pt-line: rgba(255, 255, 255, .12); /* faint dividers */

  /* Text */
  --pt-text: #f1f1ee;         /* body text on black */
  --pt-soft: #b3b3ad;         /* secondary text, captions */
  --pt-dim: #75756f;          /* placeholders, legal lines */
  --pt-ink: #111111;          /* text on tabs and light chips */

  /* Accents */
  --pt-red: #ee2f37;          /* the wordmark and live dots, nothing else */
  --pt-teal: #2ea7a1;         /* tile titles and section titles in the main column */
  --pt-gold: #e3a646;         /* nav pipes, sidebar headings, underlined links */
  --pt-green: #44b552;        /* buttons and the lit nav link */
  --pt-green-hi: #57c964;     /* button hover */
  --pt-green-lo: #2f8c3b;     /* button bottom edge */
  --pt-lime: #39e04a;         /* short shouty sidebar sentences ("keeps us open!") */

  /* Tile art: only inside drawn square tiles */
  --pt-art-clay: #c4562f;
  --pt-art-cream: #f1e6cf;
  --pt-art-sky: #3a6fd8;
  --pt-art-moss: #4f7d32;
  --pt-art-plum: #6e2d63;
  --pt-art-sun: #f3c63f;

  /* Fonts */
  --pt-font-display: "Varela Round", "Arial Rounded MT Bold", sans-serif;
  --pt-font-mono: Cousine, "Courier New", monospace;
  --pt-font-sans: Arimo, Arial, sans-serif;

  /* Type scale */
  --pt-text-wordmark: 44px;
  --pt-text-hero: clamp(20px, 2.2vw, 24px);   /* the intro paragraph on the hero strip */
  --pt-text-h1: clamp(28px, 3.6vw, 40px);
  --pt-text-h2: 24px;
  --pt-text-h3: 18px;
  --pt-text-body: 15px;
  --pt-text-small: 13px;
  --pt-text-tiny: 12px;
  --pt-leading: 1.45;

  /* Shape */
  --pt-radius-panel: 14px;    /* the sidebar and boxed notes */
  --pt-radius-btn: 6px;       /* chunky green buttons */
  --pt-radius-tab: 3px 3px 0 0; /* folder tabs */
  --pt-radius-sm: 2px;        /* inputs, chips */
  --pt-shadow-btn: inset 0 -3px 0 var(--pt-green-lo);
  --pt-shadow-tab: inset 0 -2px 0 rgba(0, 0, 0, .25);

  /* Space */
  --pt-column-w: 1000px;      /* the fixed centered column */
  --pt-sidebar-w: 210px;
  --pt-gap: 20px;
  --pt-space-1: 4px;
  --pt-space-2: 8px;
  --pt-space-3: 12px;
  --pt-space-4: 20px;
  --pt-space-5: 32px;
  --pt-space-6: 48px;
  --pt-tile: 120px;           /* tile art size on desktop */
}
