/*
 * Pixel Fade: design tokens
 * A bright, friendly little software studio page with a soft spot for the old desktop days.
 * Pure white pages whose top edge dissolves into a field of pale gray pixels, one centered
 * column, a heavy rounded sans for short headlines and small pixel-font labels. The signature
 * is a stack of wide rounded banners: some glow with a warm sunset gradient and hold a glossy
 * squircle app tile, others sit on the pixel field and hold a hand-placed pixel drawing.
 * Tomato red is the brand and the link color; ember, berry, sky and grape fill the banners.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,800;6..12,900&family=Silkscreen&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --pf-page: #ffffff;          /* every page starts white */
  --pf-pixel: #efeeec;         /* light pixels in the dissolve and checker */
  --pf-pixel-2: #e4e2df;       /* darker pixels, quiet fills */
  --pf-cloud: #f7f6f4;         /* footer, wells, table heads */
  --pf-capsule: #f1efed;       /* the nav capsule and toggles */
  --pf-line: #e6e3df;          /* hairlines and input borders */
  --pf-night: #1e1c22;         /* the dark banner and dark tiles */
  --pf-night-2: #2d2a33;

  /* Text */
  --pf-ink: #19171c;
  --pf-soft: #57535c;
  --pf-mute: #98939c;
  --pf-on-color: #ffffff;
  --pf-on-color-soft: rgba(255, 255, 255, 0.82);

  /* Brand and accents */
  --pf-tomato: #e03a2c;        /* brand mark, links, primary buttons, focus */
  --pf-tomato-deep: #b8261b;
  --pf-tomato-soft: #fde9e6;
  --pf-ember: #ff7b1f;         /* the warm sunset banner */
  --pf-amber: #ffb54a;         /* the glow in the sunset */
  --pf-sun: #ffcd3c;           /* pixel highlights, stars, the pixel portrait tile */
  --pf-berry: #e2407e;
  --pf-sky: #2c95e6;
  --pf-grape: #6a4bdc;
  --pf-leaf: #2fae6b;          /* success and checks */

  /* Banner and tile fills */
  --pf-grad-ember: radial-gradient(120% 140% at 12% 50%, #ffd27a 0%, rgba(255, 210, 122, 0) 42%), linear-gradient(100deg, #ff9a3a 0%, #ff7b1f 40%, #e83b2a 100%);
  --pf-grad-ember-flat: linear-gradient(120deg, #ff8a26 0%, #f0602a 45%, #d8352a 100%);  /* behind text that starts at the left */
  --pf-grad-berry: radial-gradient(90% 120% at 15% 20%, #ffb0cd 0%, rgba(255, 176, 205, 0) 45%), linear-gradient(120deg, #ff6fa3 0%, #e2407e 50%, #9e2470 100%);
  --pf-grad-sky: radial-gradient(90% 120% at 20% 10%, #b8e6ff 0%, rgba(184, 230, 255, 0) 45%), linear-gradient(160deg, #6cc6ff 0%, #2c95e6 50%, #1c56c9 100%);
  --pf-grad-grape: radial-gradient(90% 120% at 20% 10%, #c9b8ff 0%, rgba(201, 184, 255, 0) 45%), linear-gradient(160deg, #9277f5 0%, #6a4bdc 55%, #43299e 100%);
  --pf-grad-night: radial-gradient(80% 120% at 20% 0%, #4a4552 0%, rgba(74, 69, 82, 0) 55%), linear-gradient(160deg, #36323d 0%, #1e1c22 100%);
  --pf-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 50%);

  /* Fonts */
  --pf-sans: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --pf-pixel-font: "Silkscreen", "Courier New", monospace;

  /* Type scale */
  --pf-text-hero: clamp(40px, 5.6vw, 64px);
  --pf-text-h2: clamp(28px, 3.4vw, 40px);
  --pf-text-banner: clamp(19px, 1.9vw, 23px);
  --pf-text-h3: 20px;
  --pf-text-lead: clamp(17px, 1.6vw, 20px);
  --pf-text-body: 17px;
  --pf-text-small: 14px;
  --pf-text-pixel: 11px;
  --pf-leading-tight: 1.04;
  --pf-leading: 1.6;
  --pf-tracking-hero: -0.035em;

  /* Shape */
  --pf-radius-banner: 20px;
  --pf-radius-card: 16px;
  --pf-radius-tile: 23%;        /* squircle-ish app tile */
  --pf-radius-input: 12px;
  --pf-radius-pill: 999px;

  /* Shadows */
  --pf-shadow-tile: 0 14px 28px -8px rgba(25, 23, 28, 0.38), 0 2px 4px rgba(25, 23, 28, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --pf-shadow-card: 0 1px 2px rgba(25, 23, 28, 0.05), 0 16px 36px -18px rgba(25, 23, 28, 0.22);
  --pf-shadow-portrait: 0 10px 22px -8px rgba(25, 23, 28, 0.35);
  --pf-ring: 0 0 0 3px rgba(224, 58, 44, 0.22);

  /* Space */
  --pf-pixel-size: 28px;        /* one cell of the dissolve field */
  --pf-space-1: 4px;
  --pf-space-2: 8px;
  --pf-space-3: 12px;
  --pf-space-4: 16px;
  --pf-space-5: 24px;
  --pf-space-6: 32px;
  --pf-space-7: 48px;
  --pf-space-8: 72px;
  --pf-space-9: 104px;
  --pf-container: 900px;
  --pf-narrow: 640px;
  --pf-gutter: 20px;
}
