/* Rylan Sharpe photography portfolio. Dark by default: stage photos read
   best on black. Tokens on :root; a light scheme is deliberately not
   offered so the work always sits on the same background. */

:root {
  --bg: #0d0d0f;
  --bg-alt: #131316;
  --surface: #18181c;
  --text: #f3f1ec;
  --muted: #a9a49b;
  --accent: #e0a458;
  --line: #26262b;
  --max: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: 0.005em;
}
a { color: var(--accent); }
p { margin: 0 0 1em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }

.hero { padding: 96px max(16px, calc((100% - var(--max)) / 2)) 64px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 52ch; }

.section { padding: 56px max(16px, calc((100% - var(--max)) / 2)); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.section-intro { color: var(--muted); margin: 0; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Gallery: CSS columns keep each photo's own aspect ratio, which matters
   for a portfolio (a cropped square tells the viewer nothing about framing). */
.gallery { columns: 3 320px; column-gap: 14px; }
.gallery figure {
  margin: 0 0 14px;
  break-inside: avoid;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 10px 14px 12px; font-size: 0.85rem; color: var(--muted); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-card a.thumb { display: block; position: relative; }
.video-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-card a.thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 60%);
}
.video-card .meta { padding: 12px 14px 14px; }
.video-card .meta strong { display: block; }
.video-card .meta span { color: var(--muted); font-size: 0.9rem; }

.about { max-width: 64ch; }
.about p { font-size: 1.1rem; }

.site-footer {
  padding: 32px max(16px, calc((100% - var(--max)) / 2)) 48px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox img { display: block; width: min(96vw, 1400px); height: auto; max-height: 86vh; object-fit: contain; }
.lightbox p { color: #ddd; text-align: center; margin: 10px 0 0; font-size: 0.9rem; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 56px; }
}
