/*
 * Design tokens: every site-wide colour, font and size lives here, and
 * global.css + the shared components (src/components/layout.js, Link.js) only
 * ever read them through var(--…).
 *
 * A skin is a file skins/<name>.css that overrides any of these under
 * :root[data-skin='<name>'] (copy night.css to start one; new files are picked
 * up automatically). Try one in the browser with ?skin=<name>: it sticks via
 * localStorage until ?skin= clears it. ?skin=<anything not a skin> shows this
 * file's plain values. Make one the site default in site-skin.mjs.
 * scripts/screenshots.mjs --skin <name> shoots every page in it.
 *
 * Page-specific motifs are deliberately NOT tokens: the RollerCoaster Tycoon
 * window on /about, the FaceWithMask illustration and /welcome's novelty font
 * imitate particular things and should look the same in every skin.
 */
:root {
  /* --- colour */
  --color-page-bg: hsl(58, 90%, 95%);
  --color-text: #000;
  --color-heading: inherit;
  --color-link: hsl(208, 99%, 32%);
  --color-link-visited: hsl(208, 40%, 21%);
  --color-link-hover: hsl(208, 99%, 42%);
  /* Wavy underline on links to other pages of the site (components/Link.js) */
  --color-internal-link-underline: hsla(259, 56%, 51%, 0.7);
  /* "back to top" zigzag line at the bottom of every page */
  --color-zigzag: #000;

  /* Full-screen photo viewer on the portfolio pages */
  --lightbox-backdrop: rgba(0, 0, 0, 0.92);
  --lightbox-text: #fff;
  /* Secondary text in the viewer, e.g. the thumbnail strip's section labels */
  --lightbox-text-muted: rgba(255, 255, 255, 0.7);
  /* Tape on a process photo in the viewer: fainter than --portfolio-tape */
  --lightbox-tape: rgba(232, 214, 160, 0.65);
  /* Lifts a framed process print off the viewer's dark backdrop */
  --lightbox-print-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  /* Caption written on a process print's white frame in the viewer */
  --lightbox-print-ink: #000;
  /* Tinted tray behind each section of thumbnails in the viewer's strip */
  --lightbox-tray: rgba(255, 255, 255, 0.1);
  /* Keyboard focus ring in the viewer: orange reads on black and isn't red/green */
  --lightbox-focus: hsl(30, 100%, 60%);

  /* --- type */
  --font-body: sans-serif;
  --font-heading: inherit;
  /* Body text of the monospace article pages (ConstrainedWidth isMonospace) */
  --font-mono: monospace;
  /* The "Hi. I'm Zach." greeting on the homepage */
  --font-greeting: serif;
  --font-size-body: 1em;
  /* Body size once the viewport is at least 576px wide */
  --font-size-body-wide: 1.1em;
  /* Monospace pages scale up by this from 450px wide */
  --font-size-mono-wide: 1.2em;
  --line-height-body: 1.5;
  --line-height-text: 1.5em;
  --font-size-caption: 0.9em;

  /* --- layout */
  /* Max line length of the main column */
  --measure: 70ch;
  --page-padding: 24px 12px;
  /* Column width of the photo-heavy portfolio pages */
  --measure-gallery: 900px;
  /* Tallest a large portfolio photo/video gets, so a portrait shot fits on screen */
  --gallery-max-height: 90vh;
  /* Space between photos in the portfolio grids and stacks */
  --gallery-gap: 12px;
  /* Narrowest a grid thumbnail gets before the grid drops a column (2 fit on a phone) */
  --thumb-min-width: 150px;
  /* Shape of the cropped portfolio thumbnails (width / height) */
  --thumb-aspect-ratio: 3 / 4;
  --link-color-transition: color 300ms;

  /* --- portfolio project pages: a magazine spread on tailor's graph paper */
  --portfolio-paper: #f4f1e8;
  /* Graph-paper rules, and the size of one square */
  --portfolio-grid-line: rgba(31, 78, 140, 0.09);
  --portfolio-grid-size: 24px;
  --portfolio-ink: #1d2430;
  /* Captions, spec labels, placeholder text */
  --portfolio-ink-muted: #5b5f66;
  /* Links' hover colour; orange, so it never relies on red/green */
  --portfolio-accent: #b4531f;
  /* Masking tape holding the process photos down */
  --portfolio-tape: rgba(232, 214, 160, 0.85);
  /* White border round each taped print */
  --portfolio-print-border: #fff;
  /* Narrowest a process print gets before the grid drops a column (one per row on phones) */
  --portfolio-print-min-width: 400px;
  /* Same, for the project covers on /sewing */
  --portfolio-cover-min-width: 400px;
  --portfolio-print-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  --portfolio-measure: 1320px;
  --font-portfolio-display: 'Fraunces', Georgia, serif;
  --font-portfolio-body: 'Inter', system-ui, sans-serif;
  /* Process photo notes, as if pencilled under each print */
  --font-portfolio-notes: 'JetBrains Mono', ui-monospace, monospace;

  /* --- coding portfolio (/code): an old desktop OS, windows on a teal desktop */
  --code-desktop: #2a7a78;
  /* Text on the desktop itself (icon labels) */
  --code-desktop-text: #fff;
  /* Window chrome, its bevel highlight and shadow, and the drop shadow */
  --code-chrome: #c0c0c0;
  --code-chrome-light: #fff;
  --code-chrome-dark: #808080;
  --code-chrome-shadow: #000;
  /* Title bar of a window: a navy-to-blue fade, white text */
  --code-title-from: #1d2a6b;
  --code-title-to: #4a6fb5;
  --code-title-text: #fff;
  /* Inside a window's content well */
  --code-well: #fff;
  --code-ink: #000;
  --code-ink-muted: #555;
  --code-link: #1d2a6b;
  --font-code-ui: 'Inter', Tahoma, system-ui, sans-serif;
  /* The text-file window's contents, as if in a plain text editor */
  --font-code-file: 'Courier New', Courier, monospace;
}
