/* RenMenu — design tokens + base */
:root {
  --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);

  --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;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-narrow: 640px; --content-default: 960px; --content-wide: 1160px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

:root, [data-theme='light'] {
  --color-bg: #f8f4ec;
  --color-surface: #fffdf8;
  --color-surface-2: #fbf8f1;
  --color-surface-offset: #f1ebdf;
  --color-surface-offset-2: #e8e0d0;
  --color-divider: #e3dbcb;
  --color-border: #d3c9b5;
  --color-text: #2a2119;
  --color-text-muted: #75695c;
  --color-text-faint: #b3a897;
  --color-text-inverse: #fbf7ef;
  --color-primary: #7a1f2b;        /* vino */
  --color-primary-hover: #5f1721;
  --color-primary-active: #45111a;
  --color-primary-highlight: #f0dcdc;
  --color-accent: #c8892b;         /* ottone / oro caldo, uso limitato */
  --color-success: #4a7a2a;
  --color-error: #a12c3a;
  --shadow-sm: 0 1px 2px oklch(0.25 0.03 60 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.25 0.03 60 / 0.10);
  --shadow-lg: 0 18px 40px oklch(0.25 0.03 60 / 0.14);
}
[data-theme='dark'] {
  --color-bg: #17130f;
  --color-surface: #1e1914;
  --color-surface-2: #241e18;
  --color-surface-offset: #2a231c;
  --color-surface-offset-2: #332b22;
  --color-divider: #2f2820;
  --color-border: #453b30;
  --color-text: #eee6d8;
  --color-text-muted: #a3978a;
  --color-text-faint: #6d6357;
  --color-text-inverse: #1c1712;
  --color-primary: #d9707c;
  --color-primary-hover: #e48c96;
  --color-primary-active: #c4586a;
  --color-primary-highlight: #3a2427;
  --color-accent: #e0a64d;
  --color-success: #8bc46a;
  --color-error: #e07583;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 40px oklch(0 0 0 / 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: var(--space-16); }
body { min-height: 100vh; min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); }
img, svg, canvas { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
a { color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, textarea, select { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !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: 0; }

/* Shared UI */
.container { width: min(100% - 2 * var(--space-5), var(--content-wide)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--space-5), var(--content-narrow)); margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; border: 1px solid transparent; text-decoration: none; min-height: 44px; }
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--color-border); background: var(--color-surface); }
.btn--ghost:hover { border-color: var(--color-text-muted); }
.btn--sm { padding: var(--space-2) var(--space-4); min-height: 36px; }
.eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-primary); font-weight: 600; }
.muted { color: var(--color-text-muted); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; color: var(--color-primary); flex: none; }
.theme-toggle { width: 40px; height: 40px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }
