/* Shared base styles. Each site adds its own look in /assets/<site>/style.css */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #ffffff;
    --text: #1d1d1f;
    --muted: #6b6b70;
    --accent: #2a6df4;
    --card: #f4f4f6;
    --font: system-ui, -apple-system, "Segoe UI", sans-serif;
    --heading-font: var(--font);
    --max: 1100px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.2; }

.site-header, .site-main, .site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}
.site-header .brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header nav a { margin-left: 20px; color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 12px; }
.hero .intro { font-size: 1.25rem; color: var(--muted); max-width: 720px; }

.prose { max-width: 720px; }

.work-section, .contact { padding: 40px 0; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.work-card { text-decoration: none; color: var(--text); }
.work-card img, .work-card .placeholder {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: var(--card);
    border-radius: 6px;
    margin-bottom: 8px;
}
.work-card .meta, .work-item .meta, .work-item .roles { color: var(--muted); font-size: 0.9rem; display: block; }
.work-card:hover strong { color: var(--accent); }

.work-item { max-width: 860px; padding-bottom: 40px; }
.video { aspect-ratio: 16 / 9; margin: 24px 0; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.hero-image { margin: 24px 0; border-radius: 6px; }

.site-footer { padding-top: 40px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--card); }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 24px 0;
}
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; }
