/*
  Postcard OS: design tokens
  A summer holiday that runs on a 1997 computer. Pastel flamingo wallpaper
  with a fine dither, cream windows with hairline ink borders and close boxes,
  a menu bar with a date stamp, a dock of drawn icons, and typewriter text.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Anton&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=VT323&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --pc-flamingo: #F5CDD1;      /* the wallpaper */
  --pc-flamingo-deep: #E9AEB5; /* dither dots, wallpaper shade */
  --pc-cream: #FBF3E8;         /* windows, cards */
  --pc-paper: #FFFDF8;         /* inputs, inner panels */
  --pc-ink: #17131A;           /* text, every border */
  --pc-muted: #6D6168;         /* secondary text */
  --pc-shade: #E6DACB;         /* pressed buttons, table stripes */

  /* Accents */
  --pc-pool: #A6DCE8;          /* the main button, selected states */
  --pc-pool-deep: #2F78A8;     /* links, focus rings */
  --pc-coral: #EF5A60;         /* live dots, sale tags, one hot action */
  --pc-sun: #F7D768;           /* highlight marks, stickers */

  /* Fonts */
  --pc-font-display: "Anton", "Arial Narrow", sans-serif;
  --pc-font-body: "Courier Prime", "Courier New", monospace;
  --pc-font-system: "VT323", "Courier New", monospace;

  /* Type scale */
  --pc-text-hero: clamp(46px, 6.4vw, 88px);
  --pc-text-h2: clamp(32px, 4.4vw, 56px);
  --pc-text-h3: 22px;
  --pc-text-lead: 18px;
  --pc-text-body: 16px;
  --pc-text-small: 14px;
  --pc-text-system: 20px;      /* VT323 reads small, so it runs large */
  --pc-leading: 1.6;
  --pc-tracking-display: 0.01em;

  /* Shape */
  --pc-radius-window: 6px;
  --pc-radius-button: 3px;
  --pc-radius-icon: 4px;
  --pc-border: 1px solid var(--pc-ink);
  --pc-border-soft: 1px solid rgba(23, 19, 26, 0.22);

  /* Shadows: soft drop under windows, hard bevel on buttons */
  --pc-shadow-window: 0 1px 0 var(--pc-ink), 0 24px 48px -18px rgba(120, 54, 70, 0.45);
  --pc-shadow-bevel: inset 1px 1px 0 #FFFFFF, inset -1px -1px 0 rgba(23, 19, 26, 0.28);
  --pc-shadow-pressed: inset 1px 1px 0 rgba(23, 19, 26, 0.3), inset -1px -1px 0 #FFFFFF;
  --pc-shadow-sticker: 3px 3px 0 var(--pc-ink);

  /* Patterns */
  --pc-dither: radial-gradient(var(--pc-flamingo-deep) 0.8px, transparent 1.2px);
  --pc-dither-size: 4px 4px;
  --pc-scan: repeating-linear-gradient(0deg, rgba(23, 19, 26, 0.06) 0 1px, transparent 1px 3px);

  /* Space */
  --pc-space-1: 4px;
  --pc-space-2: 8px;
  --pc-space-3: 12px;
  --pc-space-4: 16px;
  --pc-space-5: 24px;
  --pc-space-6: 32px;
  --pc-space-7: 48px;
  --pc-space-8: 72px;
  --pc-space-9: 112px;
  --pc-container: 1120px;
  --pc-measure: 660px;
  --pc-menubar: 34px;
}
