/* ============================================================
   Kevin Sornetto — Portfolio
   Editorial / magazine direction. Bright, restrained, no color
   accent — contrast comes from type, space, and hairlines.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=IBM+Plex+Sans:wght@400;500&display=swap');

:root {
  --paper: #FFFFFF;
  --paper-warm: #FAFAF7;
  --ink: #16150F;
  --stone: #86816F;
  --hairline: #E7E3D8;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;

  --margin: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 28px var(--margin) 0;
  font-size: 0.95rem;
}

.site-nav__mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

.site-nav__links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
}

.site-nav__links a {
  position: relative;
  color: var(--stone);
  transition: color 0.15s ease;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--ink);
}

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}

@media (max-width: 640px) {
  .site-nav { flex-wrap: wrap; }
  .site-nav__toggle { display: block; }
  .site-nav__links {
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
  }
  .site-nav__links.is-open { display: flex; }
}

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

.site-footer {
  padding: 48px var(--margin) 36px;
  border-top: 1px solid var(--hairline);
  margin-top: 96px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--stone);
}

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

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

/* ---------- Utility ---------- */

.section {
  padding: 0 var(--margin);
}

/* ---------- Placeholder swatch (stand-in for real photo/video) ---------- */

.swatch {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E9E6DC, #CFCBBC);
}

/* ---------- Page header (shared pattern across content pages) ---------- */

.page-head {
  padding: clamp(40px, 9vw, 88px) var(--margin) clamp(24px, 5vw, 48px);
}

.page-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 0.95;
  margin: 0;
}

.page-head__sub {
  max-width: 52ch;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--stone);
}

/* ---------- Film-roll album reels ---------- */

.reel-group {
  padding: 0 var(--margin) 64px;
}

.reel-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.reel-group__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}

.reel-group__meta {
  font-size: 0.85rem;
  color: var(--stone);
}

.reel-strip-wrap {
  position: relative;
  background: #141414;
  border-radius: 8px;
  padding: 16px 0;
}

.reel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: background 0.15s ease;
}

.reel-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.reel-arrow--left {
  left: 10px;
}

.reel-arrow--right {
  right: 10px;
}

.sprockets {
  height: 10px;
  margin: 0 24px 12px;
  background-image: repeating-linear-gradient(to right, #3A3A3A 0 10px, transparent 10px 22px);
}

.sprockets--bottom {
  margin: 12px 24px 0;
}

.reel-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 24px 16px;
}

.reel-frame {
  flex: 0 0 clamp(200px, 34vw, 340px);
  aspect-ratio: 3 / 2;
  background-color: #CFCBBC;
  background-image: linear-gradient(135deg, #E9E6DC, #CFCBBC);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) invert(0.9);
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  border-radius: 3px;
}

.reel-frame:hover {
  filter: none;
  transform: scale(1.25);
  position: relative;
  z-index: 5;
}

.reel-caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--stone);
  margin: 14px 0 0;
}

/* ---------- Lightbox (full-resolution photo viewer) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: clamp(20px, 5vw, 40px);
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
  padding: 8px;
}
