:root {
    --touch-min: 48px;
    --touch-lg: 56px;

    --color-bg: #f6f4f0;
    --color-surface: #ffffff;
    --color-surface-2: #f0ede8;
    --color-border: rgba(44, 42, 41, 0.12);
    --color-text: #2c2a29;
    --color-ink: #2c2a29;
    --color-text-muted: rgba(44, 42, 41, 0.55);
    --color-primary: #7a8b76;
    --color-primary-dark: #6a7a66;
    --color-accent: #7a8b76;
    --color-clay: #b85c38;
    --color-danger: #b85c38;
    --color-danger-bg: rgba(184, 92, 56, 0.12);

    --expiry-expired: #b85c38;
    --expiry-critical: #c46a42;
    --expiry-warning: #d4895c;
    --expiry-ok: #7a8b76;
    --expiry-none: rgba(44, 42, 41, 0.4);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-sharp: 3px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font: var(--font-body);

    --ease-master: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-tally: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-cascade: 0.6s;
    --duration-press: 0.15s;
    --duration-sheet: 0.4s;
    --duration-backdrop: 0.3s;

    --shadow-card: 0 8px 24px rgba(44, 42, 41, 0.06);
    --shadow-index-card: 3px 4px 0 rgba(44, 42, 41, 0.06), 0 10px 28px rgba(44, 42, 41, 0.05);
    --shadow-fab: 0 12px 32px rgba(122, 139, 118, 0.3);
    --shadow-btn-hover: 0 10px 28px rgba(44, 42, 41, 0.1);

    --nav-height: 64px;
    --header-height: 52px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-offset: calc(var(--nav-height) + var(--safe-bottom));
}

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

html {
    height: 100%;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.font-display {
    font-family: var(--font-display);
    font-weight: 700;
}

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