/*
Theme Name: Wale Adetula Portfolio
Theme URI: https://waleadetula.com
Author: Wale Adetula
Author URI: https://waleadetula.com
Description: A minimalist filmmaker portfolio theme. Full-bleed Home screen, a side-by-side Bio page, and a reusable Project template for each film. Sitewide Instagram, CV, and email are set under Appearance > Theme Settings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wale-portfolio
*/

/* ============================================================
   Wale Adetula Portfolio — shared styles
   ============================================================ */

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

/* ---------- Scoped reset: stop other styles leaking onto portfolio pages ---------- */
body.wale-home,
body.wale-inner {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.wale-home h1, body.wale-home h2, body.wale-home h3, body.wale-home p, body.wale-home ul, body.wale-home li,
body.wale-inner h1, body.wale-inner h2, body.wale-inner h3, body.wale-inner p, body.wale-inner ul, body.wale-inner li {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  border: 0;
}

body.wale-inner img { max-width: 100%; height: auto; }

/* ---------- HOME ---------- */
body.wale-home {
  background: #0a0a0a;
  color: #f0ede8;
  overflow: hidden;
  height: 100vh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease;
  opacity: 0;
  z-index: 0;
}
.bg-layer.visible { opacity: 1; }

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1;
  pointer-events: none;
}

#home-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5vw 6vw;
}

.site-name {
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f0ede8;
  margin-bottom: 0.6em;
}

body.wale-home .site-role {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.45);
  margin: 0 0 40px !important;
}

.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-nav li a {
  display: inline-block;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.5);
  text-decoration: none;
  line-height: 2.2;
  transition: color 0.25s ease;
  position: relative;
}

.main-nav li a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  width: 0;
  height: 0.5px;
  background: #f0ede8;
  transition: width 0.3s ease;
}

.main-nav li a:hover { color: #f0ede8; }
.main-nav li a:hover::after { width: 100%; }

.home-instagram {
  margin-top: 2.5rem;
  color: rgba(240,237,232,0.5);
  display: inline-flex;
  transition: color 0.25s ease;
}
.home-instagram:hover { color: #f0ede8; }

.home-footer {
  position: fixed;
  bottom: 1.8rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.45);
  z-index: 11;
}

/* ---------- INNER PAGES (Bio + Project) ---------- */
body.wale-inner {
  background: #fff;
  color: #111;
  min-height: 100vh;
}

.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  background: #fff;
}

.nav-home {
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-home:hover { opacity: 0.45; }

body.wale-home .hamburger,
body.wale-inner .hamburger {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
body.wale-home .hamburger:hover,
body.wale-inner .hamburger:hover {
  background: none !important;
}
body.wale-home .hamburger span,
body.wale-inner .hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
body.wale-inner .hamburger span { background: #111; }
body.wale-home .hamburger span { background: #f0ede8; }
.hamburger.open span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

.slide-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 260px;
  background: #fff;
  z-index: 99;
  border-left: 0.5px solid #e8e8e8;
  padding: 6rem 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-menu.open { transform: translateX(0); }
.slide-menu nav ul { list-style: none; margin: 0; padding: 0; }
.slide-menu nav ul li a {
  display: block;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbb;
  text-decoration: none;
  padding: 0.7rem 0;
  transition: color 0.2s;
}
.slide-menu nav ul li a:hover,
.slide-menu nav ul li a.active { color: #111; }

/* Shared page wrapper */
body.wale-inner .page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10rem 3rem 6rem;
}

/* Centered variant (Project / Other Projects pages) */
body.wale-inner .page--centered {
  max-width: 620px;
  padding: 9rem 2rem 4rem;
  text-align: center;
}

/* ---------- BIO ---------- */
body.wale-inner .bio-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

body.wale-inner .headshot {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f0eeeb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.wale-inner .headshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.wale-inner .headshot-label {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
}

body.wale-inner .bio-content { text-align: left; }

body.wale-inner .bio-heading {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 1.8rem;
}

body.wale-inner .bio-text {
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.95;
  color: #333;
}
body.wale-inner .bio-text p,
body.wale-inner .bio-text { font-size: 0.92rem !important; line-height: 1.95 !important; }
body.wale-inner .bio-text p { margin: 0 0 1.4rem; }

body.wale-inner .bio-links {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
body.wale-inner .bio-links a {
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
body.wale-inner .bio-links a:hover { color: #111; }

/* ---------- PROJECT ---------- */
body.wale-inner .film-title {
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 0.5rem;
}

body.wale-inner .film-meta {
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 3.5rem;
}

body.wale-inner .synopsis {
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #333;
  margin: 0 0 4rem;
}

body.wale-inner .section-block { margin-bottom: 4rem; }

body.wale-inner .section-heading {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 1.5rem;
}

body.wale-inner .plain-list { list-style: none; margin: 0; padding: 0; }
body.wale-inner .plain-list li {
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 2;
  color: #555;
}

.stills {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.still {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f0eeeb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.still img { width: 100%; height: 100%; object-fit: cover; display: block; }
.still-label {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
}

/* ---------- OTHER PROJECTS ---------- */
body.wale-inner .others-list { text-align: center; }

body.wale-inner .others-list .other-project { padding: 0; }

body.wale-inner .others-list .other-title {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #111 !important;
  margin: 0 0 1rem !important;
}

body.wale-inner .others-list .other-meta {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 2rem;
}

body.wale-inner .others-list .other-synopsis {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #333;
  margin: 0 0 2.5rem;
}

body.wale-inner .others-list .other-festivals { margin-bottom: 2.5rem; }
body.wale-inner .others-list .other-awards { margin-bottom: 2.5rem; }

body.wale-inner .others-list .other-image {
  width: 100%;
  margin: 0;
}
body.wale-inner .others-list .other-image img {
  width: 100%;
  height: auto;
  display: block;
}

body.wale-inner .others-list .other-divider {
  border: 0;
  border-top: 0.5px solid #e2e0dc;
  margin: 3.5rem 0;
}

/* ---------- CONTACT ---------- */
body.wale-contact.has-bg { background: #0a0a0a; color: #f0ede8; }
body.wale-contact.has-bg .top-nav { background: transparent; }
body.wale-contact.has-bg .nav-home { color: #f0ede8; }
body.wale-contact.has-bg .hamburger span { background: #f0ede8; }
body.wale-contact .contact-main {
  position: relative;
  z-index: 10;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body.wale-contact .contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
body.wale-contact .contact-links a {
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
body.wale-contact .contact-links a:hover { opacity: 1; }
body.wale-contact.has-bg .film-title { color: #f0ede8; }
body.wale-contact.has-bg .page-footer { color: rgba(240,237,232,0.45); position: relative; z-index: 10; }

/* ---------- FOOTER ---------- */
.page-footer {
  text-align: center;
  padding: 2rem 2rem 3rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbb;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  body.wale-inner .top-nav { padding: 1.5rem; }
  body.wale-inner .page { padding: 6rem 1.5rem 4rem; }
  body.wale-inner .page--centered { padding: 6rem 1.5rem 4rem; }

  /* Bio: stack, shrink headshot, normalise text size */
  body.wale-inner .bio-layout { grid-template-columns: 1fr; gap: 2rem; }
  body.wale-inner .headshot { max-width: 220px; margin: 0 auto; }
  body.wale-inner .bio-content { text-align: left; }
  body.wale-inner .bio-text { font-size: 0.95rem !important; line-height: 1.85 !important; }
  body.wale-inner .bio-text p { margin: 0 0 1.2rem; }
  body.wale-inner .bio-links { gap: 1.5rem; justify-content: flex-start; }

  /* Other Projects: tighten sizing */
  body.wale-inner .others-list .other-title { font-size: 0.8rem !important; }
  body.wale-inner .others-list .other-synopsis { font-size: 0.95rem; line-height: 1.8; }
  body.wale-inner .others-list .other-meta { font-size: 0.66rem; margin-bottom: 1.5rem; }

  /* Project page lists */
  body.wale-inner .synopsis { font-size: 0.95rem; }
  body.wale-inner .plain-list li { font-size: 0.9rem; }

  /* Contact */
  body.wale-contact .contact-main { min-height: 60vh; }
}
