/* =====================================================
   Starter stylesheet — Web Technologies, SUZA
   Mobile-first, CSS variables, modern reset.
   ===================================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, picture, video { max-width: 100%; display: block; }

/* Design tokens */
:root {
    --color-text: #222;
    --color-bg: #fafafa;
    --color-primary: #4f46e5;
    --color-muted: #666;
    --color-border: #e5e7eb;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;

    --radius: 0.5rem;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base */
body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

h1, h2, h3 { line-height: 1.2; margin-bottom: var(--space-2); }
p { margin-bottom: var(--space-2); }

/* Layout */
header, main, footer {
    padding: var(--space-3) var(--space-2);
    max-width: 1100px;
    margin: 0 auto;
}

header nav ul {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    margin-top: var(--space-1);
}

section {
    background: white;
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

footer {
    text-align: center;
    color: var(--color-muted);
    padding-bottom: var(--space-4);
}

/* Forms */
form {
    display: grid;
    gap: var(--space-1);
    max-width: 400px;
}
label { font-weight: 600; }
input, textarea, button {
    font: inherit;
    padding: var(--space-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
button {
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
}
button:hover { opacity: 0.9; }

/* Tablet+ */
@media (min-width: 768px) {
    header, main, footer { padding: var(--space-4); }
    header nav ul { gap: var(--space-3); }
}
