/* ------------------------------------------------------------------
   Shared across every page — variables, reset, header, footer.
   Page-specific styles live in their own sheet, loaded after this one.
   ------------------------------------------------------------------ */

:root{
    --bg: #fcfcfc;
    --ink: #111111;
    --gray: #8b8b8b;
    --rule: #bababa;

    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

    --margin: 80px;
    --rule-weight: 2px;
    --radius: 20px;
}

*,
*::before,
*::after{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a{
    color: inherit;
    text-decoration: none;
}

img{
    display: block;
    max-width: 100%;
}

/* The metadata voice: nav, meta lines, labels, footer */
.mono{
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Section label — mono, above a block of copy (project pages, about page) */
.section-label{
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

/* ---------- Header ---------- */

.site-header{
    padding: 20px var(--margin);
    border-bottom: var(--rule-weight) solid var(--rule);
}

.site-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav a{
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active{
    color: var(--ink);
}

.site-nav a:hover{
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

/* ---------- Footer ---------- */

.site-footer{
    padding: 20px var(--margin);
    border-top: var(--rule-weight) solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

.site-footer p{
    margin: 0;
}

.site-footer a{
    transition: color 0.2s ease;
}

.site-footer a:hover{
    color: var(--ink);
}

.footer-contact:hover{
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

/* ---------- Holding page (temporary, while a section is in progress) ---------- */

.holding{
    min-height: calc(100vh - 62px - 62px);   /* header and footer are 62px each */
    padding: 80px var(--margin);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.holding-label,
.holding-note,
.holding-back{
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

.holding-title{
    margin: 0;
    max-width: 24ch;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(48px, 7.5vw, 108px);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.holding-title em{
    font-style: italic;
}

.holding-back{
    margin-top: 40px;
    color: var(--ink);
}

.holding-back:hover{
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

/* The lightbox is shared: project pages and the More page both use it,
   so it lives here rather than in a page-specific sheet. */
/* ---------- Lightbox (click a photo or video to see it full screen) ---------- */

.zoomable{
    cursor: zoom-in;
}

.lightbox{
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: rgba(12, 12, 12, 0.94);
}

.lightbox[open]{
    display: flex;
    flex-direction: column;
}

.lightbox::backdrop{
    background: transparent;
}

body:has(.lightbox[open]){
    overflow: hidden;
}

.lightbox-media{
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px var(--margin);
}

.lightbox-media img,
.lightbox-media video{
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close{
    position: absolute;
    top: 16px;
    right: 20px;
    margin: 0;
    padding: 4px 10px;
    border: 0;
    background: none;
    font-family: var(--font-sans);
    font-size: 40px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
}

.lightbox-close:hover{
    opacity: 0.7;
}

/* Slideshow controls, styled like the bar under the slideshow */
.lightbox-nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 0 var(--margin) 32px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.lightbox-nav[hidden]{
    display: none;
}

.lightbox-nav button{
    margin: 0;
    padding: 4px 8px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 22px;
    color: inherit;
    cursor: pointer;
}

.lightbox-nav button:hover{
    opacity: 0.7;
}

.lightbox-media:has(+ .lightbox-nav:not([hidden])){
    padding-bottom: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px){
    :root{
        --margin: 48px;
    }
}

@media (max-width: 820px){
    :root{
        --margin: 24px;
    }
}

@media (max-width: 480px){
    .site-nav a,
    .site-footer{
        font-size: 12px;
    }

    .site-nav a{
        letter-spacing: 0.08em;
    }
}
