/* PUFF — Base reset + design tokens (Retro Cookbook 1974) */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Retro cookbook palette — 1974 print aesthetic */
  --cream: #f2e6c8;         /* aged paper */
  --cream-2: #ecdfbb;
  --cream-deep: #e3d3a8;
  --paper: #f5eacd;         /* base surface */
  --ink: #2a1e15;           /* rich almost-black */
  --ink-soft: #4a3625;
  --ink-faint: #806a54;
  --burnt: #c85a1f;         /* burnt orange */
  --burnt-dark: #a34015;
  --olive: #4a5d2b;         /* deep olive */
  --olive-2: #6b7d3f;
  --mustard: #d4a24c;       /* warm mustard */
  --brick: #9b3416;

  /* Semantic */
  --color-bg: var(--paper);
  --color-surface: var(--cream);
  --color-surface-2: var(--cream-2);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-text-faint: var(--ink-faint);
  --color-accent: var(--burnt);
  --color-accent-2: var(--olive);
  --color-border: rgba(42, 30, 21, 0.25);
  --color-border-soft: rgba(42, 30, 21, 0.12);

  /* Fonts */
  --font-display: "Playfair Display", "Cooper Std", Georgia, serif;
  --font-body: "Fraunces", "Georgia", serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;
  --font-script: "Caveat", cursive;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--paper);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--paper);
  /* Paper grain via layered gradients + repeating noise */
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(200, 90, 31, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(74, 93, 43, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 162, 76, 0.04) 0%, transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Halftone dot overlay — the retro secret sauce */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(42, 30, 21, 0.18) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* Grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; }

a { color: var(--burnt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--transition); }
a:hover { color: var(--brick); }

::selection { background: var(--burnt); color: var(--cream); }

:focus-visible { outline: 3px solid var(--burnt); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
</content>
</invoke>