/* SJD Films — static rebuild */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --accent: #2f9e8f;
  --line: #e6e6e6;
  --dark: #32373c;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-title {
  display: flex; align-items: center; gap: 10px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text);
}
.site-title img { width: 36px; height: 36px; border-radius: 50%; }
.site-title:hover { text-decoration: none; color: var(--accent); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 22px;
}
.main-nav a {
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  color: var(--text);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* mobile nav (no JS — uses <details>) */
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary {
    list-style: none; cursor: pointer;
    font-family: "Roboto Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em;
    border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px;
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle ul {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-toggle li a {
    display: block; padding: 8px 16px; color: var(--text);
    font-family: "Roboto Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  }
  .nav-toggle li a[aria-current="page"] { color: var(--accent); }
}

/* ---------- Page heading ---------- */
.page-header {
  max-width: var(--max); margin: 0 auto; padding: 40px 16px 8px; text-align: center;
}
.page-header h1 {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .06em; text-transform: uppercase;
}
.breadcrumb { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

main { max-width: var(--max); margin: 0 auto; padding: 24px 16px 64px; }

/* ---------- Galleries (masonry via CSS columns) ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure {
  margin: 0 0 14px; break-inside: avoid;
  overflow: hidden; border-radius: 3px; background: #f2f2f2;
}
.gallery img { width: 100%; height: auto; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
  padding: 8px 10px; font-size: .9rem; color: var(--muted); background: var(--bg);
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
@media (max-width: 420px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid figure { margin: 0; }
.video-grid video {
  width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 3px;
}
.video-grid figcaption { margin-top: 8px; font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 24px 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }
