/* ---- Color palette (change these to re-theme the whole site) ---- */
:root {
    --granite-dark: #2b2b2a;   /* main background */
    --granite-mid: #38383636;  /* used for subtle texture spots */
    --panel: #3a3a38;          /* cards / header background, slightly lighter than page bg */
    --text-main: #ececea;      /* main body text, off-white for readability on dark bg */
    --text-muted: #b3b1ad;     /* secondary text */
    --accent: #c9a15a;         /* warm metallic accent for links/buttons/headings */
    --border: #4a4a47;
}

/* Reset default browser spacing so layout is predictable */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
    /* Layered radial gradients over a solid color to fake a subtle granite / stone speckle,
       instead of a flat single color. */
    background-color: var(--granite-dark);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,0.025) 0%, transparent 35%),
        radial-gradient(circle at 60% 80%, rgba(0,0,0,0.15) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.02) 0%, transparent 30%);
    line-height: 1.6;
}

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

/* ---- Header / nav ---- */
.site-header {
    background-color: var(--panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.site-name {
    font-weight: 600;
    font-size: 1.2rem;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}
.nav-links a {
    color: var(--text-main);
}
.nav-links a:hover {
    color: var(--accent);
}

/* ---- Page sections ---- */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}
.section:last-child {
    border-bottom: none;
}
.section h2 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.6rem;
}
.section p {
    color: var(--text-muted);
    max-width: 640px;
}

/* ---- Buttons (resume, LinkedIn, email, project links) ---- */
.button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--granite-dark);
    font-weight: 600;
    border-radius: 4px;
}
.button:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* ---- Individual project blocks (inside the Projects section) ---- */
.project {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.project:first-of-type {
    border-top: none;
    padding-top: 0;
}
.project h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.project-description {
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 20px;
}

/* Grid of photos/videos for one project. Each figure = one media item + its caption. */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.media-grid figure {
    background-color: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.media-grid img,
.media-grid video {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover; /* fills the box without stretching/distorting the image */
    background-color: #000;
}
.media-grid figcaption {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
