/*
 * Design tokens. The ONLY file with raw colors, sizes and spacing.
 *
 * To change the look, change a value here first. Other CSS files use only
 * the semantic names (--color-*, --space-*, --text-*, ...), never the raw
 * palette names, and never hex codes or px values.
 *
 * Note: media queries cannot use variables. Breakpoints are written in em
 * in layout.css and components.css: 40em (small) and 56em (medium).
 */

:root {
	/* Palette: raw values */
	--green-900: #1f3a24;
	--green-700: #2f5d3a;
	--green-500: #4f8a52;
	--green-100: #e4efe2;
	--sand-50:   #fbf8f2;
	--sand-100:  #f4eee2;
	--sand-300:  #e3d7bf;
	--sand-500:  #b9a57f;
	--ink-900:   #1e2420;
	--ink-600:   #4a544d;
	--white:     #ffffff;
	--danger-700: #9b2c1f;
	--danger-100: #fbe9e6;

	/* Semantic colors: what the other files use */
	--color-bg:           var(--sand-50);
	--color-bg-alt:       var(--sand-100);
	--color-surface:      var(--white);
	--color-text:         var(--ink-900);
	--color-text-muted:   var(--ink-600);
	--color-brand:        var(--green-700);
	--color-brand-strong: var(--green-900);
	--color-brand-soft:   var(--green-100);
	--color-accent:       var(--green-500);
	--color-border:       var(--sand-300);
	--color-border-strong: var(--sand-500);
	--color-on-brand:     var(--white);
	--color-focus:        var(--green-500);
	--color-error:        var(--danger-700);
	--color-error-bg:     var(--danger-100);
	--color-success-bg:   var(--green-100);

	/* Spacing scale */
	--space-1:  0.25rem;
	--space-2:  0.5rem;
	--space-3:  0.75rem;
	--space-4:  1rem;
	--space-6:  1.5rem;
	--space-8:  2rem;
	--space-12: 3rem;
	--space-16: 4rem;

	/* Type */
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* Headings: serif italic already on the device (Apple, Windows, then any). No downloads. */
	--font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-heading-style: italic;
	--text-sm:   0.875rem;
	--text-base: 1rem;
	--text-lg:   clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
	--text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
	--text-2xl:  clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--text-3xl:  clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
	--text-4xl:  clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
	--leading-tight: 1.2;
	--leading-body:  1.6;
	--weight-normal: 400;
	--weight-bold:   700;

	/* Shape */
	--border-width: 1px;
	--focus-width:  3px;
	--radius-sm:   4px;
	--radius-md:   8px;
	--radius-lg:   16px;
	--radius-full: 999px;
	--shadow-card: 0 1px 2px rgb(30 36 32 / 0.06), 0 4px 12px rgb(30 36 32 / 0.06);

	/* Layout */
	--container:        72rem;
	--container-narrow: 44rem;
	--gutter:           var(--space-4);
	--card-min:         16rem;
}
