/* Import Space Grotesk from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --accentColor: #3252de;
    --accentColor2: #b07430;
    --color-text:  #d6cfc9;
    --color-emphasis: #ffffff;   /* bold/<strong> text in body copy — brighter than --color-text */
    --color-background: #0b0b0b;
    --color-unselected: #837E7B;
    --color-hover: #3252de;

    /* Shared gap between project cards — used by BOTH the homepage grid
       (.work-grid) and every container's child-project grid (#work-list),
       so they can't drift out of sync from each other. */
    --project-card-gap: 10px;

    /* Shared title/subtitle color & size for project cards — used by BOTH the
       homepage cards (.project-card-name/-subname) and every container's
       child-project cards (.work-card-name/-subname). */
    --project-card-title-color: #ffffff;
    --project-card-title-size: 24px;
    --project-card-subtitle-color:  #ffffff;
    --project-card-subtitle-size: 14px;

    /* Shared bottom vignette for project cards — used by BOTH the homepage
       cards (.project-card-vignette) and every container's child-project
       cards (.work-card-vignette). Height is how tall the fade is (% of the
       card); color is the fade's base color; strength is how opaque that
       color is at the very bottom (0% = invisible, 100% = solid). */
    --project-card-vignette-height: 35%;
    --project-card-vignette-color: #000000;
    --project-card-vignette-strength: 30%;
}


[class^="hl-"] {
    padding: 1px 5px;
    border-radius: 0px;
    color: #000;
}

.hl-accent    { color: var(--accentColor); }
.hl-accent2   { background-color: var(--accentColor2); color: var(--color-secondary); }

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-background);
}

/* Bold text is emphasized brighter than regular body copy, site-wide */
strong, b { color: var(--color-emphasis); }

/* Square bullet markers site-wide, in the emphasis color (same as bold text) */
ul { list-style-type: square; }
li::marker { color: var(--color-emphasis); }

h1 { font-size: 3rem;     font-weight: 700; line-height: 1.1; }
h2 { font-size: 2rem;     font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.3rem;   font-weight: 150; line-height: 1.3; }
h4 { font-size: 1.2rem;   font-weight: 500; line-height: 1.4; }
h5 { font-size: 1rem;     font-weight: 500; line-height: 1.4; }
h6 { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 2.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--accentColor);
}

/* ===== Inline text links (About section, project Overview, gallery text
   blocks) — NOT header nav, the breadcrumb, or whole-card links, which have
   their own distinct hover treatments. Emphasis-colored text with a 2px
   underline anchored to the right edge: on hover the text animates to the
   accent color (linear) while the underline retracts right-to-left-visually
   (transform-origin: right, scaleX 1→0 — the shrinking edge sweeps left to
   right); unhovering regrows it with the same anchor (scaleX 0→1 — the
   growing edge sweeps right to left), both over the same duration. */
.about2-col a:not(.social-link),
.project-overview a,
.gallery-text a {
    position: relative;
    display: inline-block;
    color: var(--color-emphasis);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s linear;
}

.about2-col a:not(.social-link)::after,
.project-overview a::after,
.gallery-text a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: currentColor;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.15s cubic-bezier(0.19, 1, 0.22, 1);
}

.about2-col a:not(.social-link):hover,
.project-overview a:hover,
.gallery-text a:hover {
    color: var(--accentColor);
}

.about2-col a:not(.social-link):hover::after,
.project-overview a:hover::after,
.gallery-text a:hover::after {
    transform: scaleX(0);
}

/* ===== Lightbox: click a gallery image to view it full-size ===== */
.zoomable { cursor: zoom-in; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 96vw;
    max-height: 96vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
