/* samrogers.com — slide-film lightbox */
:root {
    --paper: #F2F3EF;
    --ink: #16212E;
    --sky: #1E63D6;
    --amber: #E9A825;
    --mist: #D5DAE0;
    --mount: #F7F6F0;
    --film: #1C1A17;
    --wrap: 68rem;
    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --body: "Public Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2 { margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--ink); color: #fff; padding: .5rem .8rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--mist); }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-bottom: .15rem; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.site-nav a:hover { border-bottom-color: var(--ink); }

/* Display type */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8.5vw, 6.4rem); line-height: .96; letter-spacing: -.03em; max-width: 14ch; }
.hero { padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: 2rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 42ch; margin: 1.25rem 0 0; }

/* Film strip: the one bold element */
.filmstrip { margin: 3rem 0 4rem; overflow: hidden; }
.strip {
    display: flex; gap: 1.25rem; align-items: flex-end;
    padding: 1.6rem 1.5rem;
    background:
        radial-gradient(circle, var(--paper) 0 .3rem, transparent .32rem) 0 .35rem / 1.5rem 1rem repeat-x,
        radial-gradient(circle, var(--paper) 0 .3rem, transparent .32rem) 0 calc(100% - .35rem) / 1.5rem 1rem repeat-x,
        var(--film);
    width: 112vw; margin-left: -6vw;
    transform: rotate(-2deg);
    overflow-x: auto; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: clamp(11rem, 22vw, 16rem); background: var(--mount); padding: .55rem .55rem .35rem; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.06); }
.slide img, .slide-blank { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: #2A2F36; display: block; }
.slide-blank { background: repeating-linear-gradient(135deg, #2A2F36 0 .6rem, #30363E .6rem 1.2rem); }
.slide-label { display: block; font-size: .78rem; margin-top: .35rem; color: #4A5260; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-empty .slide-label { color: #9AA3AE; }
.strip-note { margin-top: 2.2rem; }

/* Elsewhere */
.elsewhere { padding-bottom: 4rem; }
.elsewhere h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em; }
.elsewhere dl { margin: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 44rem; }
.elsewhere dt { font-weight: 600; }
.elsewhere dd { margin: .2rem 0 0; color: #4A5260; }

/* Gallery: slide mounts */
.mounts { list-style: none; padding: 0; margin: 2rem 0 3rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.mount { display: block; background: var(--mount); padding: .7rem; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(22,33,46,.18); transition: transform .15s ease; }
.mount:hover { transform: translateY(-2px); }
.mount-frame { display: block; background: var(--film); padding: .35rem; }
.mount-frame img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.mount-title { display: block; margin-top: .6rem; font-weight: 600; }
.mount-meta { display: block; color: #4A5260; font-size: .9rem; }
.pagination { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 3rem; }

/* Detail: lightbox */
.lightbox-stage { background: var(--film); padding: clamp(1rem, 4vw, 3rem); display: flex; justify-content: center; }
.lightbox-stage img { max-height: 80vh; width: auto; max-width: 100%; }
.stage-blank { width: min(60rem, 100%); }
.lightbox-caption { padding-top: 2rem; padding-bottom: 4rem; max-width: 44rem; }
.lightbox-caption h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }

/* About */
.prose { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) 4rem; max-width: 46rem; margin-left: 0; }
.prose p { font-size: 1.1rem; max-width: 60ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--mist); color: #4A5260; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: inherit; margin-left: 1rem; }

@media (max-width: 40rem) {
    .strip { width: 120vw; margin-left: -10vw; gap: .8rem; padding: 1.2rem 1rem; }
    .slide { width: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mount { transition: none; }
}

@media (min-width: 40rem) {
    .display .line { display: block; }
}
