/*
  Parchment Isle tokens
  Feel: a storybook adventure on a deep cobalt sea. Cream parchment ribbons
  and scrolls, stone-slab buttons with an ink outline, one gold treasure plate
  for the main action, rune-like rules and low-poly islands drawn in SVG.

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

:root {
  /* Sea (page surfaces) */
  --pi-sea: #1F3BE0;
  --pi-sea-2: #2C4BF0;
  --pi-deep: #13208C;
  --pi-abyss: #0C1460;
  --pi-foam: #E9EFFF;
  --pi-foam-soft: #B9C7FF;

  /* Parchment and stone */
  --pi-parchment: #F6E3BC;
  --pi-parchment-2: #ECD3A2;
  --pi-stone: #E7E1D6;
  --pi-stone-edge: #A9A193;
  --pi-moss: #8FA77A;
  --pi-moss-dark: #5F7A50;

  /* Ink and accents */
  --pi-ink: #1A1430;
  --pi-ink-soft: #4A4260;
  --pi-gold: #F2C230;
  --pi-gold-dark: #C99417;
  --pi-ember: #D9472B;
  --pi-rose: #F08AA0;

  /* Fonts */
  --pi-font-display: "Baloo 2", "Nunito", sans-serif;
  --pi-font-body: "Nunito", system-ui, sans-serif;

  /* Type scale */
  --pi-text-xs: 0.8125rem;
  --pi-text-sm: 0.9375rem;
  --pi-text-md: 1.0625rem;
  --pi-text-lg: 1.25rem;
  --pi-text-xl: 1.625rem;
  --pi-text-2xl: 2.25rem;
  --pi-text-3xl: clamp(2.25rem, 6vw, 4rem);
  --pi-text-hero: clamp(2.75rem, 8vw, 5.5rem);
  --pi-leading-tight: 1.05;
  --pi-leading: 1.6;

  /* Shape */
  --pi-radius-sm: 6px;
  --pi-radius: 12px;
  --pi-radius-lg: 22px;
  --pi-radius-pill: 999px;
  --pi-outline: 3px solid var(--pi-ink);
  --pi-outline-thin: 2px solid var(--pi-ink);

  /* Shadows: hard ink drops and an inner stone bevel */
  --pi-shadow-drop: 0 5px 0 var(--pi-ink);
  --pi-shadow-drop-sm: 0 3px 0 var(--pi-ink);
  --pi-shadow-bevel: inset 0 -4px 0 var(--pi-stone-edge), inset 0 3px 0 #FFFFFF;
  --pi-shadow-gold: inset 0 -4px 0 var(--pi-gold-dark), inset 0 3px 0 #FFE89A;
  --pi-shadow-sea: 0 24px 60px rgba(12, 20, 96, 0.45);

  /* Space */
  --pi-space-1: 4px;
  --pi-space-2: 8px;
  --pi-space-3: 12px;
  --pi-space-4: 16px;
  --pi-space-5: 24px;
  --pi-space-6: 32px;
  --pi-space-7: 48px;
  --pi-space-8: 72px;
  --pi-space-9: 112px;
  --pi-max: 1120px;
  --pi-max-text: 680px;
}
