/* ========================================
   Nutrirora - Base Styles
   Minimalist, lightweight, no external deps
   ======================================== */

:root {
    --primary: #2F855A;
    --primary-light: #48BB78;
    --accent: #F6AD55;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-soft: #F9FAFB;
    --border: #E8ECEF;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, Inconsolata, "Fira Code", monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06);

    --transition: 0.2s ease;

    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #276749;
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Selection */
::selection {
    background-color: var(--primary-light);
    color: var(--bg);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========================================
   Design Enhancement — Refined Tokens
   ======================================== */
:root {
    /* Richer green palette */
    --primary:       #1E7A4E;
    --primary-light: #34A770;
    --primary-hover: #166139;
    --primary-pale:  #EBF7F2;

    /* Warm accent */
    --accent:        #E8963A;
    --accent-light:  #FFF3E0;

    /* Refined neutrals */
    --text:          #111827;
    --text-mid:      #374151;
    --text-light:    #6B7280;
    --text-muted:    #9CA3AF;

    /* Surface */
    --bg:            #FFFFFF;
    --bg-soft:       #F8FAF9;
    --bg-card:       #FFFFFF;
    --border:        #E2E8F0;
    --border-hover:  #C4D4CA;

    /* Enhanced shadows */
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:     0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);

    /* Border radii */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius:     12px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Transitions */
    --transition:      0.18s ease;
    --transition-slow: 0.32s ease;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem,   3vw,   2.125rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); font-weight: 600; }

p { color: var(--text-mid); }

/* Better links */
a {
    color: var(--primary);
    transition: color var(--transition);
}
a:hover { color: var(--primary-hover); text-decoration: none; }

/* Refined scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
